Sapphire SoC DS Sapphire SoC UG Sapphire HP SoC DS Sapphire HP SoC UG RISC-V Embedded IDE UG Board Support Package
Loading...
Searching...
No Matches
rtc.c File Reference
#include "rtc/rtc.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.
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).