Contiki-NG
Loading...
Searching...
No Matches

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.
 
void rtimer_arch_init (void)
 TODO.
 
void rtimer_arch_schedule (rtimer_clock_t t)
 This function schedules a one-shot event with the AON RTC.
 
rtimer_clock_t rtimer_arch_now ()
 Returns the current real-time clock time.
 

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.

References rtimer_clock_stub(), and rtimer_isr_hook().

◆ 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.

< ST count/compare value 0

< ST count/compare value 1

< ST count/compare value 2

< ST count/compare value 3

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

◆ rtimer_arch_schedule()

void rtimer_arch_schedule ( rtimer_clock_t t)

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

Schedules an rtimer task to be triggered at time t.

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

< Compare value load status

< STx upload status signal

< ST count/compare value 3

< ST count/compare value 2

< ST count/compare value 1

< ST count/compare value 0

Definition at line 166 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, depending on which event triggered the interrupt.

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

References rtimer_run_next().

Referenced by rtimer_arch_init().