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

Files

file  rtimer-arch.c
 Implementation of the architecture dependent rtimer functions for the nRF.
 
file  rtimer-arch.h
 Architecture dependent rtimer implementation header file.
 

Functions

void rtimer_arch_init (void)
 Initialized the architecture-dependent part of rtimer.
 
void rtimer_arch_schedule (rtimer_clock_t t)
 Schedules an rtimer task to be triggered at time t.
 
rtimer_clock_t rtimer_arch_now (void)
 Returns the current real-time clock time.
 

Detailed Description

Function Documentation

◆ rtimer_arch_init()

void rtimer_arch_init ( void )

Initialized the architecture-dependent part of rtimer.

Initialized the architecture-dependent part of rtimer.

The Sleep Timer starts ticking automatically as soon as the device turns on. We don't need to turn on interrupts before the first call to rtimer_arch_schedule()

Initialized the architecture-dependent part of rtimer.

The RTC is initialised elsewhere

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

◆ rtimer_arch_now()

rtimer_clock_t rtimer_arch_now ( void )

Returns the current real-time clock time.

Returns
The current rtimer time in ticks

< ST count/compare value 0

< ST count/compare value 1

< ST count/compare value 2

< ST count/compare value 3

Definition at line 97 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.

Parameters
tThe time when the task will need executed.

t is an absolute time, in other words the task will be executed AT time t, not IN t rtimer ticks.

Schedules an rtimer task to be triggered at time t.

This functions converts 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 88 of file rtimer-arch.c.