Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Servo mbed-rtos mbed
Diff: car_config.hpp
- Revision:
- 1:79b1ee0f97ef
- Parent:
- 0:ce6055872f4e
- Child:
- 2:7dfc8dd6aab3
--- a/car_config.hpp Sun Aug 02 12:55:33 2015 +0000 +++ b/car_config.hpp Mon Aug 31 22:25:57 2015 +0000 @@ -1,19 +1,17 @@ #ifndef __CAR_CONFIG_H__ #define __CAR_CONFIG_H__ -//#include "mbed.h" +#include "common_types.h" +#include "can.hpp" +//#include "eeprom.hpp" -#include "common_types.h" -#include "net.hpp" -#include "eeprom.hpp" - -#define SW_VERSION 1 -#define DD_VERSION 1 +//#define SW_VERSION 1 +//#define DD_VERSION 1 /****************************************** * CAR CONFIG ******************************************/ - +/* #define EEPROM_DATA_SW_VERS 0 #define EEPROM_DATA_DD_VERS 1 #define EEPROM_DATA_NSTARTS 2 @@ -25,11 +23,23 @@ //extern const t_eeprom_data eeprom_data[]; -#define PAGESIZE 64 -#define PAGENUMBER 4096 +#define PAGESIZE 64 +#define PAGENUMBER 4096 +*/ /********************* * HW CONFIG *********************/ +#define ALIVE_LED LED1 + +/** + * THREADS + */ + +#define CLOCK_THREAD_PERIOD 200 //milliseconds +#define ENGINE_THREAD_PERIOD 500 //milliseconds +#define BODY_THREAD_PERIOD 1000 //milliseconds +#define DRIVER_THREAD_PERIOD 500 //milliseconds + #endif //__CAR_CONFIG_H__