This project serves as a template for work with the Freescale FRDM-KL46 board. Support will be added to all on-board peripherals, sensors and I/O.

Dependencies:   FRDM_MMA8451Q MAG3110 TSI mbed

Project Information:

Theory

This project has been created to serve as a template for those who wish to use the Freescale Freedom FRDM-KL46Z board. Existing drivers within mbed have been brought together and board specific configurations for certain inputs and outputs have included.

Libraries

TODOs

Hardware Information:

FRDM-KL46Z Information

Freescale Kinetis L-Series Microcontroller Information

Freescale Sensor Information

MMA8451Q

MAG3110

Committer:
mmaas
Date:
Wed Dec 18 20:27:34 2013 +0000
Revision:
0:79ae6809c2d0
Child:
1:28c81db67f50
This project serves as a foundation for work with the Freescale FRDM-KL46Z board.  This commit simply provides the USB serial console and uses a temporary copy of the mbed libraries with a couple of fixes for KL46 support.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mmaas 0:79ae6809c2d0 1 #include "mbed.h"
mmaas 0:79ae6809c2d0 2
mmaas 0:79ae6809c2d0 3 Serial pc(USBTX, USBRX);
mmaas 0:79ae6809c2d0 4
mmaas 0:79ae6809c2d0 5
mmaas 0:79ae6809c2d0 6 int main() {
mmaas 0:79ae6809c2d0 7
mmaas 0:79ae6809c2d0 8 // Set Serial Port data rate and say Hello
mmaas 0:79ae6809c2d0 9 pc.baud( 230400 );
mmaas 0:79ae6809c2d0 10 pc.printf("Hello World\r\n");
mmaas 0:79ae6809c2d0 11
mmaas 0:79ae6809c2d0 12 // Loop with print and short delay
mmaas 0:79ae6809c2d0 13 while(1) {
mmaas 0:79ae6809c2d0 14 pc.printf("Hello again: 01234567890123456789012345678901234567890123456789012345678901234\r\n");
mmaas 0:79ae6809c2d0 15 }
mmaas 0:79ae6809c2d0 16 }