| Kinetis SDK Demo Applications User Guide 1.0.0-beta Freescale Semiconductor, Inc.

- Main Page
- Related Pages
- Demos

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
rtc_demo.c File Reference
`#include <stdlib.h>`
`#include <assert.h>`
`#include <string.h>`
`#include "fsl_device_registers.h"`
`#include "fsl_clock_manager.h"`
`#include "fsl_interrupt_manager.h"`
`#include "fsl_rtc_driver.h"`
`#include "fsl_uart_driver.h"`
`#include "board.h"`

## Functions
void | hardware_init (void)
static void | rtc_seconds_ISR (void)
| RTC Seconds ISR. More...
void | main (void)
| RTC demo main routine. More...

## Variables
volatile bool | secondsFlag
IRQn_Type | rtc_irq_ids [FSL_FEATURE_RTC_INTERRUPT_COUNT]

## Function Documentation

void hardware_init | ( | void |  | ) |

void main | ( | void |  | ) |

Run a simple application which enables RTC timer. Each second time is refreshed on a UART terminal unsing the seconds interrupt. Alarm functionality is currently not enabled.

static void rtc_seconds_ISR | ( | void |  | ) |
| static

Seconds RTC Interrupt function. Toggles an LED and turns on a flag

## Variable Documentation

IRQn_Type rtc_irq_ids[FSL_FEATURE_RTC_INTERRUPT_COUNT]

volatile bool secondsFlag