![]() |
LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
|
Data Structures | |
struct | IP_RITIMER_001_Type |
Repetitive Interrupt Timer register block structure. More... | |
Macros | |
#define | RIT_CTRL_INT ((uint32_t) (1)) |
RITIMER register support bitfields and mask. | |
#define | RIT_CTRL_ENCLR ((uint32_t) _BIT(1)) |
#define | RIT_CTRL_ENBR ((uint32_t) _BIT(2)) |
#define | RIT_CTRL_TEN ((uint32_t) _BIT(3)) |
Functions | |
void | IP_RIT_Init (IP_RITIMER_001_Type *RITx) |
Initialize the RIT. | |
void | IP_RIT_DeInit (IP_RITIMER_001_Type *RITx) |
DeInitialize the RIT. | |
void | IP_RIT_Enable (IP_RITIMER_001_Type *RITx, FunctionalState NewState) |
Enable/Disable Timer. | |
void | IP_RIT_TimerDebugCmd (IP_RITIMER_001_Type *RITx, FunctionalState NewState) |
Timer Enable/Disable on debug. | |
IntStatus | IP_RIT_GetIntStatus (IP_RITIMER_001_Type *RITx) |
Check whether interrupt flag is set or not. | |
STATIC INLINE void | IP_RIT_SetCOMPVAL (IP_RITIMER_001_Type *RITx, uint32_t val) |
Set a tick value for the interrupt to time out. | |
STATIC INLINE void | IP_RIT_EnableCTRL (IP_RITIMER_001_Type *RITx, uint32_t val) |
Enables or clears the RIT or interrupt. | |
STATIC INLINE uint32_t | IP_RIT_GetCounter (IP_RITIMER_001_Type *RITx) |
Get the RIT Counter value. | |
Repetitive Interrupt Timer
#define RIT_CTRL_ENBR ((uint32_t) _BIT(2)) |
Set timer enable on debug
Definition at line 70 of file ritimer_001.h.
#define RIT_CTRL_ENCLR ((uint32_t) _BIT(1)) |
Set timer enable clear to 0 when the counter value equals the masked compare value
Definition at line 68 of file ritimer_001.h.
#define RIT_CTRL_INT ((uint32_t) (1)) |
RITIMER register support bitfields and mask.
Set by H/W when the counter value equals the masked compare value
Definition at line 66 of file ritimer_001.h.
#define RIT_CTRL_TEN ((uint32_t) _BIT(3)) |
Set timer enable
Definition at line 72 of file ritimer_001.h.
void IP_RIT_DeInit | ( | IP_RITIMER_001_Type * | RITx | ) |
DeInitialize the RIT.
RITx | : RIT peripheral selected |
Definition at line 60 of file ritimer_001.c.
void IP_RIT_Enable | ( | IP_RITIMER_001_Type * | RITx, |
FunctionalState | NewState | ||
) |
Enable/Disable Timer.
RITx | : RIT peripheral selected |
NewState | : ENABLE to enable RITimer, DISABLE to disable |
Definition at line 66 of file ritimer_001.c.
STATIC INLINE void IP_RIT_EnableCTRL | ( | IP_RITIMER_001_Type * | RITx, |
uint32_t | val | ||
) |
Enables or clears the RIT or interrupt.
RITx | : RIT peripheral selected |
val | : RIT to be set, one or more RIT_CTRL_* values |
Definition at line 128 of file ritimer_001.h.
STATIC INLINE uint32_t IP_RIT_GetCounter | ( | IP_RITIMER_001_Type * | RITx | ) |
Get the RIT Counter value.
RITx | : RIT peripheral selected |
Definition at line 138 of file ritimer_001.h.
IntStatus IP_RIT_GetIntStatus | ( | IP_RITIMER_001_Type * | RITx | ) |
Check whether interrupt flag is set or not.
RITx | : RIT peripheral selected |
Definition at line 88 of file ritimer_001.c.
void IP_RIT_Init | ( | IP_RITIMER_001_Type * | RITx | ) |
Initialize the RIT.
RITx | : RIT peripheral selected |
Definition at line 51 of file ritimer_001.c.
STATIC INLINE void IP_RIT_SetCOMPVAL | ( | IP_RITIMER_001_Type * | RITx, |
uint32_t | val | ||
) |
Set a tick value for the interrupt to time out.
RITx | : RIT peripheral selected |
val | : value (in ticks) of the interrupt to be set |
Definition at line 117 of file ritimer_001.h.
void IP_RIT_TimerDebugCmd | ( | IP_RITIMER_001_Type * | RITx, |
FunctionalState | NewState | ||
) |
Timer Enable/Disable on debug.
RITx | : RIT peripheral selected |
NewState | : ENABLE to halt timer whenever a hardware break condition occurs |
Definition at line 77 of file ritimer_001.c.