Kinetis SDK v.1.2 Demo Applications User's Guide  Rev. 0
Freescale Semiconductor, Inc.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
driver_examples/cop/main.c File Reference
#include <stdio.h>
#include "board.h"
#include "fsl_gpio_driver.h"
#include "fsl_cop_driver.h"
#include "fsl_os_abstraction.h"
#include "fsl_debug_console.h"

Macros

#define COP_INSTANCE
 

Functions

static uint32_t is_key_pressed (void)
 Check if button is pressed. More...
 
int main (void)
 COP reset chip. More...
 

Macro Definition Documentation

#define COP_INSTANCE

Function Documentation

static uint32_t is_key_pressed ( void  )
static

This function gets the state of button.

Returns
0 if botton is not pressed. 1 if botton is pressed
int main ( void  )

Function prototype for main function.

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 1 seconds and chip will reset.

Parameters
receiveBuffBuffer used to hold received data