core/time/rtc.c File Reference

#include "sceptre.h"

Go to the source code of this file.

Functions

void rtc_handler (void)
void rtc_init (void)
void rtc_start (void)
void rtc_stop (void)
void rtc_clear_tick_counter (void)
void rtc_set_time (const rtc_time_t *p_time)
void rtc_set_alarm (const rtc_time_t *p_time)
void rtc_get_time (rtc_time_t *p_time)
void rtc_set_alarm_mask (uint32_t mask)

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.

void rtc_get_time ( rtc_time_t p_time  ) 

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.

void rtc_init ( void   ) 

Initialize the real time clock (RTC).

Definition at line 45 of file rtc.c.

void rtc_set_alarm ( const rtc_time_t p_time  ) 

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:
mask Mask for the alarm.

Definition at line 150 of file rtc.c.

void rtc_set_time ( const rtc_time_t p_time  ) 

Set the real time clock (RTC).

Parameters:
p_time Pointer to the new clock values.

Definition at line 96 of file rtc.c.

void rtc_start ( void   ) 

Start the real time clock (RTC).

Definition at line 66 of file rtc.c.

void rtc_stop ( void   ) 

Stop the real time clock (RTC).

Definition at line 76 of file rtc.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Defines

Generated by  doxygen 1.6.2