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.
Diff: TARGET_NUCLEO_L496ZG_P/TARGET_STM/rtc_api_hal.h
- Revision:
- 161:aa5281ff4a02
- Parent:
- 160:5571c4ff569f
- Child:
- 167:84c0a372a020
--- a/TARGET_NUCLEO_L496ZG_P/TARGET_STM/rtc_api_hal.h Wed Jan 17 16:13:02 2018 +0000 +++ b/TARGET_NUCLEO_L496ZG_P/TARGET_STM/rtc_api_hal.h Fri Feb 16 16:16:41 2018 +0000 @@ -35,6 +35,11 @@ #include "rtc_api.h" #include "ticker_api.h" #include "lp_ticker_api.h" +#include "us_ticker_api.h" +#include "hal_tick.h" +#include "mbed_critical.h" +#include "mbed_error.h" +#include "mbed_debug.h" #ifdef __cplusplus extern "C" { @@ -46,11 +51,11 @@ #define RTC_CLOCK LSI_VALUE #endif -/** Read the subsecond register. +/** Read RTC time with subsecond precision. * - * @return The remaining time as microseconds (0-999999) + * @return Time is microsecond */ -uint32_t rtc_read_subseconds(void); +uint32_t rtc_read_us(void); /** Program a wake up timer event in delta microseconds. *