Clock event device on the Arm SysTick timer, counting CPU cycles.
More...
|
| #define | PBL_TIMER_ARM_SYSTICK_DEFINE(sym, _name, _base, _rate_hz) |
| | Define the clock event device of the SysTick timer, and its exception handler.
|
| |
Clock event device on the Arm SysTick timer, counting CPU cycles.
It stops in deep sleep.
◆ 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){ \
&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
-
| sym | Symbol. |
| _name | Name. |
| _base | Base address. |
| _rate_hz | Counter rate, the CPU clock. |