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

Dependencies:   FRDM-TFC

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers common.h Source File

common.h

00001 #include "mbed.h"
00002 
00003 #ifndef _COMMON_H
00004 #define _COMMON_H
00005 
00006 //This macro is to maintain compatibility with Codewarrior version of the sample.   This version uses the MBED libraries for serial port access
00007 extern Serial PC;
00008 
00009 #define TERMINAL_PRINTF     PC.printf
00010 
00011  
00012  //This ticker code is used to maintain compability with the Codewarrior version of the sample.   This code uses an MBED Ticker for background timing.
00013  
00014 #define NUM_TFC_TICKERS 4
00015 
00016 extern Ticker TFC_TickerObj;
00017  
00018 
00019 extern volatile uint32_t TFC_Ticker[NUM_TFC_TICKERS];
00020 
00021 
00022 #endif