core/time/rtc.c File Reference
#include "sceptre.h"
Go to the source code of this file.
Detailed Description
Implementation of the real time clock (RTC) driver.
Definition in file rtc.c.
Function Documentation
void rtc_clear_tick_counter |
( |
void |
|
) |
|
Reset the RTC's tick counter
Definition at line 85 of file rtc.c.
Get the real time clock (RTC).
- Parameters:
-
| p_time | Pointer to a structure that will receive the current clock values. |
Definition at line 132 of file rtc.c.
void rtc_handler |
( |
void |
|
) |
|
RTC interrupt handler, its execution depends on the alarm setting.
Definition at line 22 of file rtc.c.
Initialize the real time clock (RTC).
Definition at line 45 of file rtc.c.
Set the real time clock (RTC) alarm.
- Parameters:
-
| p_time | Pointer to the new alarm values. |
Definition at line 114 of file rtc.c.
void rtc_set_alarm_mask |
( |
uint32_t |
mask |
) |
|
Set the alarm mask of the real time clock (RTC).
- Parameters:
-
Definition at line 150 of file rtc.c.
Set the real time clock (RTC).
- Parameters:
-
| p_time | Pointer to the new clock values. |
Definition at line 96 of file rtc.c.
Start the real time clock (RTC).
Definition at line 66 of file rtc.c.
Stop the real time clock (RTC).
Definition at line 76 of file rtc.c.