mbed-os for GR-LYCHEE
Dependents: mbed-os-example-blinky-gr-lychee GR-Boads_Camera_sample GR-Boards_Audio_Recoder GR-Boads_Camera_DisplayApp ... more
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 11:02:38 by 1.7.2