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
- Committer:
- mariob
- Date:
- 2015-08-31
- Revision:
- 1:79b1ee0f97ef
- Parent:
- 0:ce6055872f4e
- Child:
- 2:7dfc8dd6aab3
File content as of revision 1:79b1ee0f97ef:
#ifndef __CAR_CONFIG_H__
#define __CAR_CONFIG_H__
#include "common_types.h"
#include "can.hpp"
//#include "eeprom.hpp"
//#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
#define EEPROM_DATA_TO_MISS 3
#define EEPROM_DATA_MIN_PWM 4
#define EEPROM_DATA_MAX_PWM 5
#define EEPROM_DATA_ENG_MIS 6
#define EEPROM_DATA_BDY_MIS 7
//extern const t_eeprom_data eeprom_data[];
#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__