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/gpio/main.c File Reference
#include <stdio.h>
#include "board.h"
#include "gpio_pins.h"
#include "fsl_debug_console.h"

Functions

int main (void)
 Uses a switch to controll a LED. More...
 
void BOARD_SW_IRQ_HANDLER (void)
 Interrupt service fuction of switch. More...
 

Variables

volatile bool isButtonPress
 

Function Documentation

void BOARD_SW_IRQ_HANDLER ( void  )

This function toogles LED1

int main ( void  )

Function prototype for main function.

This function toogles LED1 when press SW.

Parameters
receiveBuffBuffer 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

Variable Documentation

volatile bool isButtonPress