Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
cascoda_rtc_m2351_secure.c File Reference
#include <stdio.h>
#include "M2351.h"
#include "cascoda-bm/cascoda_evbme.h"
#include "cascoda-bm/cascoda_interface.h"
#include "cascoda-bm/cascoda_serial.h"
#include "cascoda-bm/cascoda_spi.h"
#include "cascoda-bm/cascoda_types.h"
#include "cascoda-util/cascoda_time.h"
#include "ca821x_api.h"
#include "cascoda_chili.h"
Include dependency graph for cascoda_rtc_m2351_secure.c:

Functions

void CHILI_RTCIRQHandler (void)
 RTC IRQ Handler. More...
 
__NONSECURE_ENTRY void BSP_RTCInitialise (void)
 Initialise RTC. More...
 
__NONSECURE_ENTRY ca_error BSP_RTCSetAlarmSeconds (u32_t seconds)
 Sets RTC Alarm in seconds from current time. More...
 
void BSP_RTCDisableAlarm (void)
 Disables RTC Alarm. More...
 
ca_error BSP_RTCSetDateAndTime (struct RTCDateAndTime dateandtime)
 Sets RTC Date+Time. More...
 
__NONSECURE_ENTRY void BSP_RTCGetDateAndTime (struct RTCDateAndTime *dateandtime)
 Gets RTC Date+Time. More...
 
__NONSECURE_ENTRY void BSP_RTCConvertSecondsToDateAndTime (i64_t seconds, struct RTCDateAndTime *dateandtime)
 Converts Unix Time seconds to RTC Date+Time. More...
 
__NONSECURE_ENTRY i64_t BSP_RTCConvertDateAndTimeToSeconds (const struct RTCDateAndTime *dateandtime)
 Converts RTC Date+Time to Unix Time seconds. More...
 
__NONSECURE_ENTRY void BSP_RTCRegisterCallback (int(*callback)(void))
 Registers RTC IRQ function callback. More...
 

Function Documentation

◆ CHILI_RTCIRQHandler()

void CHILI_RTCIRQHandler ( void  )

RTC IRQ Handler.