Contiki-NG
Files | Functions

Implementation of the rtimer module for CC13xx/CC26xx. More...

Files

 
 

Functions

static void rtimer_clock_stub (uintptr_t unused)
 Stub function used when creating the dummy clock object.
 
static void rtimer_isr_hook (void)
 The Man-in-the-Middle ISR hook for the HWI dispatch ISR. More...
 
void rtimer_arch_init (void)
 TODO. More...
 
void rtimer_arch_schedule (rtimer_clock_t t)
 Schedules an rtimer task to be triggered at time t. More...
 
rtimer_clock_t rtimer_arch_now ()
 Returns the current real-time clock time. More...
 

Detailed Description

Implementation of the rtimer module for CC13xx/CC26xx.

This header is included by os/sys/rtimer.h.

RTIMER_ARCH_SECOND is defined in cc13xx-cc26xx-def.h.

Function Documentation

◆ rtimer_arch_init()

void rtimer_arch_init ( void  )

TODO.

Initialized the architecture-dependent part of rtimer.

Definition at line 101 of file rtimer-arch.c.

◆ rtimer_arch_now()

rtimer_clock_t rtimer_arch_now ( )

Returns the current real-time clock time.

Returns
The current rtimer time in ticks.
     The value is read from the AON RTC counter and converted to a
     number of rtimer ticks.

Definition at line 186 of file rtimer-arch.c.

◆ rtimer_arch_schedule()

void rtimer_arch_schedule ( rtimer_clock_t  t)

Schedules an rtimer task to be triggered at time t.

Schedule the call to rtimer_run_next at the time t.

Parameters
tThe time when the task will need executed.
      \p t is an absolute time, in other words the task will be
      executed AT time \p t, not IN \p t rtimer ticks.

      This function schedules a one-shot event with the AON RTC.

      This functions converts \p t to a value suitable for the AON RTC.

Definition at line 171 of file rtimer-arch.c.

◆ rtimer_isr_hook()

static void rtimer_isr_hook ( void  )
static

The Man-in-the-Middle ISR hook for the HWI dispatch ISR.

This will be the ISR dispatched when INT_AON_RTC_COMB is triggered, and will either dispatch the interrupt to the rtimer driver or the HWI driver, depening on which event triggered the interrupt.

Definition at line 78 of file rtimer-arch.c.