![]() |
Kinetis SDK v.1.2 Demo Applications User's Guide
Rev. 0
Freescale Semiconductor, Inc.
|
#include <stdio.h>
#include "board.h"
#include "fsl_wdog_driver.h"
#include "fsl_os_abstraction.h"
#include "fsl_debug_console.h"
Macros | |
#define | BLINK_TIME |
Functions | |
static uint32_t | is_key_pressed (void) |
Check if button is pressed. More... | |
int | main (void) |
Watchdog main routine Run a simple application which enables watchdog, then continuously refreshes the watchdog to prevent CPU reset Upon SW1 button push, the watchdog will expire after approximately 2 seconds and issue reset. More... | |
#define BLINK_TIME |
|
static |
This function gets the state of button.
int main | ( | void | ) |
Function prototype for main function.
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
< Enables slcd clock from osc
< SLCD starts fault detection and caused an LCD interrupt later
< SLCD starts blinking mode
< SLCD stops blinking mode
< SLCD starts blank display mode
< SLCD stops blank display mode
Average TSI value of untouched state