mbed library sources. Supersedes mbed-src.

Dependents:   Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more

Revision:
181:57724642e740
Parent:
180:96ed750bd169
Child:
186:707f6e361f3e
--- a/targets/TARGET_STM/rtc_api_hal.h	Wed Jan 17 15:23:54 2018 +0000
+++ b/targets/TARGET_STM/rtc_api_hal.h	Fri Feb 16 16:09:33 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.
  *