2014-12-23 20:03:31 -08:00
|
|
|
/**
|
|
|
|
* @file efifeatures.h
|
|
|
|
*
|
2014-12-31 15:03:34 -08:00
|
|
|
* @brief In this header we can configure which modules are used for EGT2CAN firmware.
|
2014-12-23 20:03:31 -08:00
|
|
|
*
|
|
|
|
* @date Dec 23, 2014
|
2015-01-12 15:04:10 -08:00
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2015
|
2014-12-23 20:03:31 -08:00
|
|
|
*/
|
2014-12-23 18:03:36 -08:00
|
|
|
|
2014-12-23 20:03:31 -08:00
|
|
|
#ifndef EFIFEATURES_H_
|
|
|
|
#define EFIFEATURES_H_
|
|
|
|
|
|
|
|
#define DL_OUTPUT_BUFFER 128
|
|
|
|
|
|
|
|
#define hal_lld_get_counter_value() DWT_CYCCNT
|
|
|
|
|
|
|
|
#define EFI_USE_UART_FOR_CONSOLE TRUE
|
|
|
|
|
|
|
|
#define EFI_CONSOLE_UART_DEVICE (&SD1)
|
|
|
|
|
|
|
|
#define EFI_CONSOLE_TX_PORT GPIOC
|
|
|
|
#define EFI_CONSOLE_TX_PIN 10
|
|
|
|
#define EFI_CONSOLE_RX_PORT GPIOC
|
|
|
|
#define EFI_CONSOLE_RX_PIN 11
|
|
|
|
#define EFI_CONSOLE_AF 7
|
|
|
|
|
|
|
|
|
|
|
|
#define LED_ERROR_PORT GPIOD
|
|
|
|
#define LED_ERROR_PIN 3
|
|
|
|
|
|
|
|
#define LED_COMMUNICATION_PORT GPIOD
|
|
|
|
#define LED_COMMUNICATION_PIN 4
|
|
|
|
|
|
|
|
#define SERIAL_SPEED 115200
|
|
|
|
/**
|
|
|
|
* This macros is used to hide pieces of the code from unit tests, so it only makes sense in folders exposed to the tests project.
|
|
|
|
* This macros is NOT about taking out logging in general.
|
|
|
|
*/
|
2014-12-31 16:03:30 -08:00
|
|
|
#define EFI_PROD_CODE FALSE
|
|
|
|
|
|
|
|
#define CCM_OPTIONAL
|
|
|
|
|
|
|
|
#define EFI_EGT TRUE
|
|
|
|
|
|
|
|
#define EFI_UNIT_TEST FALSE
|
2014-12-23 20:03:31 -08:00
|
|
|
|
|
|
|
#define CONSOLE_MODE_SWITCH_PORT GPIOB
|
|
|
|
#define CONSOLE_MODE_SWITCH_PIN 1
|
|
|
|
|
2014-12-31 13:04:10 -08:00
|
|
|
#define EFI_MAX_31855 TRUE
|
|
|
|
|
2014-12-29 18:04:24 -08:00
|
|
|
#define CONSOLE_MAX_ACTIONS 32
|
|
|
|
|
2014-12-23 20:03:31 -08:00
|
|
|
#define CONFIG_RESET_SWITCH_PORT GPIOD
|
|
|
|
#define CONFIG_RESET_SWITCH_PIN 6
|
|
|
|
|
2014-12-29 18:04:24 -08:00
|
|
|
/**
|
|
|
|
* This is the size of the MemoryStream used by chvprintf
|
|
|
|
*/
|
|
|
|
#define INTERMEDIATE_LOGGING_BUFFER_SIZE 256
|
|
|
|
|
|
|
|
|
2014-12-23 20:03:31 -08:00
|
|
|
#endif /* EFIFEATURES_H_ */
|