zain aftab / mbed-src3

Dependents:   RPC_Serial_V_mac

Committer:
mbed_official
Date:
Fri Sep 25 14:15:10 2015 +0100
Revision:
628:4fa1328d9c60
Parent:
526:c320967f86b9
Synchronized with git revision fe238a91ab7a4d1d72c4cab9da04967c619d54ad

Full URL: https://github.com/mbedmicro/mbed/commit/fe238a91ab7a4d1d72c4cab9da04967c619d54ad/

Silicon Labs - Add support for low-power async Serial

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 628:4fa1328d9c60 1 /***************************************************************************//**
mbed_official 628:4fa1328d9c60 2 * @file rtc_api_HAL.h
mbed_official 628:4fa1328d9c60 3 *******************************************************************************
mbed_official 628:4fa1328d9c60 4 * @section License
mbed_official 628:4fa1328d9c60 5 * <b>(C) Copyright 2015 Silicon Labs, http://www.silabs.com</b>
mbed_official 628:4fa1328d9c60 6 *******************************************************************************
mbed_official 526:c320967f86b9 7 *
mbed_official 628:4fa1328d9c60 8 * Permission is granted to anyone to use this software for any purpose,
mbed_official 628:4fa1328d9c60 9 * including commercial applications, and to alter it and redistribute it
mbed_official 628:4fa1328d9c60 10 * freely, subject to the following restrictions:
mbed_official 526:c320967f86b9 11 *
mbed_official 628:4fa1328d9c60 12 * 1. The origin of this software must not be misrepresented; you must not
mbed_official 628:4fa1328d9c60 13 * claim that you wrote the original software.
mbed_official 628:4fa1328d9c60 14 * 2. Altered source versions must be plainly marked as such, and must not be
mbed_official 628:4fa1328d9c60 15 * misrepresented as being the original software.
mbed_official 628:4fa1328d9c60 16 * 3. This notice may not be removed or altered from any source distribution.
mbed_official 526:c320967f86b9 17 *
mbed_official 628:4fa1328d9c60 18 * DISCLAIMER OF WARRANTY/LIMITATION OF REMEDIES: Silicon Labs has no
mbed_official 628:4fa1328d9c60 19 * obligation to support this Software. Silicon Labs is providing the
mbed_official 628:4fa1328d9c60 20 * Software "AS IS", with no express or implied warranties of any kind,
mbed_official 628:4fa1328d9c60 21 * including, but not limited to, any implied warranties of merchantability
mbed_official 628:4fa1328d9c60 22 * or fitness for any particular purpose or warranties against infringement
mbed_official 628:4fa1328d9c60 23 * of any proprietary rights of a third party.
mbed_official 628:4fa1328d9c60 24 *
mbed_official 628:4fa1328d9c60 25 * Silicon Labs will not be liable for any consequential, incidental, or
mbed_official 628:4fa1328d9c60 26 * special damages, or any other relief, or for any claim by any third party,
mbed_official 628:4fa1328d9c60 27 * arising from your use of this Software.
mbed_official 628:4fa1328d9c60 28 *
mbed_official 628:4fa1328d9c60 29 ******************************************************************************/
mbed_official 628:4fa1328d9c60 30
mbed_official 526:c320967f86b9 31 #ifndef MBED_RTC_API_HAL_H
mbed_official 526:c320967f86b9 32 #define MBED_RTC_API_HAL_H
mbed_official 526:c320967f86b9 33
mbed_official 526:c320967f86b9 34 #include <stdint.h>
mbed_official 526:c320967f86b9 35 #include "rtc_api.h"
mbed_official 526:c320967f86b9 36 #include "em_rtc.h"
mbed_official 526:c320967f86b9 37
mbed_official 526:c320967f86b9 38 #define RTC_CLOCKDIV cmuClkDiv_8
mbed_official 526:c320967f86b9 39 #define RTC_CLOCKDIV_INT 8
mbed_official 526:c320967f86b9 40 #define RTC_FREQ_SHIFT 12
mbed_official 526:c320967f86b9 41
mbed_official 526:c320967f86b9 42
mbed_official 526:c320967f86b9 43 #define RTC_INIT_LPTIMER (1 << 1)
mbed_official 526:c320967f86b9 44 #define RTC_INIT_RTC (1 << 0)
mbed_official 526:c320967f86b9 45
mbed_official 526:c320967f86b9 46 #ifdef __cplusplus
mbed_official 526:c320967f86b9 47 extern "C" {
mbed_official 526:c320967f86b9 48 #endif
mbed_official 526:c320967f86b9 49
mbed_official 526:c320967f86b9 50 /* Purpose of this file: extend rtc_api.h to include EFM-specific stuff*/
mbed_official 526:c320967f86b9 51 void rtc_set_comp0_handler(uint32_t handler);
mbed_official 526:c320967f86b9 52
mbed_official 526:c320967f86b9 53 void rtc_init_real(uint32_t flags);
mbed_official 526:c320967f86b9 54 void rtc_free_real(uint32_t flags);
mbed_official 526:c320967f86b9 55
mbed_official 526:c320967f86b9 56 #ifdef __cplusplus
mbed_official 526:c320967f86b9 57 }
mbed_official 526:c320967f86b9 58 #endif
mbed_official 526:c320967f86b9 59
mbed_official 526:c320967f86b9 60 #endif