The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

mbed 2

This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.

Committer:
AnnaBridge
Date:
Fri May 26 12:30:20 2017 +0100
Revision:
143:86740a56073b
Parent:
122:f9eeca106725
Release 143 of the mbed library.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Kojto 119:aae6fcc7d9bb 1 /***************************************************************************//**
Kojto 119:aae6fcc7d9bb 2 * @file rtc_api_HAL.h
Kojto 119:aae6fcc7d9bb 3 *******************************************************************************
Kojto 119:aae6fcc7d9bb 4 * @section License
Kojto 119:aae6fcc7d9bb 5 * <b>(C) Copyright 2015 Silicon Labs, http://www.silabs.com</b>
Kojto 119:aae6fcc7d9bb 6 *******************************************************************************
Kojto 119:aae6fcc7d9bb 7 *
Kojto 122:f9eeca106725 8 * SPDX-License-Identifier: Apache-2.0
Kojto 119:aae6fcc7d9bb 9 *
Kojto 122:f9eeca106725 10 * Licensed under the Apache License, Version 2.0 (the "License"); you may
Kojto 122:f9eeca106725 11 * not use this file except in compliance with the License.
Kojto 122:f9eeca106725 12 * You may obtain a copy of the License at
Kojto 119:aae6fcc7d9bb 13 *
Kojto 122:f9eeca106725 14 * http://www.apache.org/licenses/LICENSE-2.0
Kojto 119:aae6fcc7d9bb 15 *
Kojto 122:f9eeca106725 16 * Unless required by applicable law or agreed to in writing, software
Kojto 122:f9eeca106725 17 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
Kojto 122:f9eeca106725 18 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Kojto 122:f9eeca106725 19 * See the License for the specific language governing permissions and
Kojto 122:f9eeca106725 20 * limitations under the License.
Kojto 119:aae6fcc7d9bb 21 *
Kojto 119:aae6fcc7d9bb 22 ******************************************************************************/
Kojto 119:aae6fcc7d9bb 23
Kojto 119:aae6fcc7d9bb 24 #ifndef MBED_RTC_API_HAL_H
Kojto 119:aae6fcc7d9bb 25 #define MBED_RTC_API_HAL_H
Kojto 119:aae6fcc7d9bb 26
Kojto 119:aae6fcc7d9bb 27 #include <stdint.h>
Kojto 119:aae6fcc7d9bb 28 #include "rtc_api.h"
Kojto 119:aae6fcc7d9bb 29 #include "em_rtc.h"
Kojto 119:aae6fcc7d9bb 30
Kojto 119:aae6fcc7d9bb 31 #define RTC_CLOCKDIV cmuClkDiv_8
Kojto 119:aae6fcc7d9bb 32 #define RTC_CLOCKDIV_INT 8
Kojto 119:aae6fcc7d9bb 33 #define RTC_FREQ_SHIFT 12
Kojto 119:aae6fcc7d9bb 34
Kojto 119:aae6fcc7d9bb 35
Kojto 119:aae6fcc7d9bb 36 #define RTC_INIT_LPTIMER (1 << 1)
Kojto 119:aae6fcc7d9bb 37 #define RTC_INIT_RTC (1 << 0)
Kojto 119:aae6fcc7d9bb 38
Kojto 119:aae6fcc7d9bb 39 #ifdef __cplusplus
Kojto 119:aae6fcc7d9bb 40 extern "C" {
Kojto 119:aae6fcc7d9bb 41 #endif
Kojto 119:aae6fcc7d9bb 42
Kojto 119:aae6fcc7d9bb 43 /* Purpose of this file: extend rtc_api.h to include EFM-specific stuff*/
Kojto 119:aae6fcc7d9bb 44 void rtc_set_comp0_handler(uint32_t handler);
Kojto 119:aae6fcc7d9bb 45
Kojto 119:aae6fcc7d9bb 46 void rtc_init_real(uint32_t flags);
Kojto 119:aae6fcc7d9bb 47 void rtc_free_real(uint32_t flags);
Kojto 119:aae6fcc7d9bb 48
Kojto 119:aae6fcc7d9bb 49 #ifdef __cplusplus
Kojto 119:aae6fcc7d9bb 50 }
Kojto 119:aae6fcc7d9bb 51 #endif
Kojto 119:aae6fcc7d9bb 52
Kojto 119:aae6fcc7d9bb 53 #endif