Loading...
Searching...
No Matches

xtimer implementation More...

Detailed Description

#include "periph/timer.h"
#include "irq.h"
+ Include dependency graph for implementation.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define XTIMER_MIN_SPIN   _xtimer_usec_from_ticks(1)
 Minimal value xtimer_spin() can spin.
 
#define MSG_XTIMER   12345
 IPC message type for xtimer msg callback.
 
volatile uint64_t _xtimer_current_time
 
static uint32_t _xtimer_lltimer_now (void)
 returns the (masked) low-level timer counter value.
 
static uint32_t _xtimer_lltimer_mask (uint32_t val)
 drop bits of a value that don't fit into the low-level timer.
 
uint32_t _xtimer_now (void)
 xtimer internal stuff
 
void _xtimer_set64 (xtimer_t *timer, uint32_t offset, uint32_t long_offset)
 
void _xtimer_periodic_wakeup (uint32_t *last_wakeup, uint32_t period)
 
void _xtimer_set_wakeup (xtimer_t *timer, uint32_t offset, kernel_pid_t pid)
 
void _xtimer_set_wakeup64 (xtimer_t *timer, uint64_t offset, kernel_pid_t pid)
 
void _xtimer_tsleep (uint32_t offset, uint32_t long_offset)
 Sleep for the given number of ticks.
 

Macro Definition Documentation

◆ MSG_XTIMER

#define MSG_XTIMER   12345

IPC message type for xtimer msg callback.

Definition at line 47 of file implementation.h.

◆ XTIMER_MIN_SPIN

#define XTIMER_MIN_SPIN   _xtimer_usec_from_ticks(1)

Minimal value xtimer_spin() can spin.

Definition at line 101 of file implementation.h.

Function Documentation

◆ _xtimer_lltimer_mask()

static uint32_t _xtimer_lltimer_mask ( uint32_t  val)
inlinestatic

drop bits of a value that don't fit into the low-level timer.

Definition at line 65 of file implementation.h.

◆ _xtimer_lltimer_now()

static uint32_t _xtimer_lltimer_now ( void  )
inlinestatic

returns the (masked) low-level timer counter value.

Definition at line 52 of file implementation.h.