Mouse code for the MacroRat

Dependencies:   ITG3200 QEI

Embed: (wiki syntax)

« Back to documentation index

RTC hal functions

RTC hal functions
[Hal]

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:
0disabled
1enabled
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:
tThe current time to be set