27 #ifndef __RFLPC_RIT_H__
28 #define __RFLPC_RIT_H__
30 #ifdef RFLPC_CONFIG_ENABLE_RIT_TIMER
32 #include "../nxp/LPC17xx.h"
33 #include "../interrupt.h"
47 LPC_SC->PCONP |= (1UL << 16);
static void rflpc_rit_set_counter_value(uint32_t value)
Sets the current value of the rit counter.
static uint32_t rflpc_rit_get_counter_value()
Gets the current value of the rit counter.
void rflpc_rit_set_callback(uint32_t comp_value, uint32_t mask, int reset_on_match, rflpc_irq_handler_t c)
sets the RIT interrupt callback and configure the RIT interrupt.
static void rflpc_rit_enable()
Enables the RIT.
static void rflpc_rit_clear_pending_interrupt()
clears the pending interrupt.
void(* rflpc_irq_handler_t)(void)
Interrupt handler type.