mbed library sources. Supersedes mbed-src.
Dependents: Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more
Diff: targets/TARGET_STM/rtc_api_hal.h
- Revision:
- 180:96ed750bd169
- Parent:
- 154:37f96f9d4de2
- Child:
- 181:57724642e740
--- a/targets/TARGET_STM/rtc_api_hal.h Thu Dec 07 14:01:42 2017 +0000 +++ b/targets/TARGET_STM/rtc_api_hal.h Wed Jan 17 15:23:54 2018 +0000 @@ -1,6 +1,6 @@ /* mbed Microcontroller Library ******************************************************************************* -* Copyright (c) 2016, STMicroelectronics +* Copyright (c) 2017, STMicroelectronics * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -33,19 +33,18 @@ #include <stdint.h> #include "rtc_api.h" +#include "ticker_api.h" +#include "lp_ticker_api.h" #ifdef __cplusplus extern "C" { #endif -/* - * Extend rtc_api.h - */ -/** Set the given function as handler of wakeup timer event. - * - * @param handler The function to set as handler - */ -void rtc_set_irq_handler(uint32_t handler); +#if MBED_CONF_TARGET_LSE_AVAILABLE +#define RTC_CLOCK LSE_VALUE +#else +#define RTC_CLOCK LSI_VALUE +#endif /** Read the subsecond register. *