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

common.h

Committer:
morgonXak
Date:
2014-04-28
Revision:
1:2ca599933725
Parent:
0:98e98e01a6ce

File content as of revision 1:2ca599933725:

#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