PebbleOS v4.47.0-1312-gf1984a001
Loading...
Searching...
No Matches
Arm SysTick timer

Clock event device on the Arm SysTick timer, counting CPU cycles. More...

Macros

#define PBL_TIMER_ARM_SYSTICK_DEFINE(sym, _name, _base, _rate_hz)
 Define the clock event device of the SysTick timer, and its exception handler.
 

Detailed Description

Clock event device on the Arm SysTick timer, counting CPU cycles.

It stops in deep sleep.

Macro Definition Documentation

◆ PBL_TIMER_ARM_SYSTICK_DEFINE

#define PBL_TIMER_ARM_SYSTICK_DEFINE (   sym,
  _name,
  _base,
  _rate_hz 
)
Value:
PBL_DEVICE_INSTANCE(sym, struct pbl_timer_arm_systick, struct pbl_clockevent, ce){ \
.ce = PBL_CLOCKEVENT_INIT(sym, _name, pbl_timer_arm_systick_init, nullptr, \
&pbl_timer_arm_systick_ops, PBL_TIMER_ARM_SYSTICK__MIN_DELTA, \
PBL_TIMER_ARM_SYSTICK__MAX_DELTA), \
.base = (_base), \
.rate_hz = (_rate_hz), \
}; \
void SysTick_Handler(void); \
void SysTick_Handler(void) { \
pbl_timer_arm_systick_isr(&sym##_inst); \
}
#define PBL_DEVICE_STATE_DEFINE(sym)
Define the runtime state of device instance sym.
Definition device.h:132
Clock event device: a one-shot timer interrupt.
Definition timer.h:73
#define PBL_CLOCKEVENT_INIT(sym, _name, _init, _parent, _ops, _min, _max)
Clock event device initializer.
Definition timer.h:113

Define the clock event device of the SysTick timer, and its exception handler.

Parameters
symSymbol.
_nameName.
_baseBase address.
_rate_hzCounter rate, the CPU clock.