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
Diff: common.h
- Revision:
- 0:98e98e01a6ce
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/common.h Sun Apr 20 03:33:03 2014 +0000 @@ -0,0 +1,22 @@ +#include "mbed.h" + +#ifndef _COMMON_H +#define _COMMON_H + +//This macro is to maintain compatibility with Codewarrior version of the sample. This version uses the MBED libraries for serial port access +extern Serial PC; + +#define TERMINAL_PRINTF PC.printf + + + //This ticker code is used to maintain compability with the Codewarrior version of the sample. This code uses an MBED Ticker for background timing. + +#define NUM_TFC_TICKERS 4 + +extern Ticker TFC_TickerObj; + + +extern volatile uint32_t TFC_Ticker[NUM_TFC_TICKERS]; + + +#endif \ No newline at end of file