![]() |
Kinetis SDK v.1.2 Demo Applications User's Guide
Rev. 0
Freescale Semiconductor, Inc.
|
provide generic high-level routines for ARM Cortex M0/M0+ processors. More...
Go to the source code of this file.
Macros | |
#define | ARM_INTERRUPT_LEVEL_BITS |
ARM Cortex M0 implementation for interrupt priority shift. More... | |
#define | EnableInterrupts |
Macro to enable all interrupts. More... | |
#define | DisableInterrupts |
Macro to disable all interrupts. More... | |
#define | disable_irq(irq) |
#define | enable_irq(irq) |
#define | set_irq_priority(irq, prio) |
#define | FALSE |
Misc. Defines. More... | |
#define | TRUE |
#define | NULL |
#define | ON |
#define | OFF |
#define | ENABLE |
#define | DISABLE |
Typedefs | |
typedef unsigned char | uint8 |
The basic data types. More... | |
typedef unsigned short int | uint16 |
16 bits More... | |
typedef unsigned long int | uint32 |
32 bits More... | |
typedef char | int8 |
8 bits More... | |
typedef short int | int16 |
16 bits More... | |
typedef int | int32 |
32 bits More... | |
typedef volatile int8 | vint8 |
8 bits More... | |
typedef volatile int16 | vint16 |
16 bits More... | |
typedef volatile int32 | vint32 |
32 bits More... | |
typedef volatile uint8 | vuint8 |
8 bits More... | |
typedef volatile uint16 | vuint16 |
16 bits More... | |
typedef volatile uint32 | vuint32 |
32 bits More... | |
Functions | |
int | main (void) |
Function prototype for main function. More... | |
void | stop (void) |
Function prototype for arm_cm0.c. More... | |
void | wait (void) |
void | write_vtor (int) |
#define ARM_INTERRUPT_LEVEL_BITS |
#define DISABLE |
#define disable_irq | ( | irq | ) |
#define DisableInterrupts |
#define ENABLE |
#define enable_irq | ( | irq | ) |
#define EnableInterrupts |
#define FALSE |
#define NULL |
#define OFF |
#define ON |
#define set_irq_priority | ( | irq, | |
prio | |||
) |
#define TRUE |
typedef short int int16 |
typedef int int32 |
typedef char int8 |
typedef unsigned short int uint16 |
typedef unsigned long int uint32 |
typedef unsigned char uint8 |
8 bits
int main | ( | void | ) |
Function prototype for main function.
Function prototype for main function.
This function used the input of user as trigger to start the measurement. When user press any key, the conversion will begin, then print converted value and current temperature of the chip.
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.
Function prototype for main function.
This function uses terminal to enter DAC value and convert this value to DAC output.
Function prototype for main function.
This function use DMA peripheral to transfer two buffers
Function prototype for main function.
Thid function uses DSPI master to send an array to slave and receive the array back from slave, thencompare whether the two buffers are the same.
Function prototype for main function.
This function sends back received buffer from master through DSPI interface.
Function prototype for main function.
This function sends an array through DSPI loopback interface and compare it with received buffer whether they are the same.
Function prototype for main function.
This function use EDMA peripheral to transfer two buffers
Function prototype for main function.
This function use EWM as a watchdog for an external circuit. when the counter reaches high value, EWM enter interrupt.
Function prototype for main function.
This function uses SSD to demonstrate flash mode:
Function prototype for main function.
This function use PWM to controll brightness of a LED. LED is brighter and then dimmer, continuously.
Function prototype for main function.
This function toogles LED1 when press SW.
Function prototype for main function.
This function uses PDB to generate a constant period of time. Each time, PDB expires, interrupt occurres.
Function prototype for main function.
Example single timer period and interrupt on multiple channels
Function prototype for main function.
This function demostrates how to use RTC as an alarm clock.
Function prototype for main function.
This function demonstrates how to use touch sensor interface. When touching platform, a LED is turned on.
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
void stop | ( | void | ) |
void wait | ( | void | ) |
void write_vtor | ( | int | ) |