| 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
Macros | Functions | Variables
RITimer example
Peripheral examples

## Detailed Description

Example description
This example describes how to use the RIT driver as a periodic interrupt source. The RIT time interval is configured to 1s. On each RITimer interrupt, the LED state will toggle.

Special connection requirements
There are no special connection requirements for this example.

Build procedures:
LPC18xx/43xx example quickstart for Keil uVision4
LPC18xx/43xx example quickstart for IAR EWARM
LPC18xx/43xx example quickstart for Code Red Xpresso

Supported boards and board setup:
Hitex 1850 evaluation boards
Hitex 4350 evaluation boards
Keil 1857 evaluation boards
Keil 4357 evaluation boards
NGX 1830 Xplorer boards
NGX 4330 Xplorer boards

Submitting LPCOpen issues:
Community support for LPCOpen

## Macros
#define | TIME_INTERVAL (1000)

## Functions
void | RIT_IRQHandler (void)
| RIT interrupt handler.
int | main (void)
| Main entry point.

## Variables
static volatile bool | On

## Macro Definition Documentation

#define TIME_INTERVAL (1000)

Definition at line 74 of file ritimer.c.

## Function Documentation

int main | ( | void |  | ) |

Main entry point.

Main program body.

Returns
  Nothing

Definition at line 99 of file ritimer.c.

void RIT_IRQHandler | ( | void |  | ) |

RIT interrupt handler.

Returns
  Nothing

Definition at line 85 of file ritimer.c.

## Variable Documentation

volatile bool On
| static

Definition at line 75 of file ritimer.c.