LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
CHIP: LPC18xx/43xx RIT driver

Functions

STATIC INLINE void Chip_RIT_Init (void)
 Initialize the RIT.
 
STATIC INLINE void Chip_RIT_DeInit (void)
 DeInitialize the RIT.
 
STATIC INLINE void Chip_RIT_Cmd (FunctionalState NewState)
 Enable/Disable Timer.
 
STATIC INLINE void Chip_RIT_TimerDebugCmd (FunctionalState NewState)
 Enable or disable timer debug.
 
STATIC INLINE IntStatus Chip_RIT_GetIntStatus (void)
 Check whether interrupt flag is set or not.
 
STATIC INLINE void Chip_RIT_SetCOMPVAL (uint32_t val)
 Set a tick value for the interrupt to time out.
 
STATIC INLINE void Chip_RIT_EnableCTRL (uint32_t val)
 Enables or clears the RIT or interrupt.
 
STATIC INLINE void Chip_RIT_ClearInt (void)
 Clears the RIT interrupt.
 
STATIC INLINE uint32_t Chip_RIT_GetCounter (void)
 Returns the current RIT Counter value.
 
void Chip_RIT_SetTimerInterval (uint32_t time_interval)
 Set timer interval value.
 

Detailed Description

Function Documentation

STATIC INLINE void Chip_RIT_ClearInt ( void  )

Clears the RIT interrupt.

Returns
None

Definition at line 117 of file ritimer_18xx_43xx.h.

STATIC INLINE void Chip_RIT_Cmd ( FunctionalState  NewState)

Enable/Disable Timer.

Parameters
NewState: ENABLE to enable timer, DISABLE to stop timer
Returns
None

Definition at line 69 of file ritimer_18xx_43xx.h.

STATIC INLINE void Chip_RIT_DeInit ( void  )

DeInitialize the RIT.

Returns
None

Definition at line 59 of file ritimer_18xx_43xx.h.

STATIC INLINE void Chip_RIT_EnableCTRL ( uint32_t  val)

Enables or clears the RIT or interrupt.

Parameters
val: RIT to be set, one or more RIT_CTRL_* values
Returns
None

Definition at line 108 of file ritimer_18xx_43xx.h.

STATIC INLINE uint32_t Chip_RIT_GetCounter ( void  )

Returns the current RIT Counter value.

Returns
the current timer counter value

Definition at line 126 of file ritimer_18xx_43xx.h.

STATIC INLINE IntStatus Chip_RIT_GetIntStatus ( void  )

Check whether interrupt flag is set or not.

Returns
Current interrupt status, either ET or UNSET

Definition at line 88 of file ritimer_18xx_43xx.h.

STATIC INLINE void Chip_RIT_Init ( void  )

Initialize the RIT.

Returns
None

Definition at line 50 of file ritimer_18xx_43xx.h.

STATIC INLINE void Chip_RIT_SetCOMPVAL ( uint32_t  val)

Set a tick value for the interrupt to time out.

Parameters
val: value (in ticks) of the interrupt to be set
Returns
None

Definition at line 98 of file ritimer_18xx_43xx.h.

void Chip_RIT_SetTimerInterval ( uint32_t  time_interval)

Set timer interval value.

Parameters
time_interval: timer interval value (ms)
Returns
None

Definition at line 51 of file ritimer_18xx_43xx.c.

STATIC INLINE void Chip_RIT_TimerDebugCmd ( FunctionalState  NewState)

Enable or disable timer debug.

Parameters
NewState: ENABLE to halt timer whenever a hardware break condition occurs
Returns
None

Definition at line 79 of file ritimer_18xx_43xx.h.