![]() |
LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
|
Functions | |
static void | showTime (IP_RTC_TIME_T *pTime) |
void | RTC_IRQHandler (void) |
RTC interrupt handler. | |
int | main (void) |
Main entry point. | |
Variables | |
static volatile bool | fIntervalReached |
static volatile bool | fAlarmTimeMatched |
static volatile bool | On0 |
static volatile bool | On1 |
This example shows how to use the RTC, generate periodic interrupts, and use the alarm interrupt.
The RTC is configured to generate an interrupt on each second field register change. An interrupt is also configured when certain alarm field values match the time field values. The LEDs will toggle states based on the RTC events. You can also use a terminal program with the UART to monitor RTC time and events.
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.
void RTC_IRQHandler | ( | void | ) |
|
static |