Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
cascoda_time_secure.c File Reference
#include <stdint.h>
#include "cascoda-bm/cascoda_interface.h"
#include "M2351.h"
#include "timer.h"
Include dependency graph for cascoda_time_secure.c:

Functions

void CHILI_1msTick (void)
 1 ms Tick for TMR0_IRQHandler ISR More...
 
__NONSECURE_ENTRY void CHILI_FastForward (u32_t ticks)
 FastForward time by the given amount. More...
 
void CHILI_MicroTimerTick (void)
 Extension count for TMR1_IRQHandler ISR. More...
 
__NONSECURE_ENTRY u32_t BSP_ReadAbsoluteTime (void)
 Get the number of milliseconds since program start. More...
 
__NONSECURE_ENTRY void BSP_WaitTicks (u32_t ticks)
 Wait for specified Time in Milliseconds. More...
 
__NONSECURE_ENTRY void BSP_MicroTimerStart (void)
 start microseconds timer More...
 
__NONSECURE_ENTRY u32_t BSP_MicroTimerStop (void)
 stop microseconds timer More...
 
__NONSECURE_ENTRY u32_t BSP_MicroTimerGet (void)
 get microseconds timer while running More...
 

Variables

volatile u32_t AbsoluteTicks = UINT32_MAX - 5 * 60 * 1000
 
volatile u8_t MicroSecondMSB = 0
 

Function Documentation

◆ CHILI_1msTick()

void CHILI_1msTick ( void  )

1 ms Tick for TMR0_IRQHandler ISR

◆ CHILI_FastForward()

__NONSECURE_ENTRY void CHILI_FastForward ( u32_t  ticks)

FastForward time by the given amount.

Parameters
ticks- Time in Ticks (1ms/100ms)

◆ CHILI_MicroTimerTick()

void CHILI_MicroTimerTick ( void  )

Extension count for TMR1_IRQHandler ISR.

Variable Documentation

◆ AbsoluteTicks

volatile u32_t AbsoluteTicks = UINT32_MAX - 5 * 60 * 1000

◆ MicroSecondMSB

volatile u8_t MicroSecondMSB = 0