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

Functions

int main (void)
 Use FTM in PWM mode. More...
 

Function Documentation

int main ( void  )

Function prototype for main function.

This function use PWM to controll brightness of a LED. LED is brighter and then dimmer, continuously.

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

< 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