Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of TUKS-COURSE-TIMER by
Functions | |
void | rtc_init (void) |
Initialize the RTC peripheral. | |
void | rtc_free (void) |
Deinitialize RTC. | |
int | rtc_isenabled (void) |
Get the RTC enable status. | |
time_t | rtc_read (void) |
Get the current time from the RTC peripheral. | |
void | rtc_write (time_t t) |
Set the current time to the RTC peripheral. |
Function Documentation
void rtc_free | ( | void | ) |
Deinitialize RTC.
TODO: The function is not used by rtc api in mbed-drivers.
void rtc_init | ( | void | ) |
Initialize the RTC peripheral.
int rtc_isenabled | ( | void | ) |
Get the RTC enable status.
- Return values:
-
0 disabled 1 enabled
time_t rtc_read | ( | void | ) |
Get the current time from the RTC peripheral.
- Returns:
- The current time
void rtc_write | ( | time_t | t ) |
Set the current time to the RTC peripheral.
- Parameters:
-
t The current time to be set
Generated on Tue Jul 12 2022 17:38:59 by
