mbed library sources

Dependents:   Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more

Superseded

This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.

Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.

If you are looking for a stable and tested release, please import one of the official mbed library releases:

Import librarymbed

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

Revision:
630:825f75ca301e
Parent:
469:fc4922e0c183
--- a/targets/hal/TARGET_STM/TARGET_STM32F0/rtc_api.c	Mon Sep 28 10:30:09 2015 +0100
+++ b/targets/hal/TARGET_STM/TARGET_STM32F0/rtc_api.c	Mon Sep 28 10:45:10 2015 +0100
@@ -1,6 +1,6 @@
 /* mbed Microcontroller Library
  *******************************************************************************
- * Copyright (c) 2014, STMicroelectronics
+ * Copyright (c) 2015, STMicroelectronics
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -37,8 +37,7 @@
 
 static RTC_HandleTypeDef RtcHandle;
 
-void rtc_init(void)
-{
+void rtc_init(void) {
     RCC_OscInitTypeDef RCC_OscInitStruct;
     uint32_t rtc_freq = 0;
 
@@ -95,8 +94,7 @@
     }
 }
 
-void rtc_free(void)
-{
+void rtc_free(void) {
     // Enable Power clock
     __PWR_CLK_ENABLE();
 
@@ -121,8 +119,7 @@
     rtc_inited = 0;
 }
 
-int rtc_isenabled(void)
-{
+int rtc_isenabled(void) {
     return rtc_inited;
 }
 
@@ -143,8 +140,7 @@
    tm_yday     days since January 1 0-365
    tm_isdst    Daylight Saving Time flag
 */
-time_t rtc_read(void)
-{
+time_t rtc_read(void) {
     RTC_DateTypeDef dateStruct;
     RTC_TimeTypeDef timeStruct;
     struct tm timeinfo;
@@ -171,8 +167,7 @@
     return t;
 }
 
-void rtc_write(time_t t)
-{
+void rtc_write(time_t t) {
     RTC_DateTypeDef dateStruct;
     RTC_TimeTypeDef timeStruct;