This is an example program that actually allows the car to race using the FRDM-TFC library!

Dependencies:   FRDM-TFC

Fork of TFC-RACING-DEMO by Daniel Hadad

Committer:
morgonXak
Date:
Mon Apr 28 15:05:37 2014 +0000
Revision:
1:2ca599933725
Parent:
0:98e98e01a6ce
jguh; \; ;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
redxeth 0:98e98e01a6ce 1 #include "mbed.h"
redxeth 0:98e98e01a6ce 2
redxeth 0:98e98e01a6ce 3 #ifndef _COMMON_H
redxeth 0:98e98e01a6ce 4 #define _COMMON_H
redxeth 0:98e98e01a6ce 5
redxeth 0:98e98e01a6ce 6 //This macro is to maintain compatibility with Codewarrior version of the sample. This version uses the MBED libraries for serial port access
redxeth 0:98e98e01a6ce 7 extern Serial PC;
redxeth 0:98e98e01a6ce 8
redxeth 0:98e98e01a6ce 9 #define TERMINAL_PRINTF PC.printf
redxeth 0:98e98e01a6ce 10
redxeth 0:98e98e01a6ce 11
redxeth 0:98e98e01a6ce 12 //This ticker code is used to maintain compability with the Codewarrior version of the sample. This code uses an MBED Ticker for background timing.
redxeth 0:98e98e01a6ce 13
redxeth 0:98e98e01a6ce 14 #define NUM_TFC_TICKERS 4
redxeth 0:98e98e01a6ce 15
redxeth 0:98e98e01a6ce 16 extern Ticker TFC_TickerObj;
redxeth 0:98e98e01a6ce 17
redxeth 0:98e98e01a6ce 18
redxeth 0:98e98e01a6ce 19 extern volatile uint32_t TFC_Ticker[NUM_TFC_TICKERS];
redxeth 0:98e98e01a6ce 20
redxeth 0:98e98e01a6ce 21
redxeth 0:98e98e01a6ce 22 #endif