| LPCOpen Platform v1.03 LPCOpen Platform for NXP LPC Microcontrollers

- Main Page
- Modules
- Data Structures
- Files
- Related Pages

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
CHIP: LPC18xx/43xx RIT driver
LPC18xx/43xx chip specific drivers

## Detailed Description

## Functions
void | Chip_RIT_Init (LPC_RITIMER_T *pRITimer)
| Initialize the RIT.
void | Chip_RIT_DeInit (LPC_RITIMER_T *pRITimer)
| Shutdown the RIT.
STATIC INLINE void | Chip_RIT_Enable (LPC_RITIMER_T *pRITimer)
| Enable Timer.
STATIC INLINE void | Chip_RIT_Disable (LPC_RITIMER_T *pRITimer)
| Disable Timer.
STATIC INLINE void | Chip_RIT_TimerDebugEnable (LPC_RITIMER_T *pRITimer)
| Enable timer debug.
STATIC INLINE void | Chip_RIT_TimerDebugDisable (LPC_RITIMER_T *pRITimer)
| Disable timer debug.
STATIC INLINE IntStatus | Chip_RIT_GetIntStatus (LPC_RITIMER_T *pRITimer)
| Check whether interrupt flag is set or not.
STATIC INLINE void | Chip_RIT_SetCOMPVAL (LPC_RITIMER_T *pRITimer, uint32_t val)
| Set a tick value for the interrupt to time out.
STATIC INLINE void | Chip_RIT_EnableCTRL (LPC_RITIMER_T *pRITimer, uint32_t val)
| Enables or clears the RIT or interrupt.
STATIC INLINE void | Chip_RIT_ClearInt (LPC_RITIMER_T *pRITimer)
| Clears the RIT interrupt.
STATIC INLINE uint32_t | Chip_RIT_GetCounter (LPC_RITIMER_T *pRITimer)
| Returns the current RIT Counter value.
void | Chip_RIT_SetTimerInterval (LPC_RITIMER_T *pRITimer, uint32_t time_interval)
| Set timer interval value.

## Function Documentation

STATIC INLINE void Chip_RIT_ClearInt | ( | LPC_RITIMER_T * | pRITimer | ) |

Clears the RIT interrupt.

Parameters

  pRITimer | : RITimer peripheral selected

Returns
  None

Definition at line 135 of file ritimer_18xx_43xx.h.

void Chip_RIT_DeInit | ( | LPC_RITIMER_T * | pRITimer | ) |

Shutdown the RIT.

Parameters

  pRITimer | : RITimer peripheral selected

Returns
  None

Definition at line 58 of file ritimer_18xx_43xx.c.

STATIC INLINE void Chip_RIT_Disable | ( | LPC_RITIMER_T * | pRITimer | ) |

Disable Timer.

Parameters

  pRITimer | : RITimer peripheral selected

Returns
  None

Definition at line 73 of file ritimer_18xx_43xx.h.

STATIC INLINE void Chip_RIT_Enable | ( | LPC_RITIMER_T * | pRITimer | ) |

Enable Timer.

Parameters

  pRITimer | : RITimer peripheral selected

Returns
  None

Definition at line 63 of file ritimer_18xx_43xx.h.

STATIC INLINE void Chip_RIT_EnableCTRL | ( | LPC_RITIMER_T * | pRITimer,
|  | uint32_t | val
| ) |  |

Enables or clears the RIT or interrupt.

Parameters

  pRITimer | : RITimer peripheral selected
  val | : RIT to be set, one or more RIT_CTRL_* values

Returns
  None

Definition at line 125 of file ritimer_18xx_43xx.h.

STATIC INLINE uint32_t Chip_RIT_GetCounter | ( | LPC_RITIMER_T * | pRITimer | ) |

Returns the current RIT Counter value.

Parameters

  pRITimer | : RITimer peripheral selected

Returns
  the current timer counter value

Definition at line 145 of file ritimer_18xx_43xx.h.

STATIC INLINE IntStatus Chip_RIT_GetIntStatus | ( | LPC_RITIMER_T * | pRITimer | ) |

Check whether interrupt flag is set or not.

Parameters

  pRITimer | : RITimer peripheral selected

Returns
  Current interrupt status, either ET or UNSET

Definition at line 103 of file ritimer_18xx_43xx.h.

void Chip_RIT_Init | ( | LPC_RITIMER_T * | pRITimer | ) |

Initialize the RIT.

Parameters

  pRITimer | : RITimer peripheral selected

Returns
  None

Definition at line 51 of file ritimer_18xx_43xx.c.

STATIC INLINE void Chip_RIT_SetCOMPVAL | ( | LPC_RITIMER_T * | pRITimer,
|  | uint32_t | val
| ) |  |

Set a tick value for the interrupt to time out.

Parameters

  pRITimer | : RITimer peripheral selected
  val | : value (in ticks) of the interrupt to be set

Returns
  None

Definition at line 114 of file ritimer_18xx_43xx.h.

void Chip_RIT_SetTimerInterval | ( | LPC_RITIMER_T * | pRITimer,
|  | uint32_t | time_interval
| ) |  |

Set timer interval value.

Parameters

  pRITimer | : RITimer peripheral selected
  time_interval | : timer interval value (ms)

Returns
  None

Definition at line 65 of file ritimer_18xx_43xx.c.

STATIC INLINE void Chip_RIT_TimerDebugDisable | ( | LPC_RITIMER_T * | pRITimer | ) |

Disable timer debug.

Parameters

  pRITimer | : RITimer peripheral selected

Returns
  None

Definition at line 93 of file ritimer_18xx_43xx.h.

STATIC INLINE void Chip_RIT_TimerDebugEnable | ( | LPC_RITIMER_T * | pRITimer | ) |

Enable timer debug.

Parameters

  pRITimer | : RITimer peripheral selected

Returns
  None

Definition at line 83 of file ritimer_18xx_43xx.h.