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

Macros

#define BOARD_PIT_INSTANCE
 

Functions

int main (void)
 Simple example for PIT driver Measure the time of the generated pulse using oscilloscope on LED1 and LED2. LED2 will toggle faster 2 times than LED1. Find the pin of LED1, LED2 from gpio_pins.c and board schematics. More...
 

Variables

volatile bool pitIsrFlag [2]
 

Macro Definition Documentation

#define BOARD_PIT_INSTANCE

Function Documentation

int main ( void  )

Function prototype for main function.

Example single timer period and interrupt on multiple channels

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

Use LPTMR in Time Counter mode

When hit compare value, set counter back to zero

bypass prescaler

use 1kHz Low Power Clock

Variable Documentation

volatile bool pitIsrFlag[2]