![]() |
Kinetis SDK v.1.2 Demo Applications User's Guide
Rev. 0
Freescale Semiconductor, Inc.
|
#include <stdio.h>
#include "board.h"
#include "fsl_rtc_driver.h"
#include "fsl_os_abstraction.h"
#include "fsl_debug_console.h"
Macros | |
#define | RTC_INSTANCE |
Functions | |
void | RTC_IRQHandler (void) |
ISR for Alarm interrupt. More... | |
int | main (void) |
RTC in alarm mode. More... | |
Variables | |
volatile bool | busyWait |
#define RTC_INSTANCE |
int main | ( | void | ) |
Function prototype for main function.
This function demostrates how to use RTC as an alarm clock.
receiveBuff | Buffer used to hold received data |
Return code from each SSD function
Address of the target location
Return protection status
Number of longword or phrase to be verified
0=normal, 1=user, 2=factory - margin read for reading
Indicate LED is brighter or dimmer
Use LPTMR in Time Counter mode
When hit compare value, set counter back to zero
bypass prescaler
use 1kHz Low Power Clock
void RTC_IRQHandler | ( | void | ) |
This function change state of busyWait.
volatile bool busyWait |