LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
RITimer example

Macros

#define TIME_INTERVAL   1000
 

Functions

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

Variables

static volatile bool On
 

Detailed 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.

No special setup is required for the demo. Just build and run.

Build procedure: LPCOpen 18xx/43xx build instructions

Supported boards and board setup:

Submit bug reports for LPCOpen code here.

Macro Definition Documentation

#define TIME_INTERVAL   1000

Definition at line 66 of file ritimer.c.

Function Documentation

int main ( void  )

Main entry point.

Returns
Nothing

Definition at line 91 of file ritimer.c.

void RIT_IRQHandler ( void  )

RIT interrupt handler.

Returns
Nothing

Definition at line 77 of file ritimer.c.

Variable Documentation

volatile bool On
static

Definition at line 67 of file ritimer.c.