RV32 SoC DS UG
High-Perf RV32 SoC DS UG
RV64 SoC DS UG API and Examples
Embedded IDE UG
Loading...
Searching...
No Matches
rtc.c File Reference
#include "rtc/rtc.h"
#include <stddef.h>

Go to the source code of this file.

Overview

RTC driver implementation.

Implements the functions defined in rtc.h for controlling RTC input/output and interrupts on the EfxSapphireSoC platform.

Definition in file rtc.c.

Functions

const char * get_ordinal (u8 day)
 Get ordinal suffix for a given day.
rtc_status_t rtc_applyConfig (rtc_instance_t *rtc)
 Wrapper: Apply I2C + RTC configuration.
rtc_status_t rtc_enableErrorInterrupt (rtc_instance_t *rtc)
 Wrapper: Enable RTC error interrupt.
u8 convert_hour_register (u8 old_reg_val, u8 to_12h)
 Convert hour register between 12-hour and 24-hour format.

Variables

const char * Day_ordinal []
 Get ordinal suffix for a given day.
const char *const DayStrings []
 Get string representations for Sunday,Monday ,etc..
const char *const MonthStrings []
 Get string representations for months.
const char *const meridiem []
 Get string representations for meridiem (AM/PM).