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
car_config.hpp@1:79b1ee0f97ef, 2015-08-31 (annotated)
- Committer:
- mariob
- Date:
- Mon Aug 31 22:25:57 2015 +0000
- Revision:
- 1:79b1ee0f97ef
- Parent:
- 0:ce6055872f4e
- Child:
- 2:7dfc8dd6aab3
first commit with the following features: CAN driver (it works), eeprom (it works but it is not used)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mariob | 0:ce6055872f4e | 1 | #ifndef __CAR_CONFIG_H__ |
mariob | 0:ce6055872f4e | 2 | #define __CAR_CONFIG_H__ |
mariob | 0:ce6055872f4e | 3 | |
mariob | 1:79b1ee0f97ef | 4 | #include "common_types.h" |
mariob | 1:79b1ee0f97ef | 5 | #include "can.hpp" |
mariob | 1:79b1ee0f97ef | 6 | //#include "eeprom.hpp" |
mariob | 0:ce6055872f4e | 7 | |
mariob | 1:79b1ee0f97ef | 8 | //#define SW_VERSION 1 |
mariob | 1:79b1ee0f97ef | 9 | //#define DD_VERSION 1 |
mariob | 0:ce6055872f4e | 10 | |
mariob | 0:ce6055872f4e | 11 | /****************************************** |
mariob | 0:ce6055872f4e | 12 | * CAR CONFIG |
mariob | 0:ce6055872f4e | 13 | ******************************************/ |
mariob | 1:79b1ee0f97ef | 14 | /* |
mariob | 0:ce6055872f4e | 15 | #define EEPROM_DATA_SW_VERS 0 |
mariob | 0:ce6055872f4e | 16 | #define EEPROM_DATA_DD_VERS 1 |
mariob | 0:ce6055872f4e | 17 | #define EEPROM_DATA_NSTARTS 2 |
mariob | 0:ce6055872f4e | 18 | #define EEPROM_DATA_TO_MISS 3 |
mariob | 0:ce6055872f4e | 19 | #define EEPROM_DATA_MIN_PWM 4 |
mariob | 0:ce6055872f4e | 20 | #define EEPROM_DATA_MAX_PWM 5 |
mariob | 0:ce6055872f4e | 21 | #define EEPROM_DATA_ENG_MIS 6 |
mariob | 0:ce6055872f4e | 22 | #define EEPROM_DATA_BDY_MIS 7 |
mariob | 0:ce6055872f4e | 23 | |
mariob | 0:ce6055872f4e | 24 | //extern const t_eeprom_data eeprom_data[]; |
mariob | 0:ce6055872f4e | 25 | |
mariob | 1:79b1ee0f97ef | 26 | #define PAGESIZE 64 |
mariob | 1:79b1ee0f97ef | 27 | #define PAGENUMBER 4096 |
mariob | 1:79b1ee0f97ef | 28 | */ |
mariob | 0:ce6055872f4e | 29 | |
mariob | 0:ce6055872f4e | 30 | /********************* |
mariob | 0:ce6055872f4e | 31 | * HW CONFIG |
mariob | 0:ce6055872f4e | 32 | *********************/ |
mariob | 0:ce6055872f4e | 33 | |
mariob | 1:79b1ee0f97ef | 34 | #define ALIVE_LED LED1 |
mariob | 1:79b1ee0f97ef | 35 | |
mariob | 1:79b1ee0f97ef | 36 | /** |
mariob | 1:79b1ee0f97ef | 37 | * THREADS |
mariob | 1:79b1ee0f97ef | 38 | */ |
mariob | 1:79b1ee0f97ef | 39 | |
mariob | 1:79b1ee0f97ef | 40 | #define CLOCK_THREAD_PERIOD 200 //milliseconds |
mariob | 1:79b1ee0f97ef | 41 | #define ENGINE_THREAD_PERIOD 500 //milliseconds |
mariob | 1:79b1ee0f97ef | 42 | #define BODY_THREAD_PERIOD 1000 //milliseconds |
mariob | 1:79b1ee0f97ef | 43 | #define DRIVER_THREAD_PERIOD 500 //milliseconds |
mariob | 1:79b1ee0f97ef | 44 | |
mariob | 0:ce6055872f4e | 45 | #endif //__CAR_CONFIG_H__ |