This is an example program that actually allows the car to race using the FRDM-TFC library!
Fork of TFC-RACING-DEMO by
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
Generated on Sat Jul 16 2022 21:06:43 by
