24 #ifndef __RFLPC_SYS_TICK_TIMER_H__
25 #define __RFLPC_SYS_TICK_TIMER_H__
27 #ifdef RFLPC_CONFIG_ENABLE_SYS_TICK_TIMER
47 #include "../interrupt.h"
48 #include "../nxp/LPC17xx.h"
62 SysTick->CTRL &= ~1UL;
69 SysTick->CTRL |= (1 << 1);
static void rflpc_sys_timer_start()
starts the system timer
void rflpc_sys_timer_set_tick_period(uint32_t ticks)
initializes the timer with a given tick count This automatically starts the timer even if it was stop...
static void rflpc_sys_timer_stop()
stops the system timer
static void rflpc_sys_timer_set_callback(rflpc_irq_handler_t c)
sets the callback for the timer interrupt
void rflpc_irq_set_handler(IRQn_Type irq, rflpc_irq_handler_t handler)
Sets an handler for the given IRQ.
void rflpc_sys_timer_init()
initializes the system timer
void rflpc_sys_timer_set_period(uint32_t micros_time)
initializes the timer with a given period (in µs) This automatically starts the timer even if it was ...
void(* rflpc_irq_handler_t)(void)
Interrupt handler type.