2014-12-23 20:03:31 -08:00
|
|
|
/**
|
|
|
|
* @file efifeatures.h
|
|
|
|
*
|
|
|
|
* @brief In this header we can configure which firmware modules are used.
|
|
|
|
*
|
|
|
|
* @date Dec 23, 2014
|
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2014
|
|
|
|
*/
|
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.
|
|
|
|
*/
|
|
|
|
#define EFI_PROD_CODE TRUE
|
|
|
|
|
|
|
|
#define CONSOLE_MODE_SWITCH_PORT GPIOB
|
|
|
|
#define CONSOLE_MODE_SWITCH_PIN 1
|
|
|
|
|
|
|
|
#define CONFIG_RESET_SWITCH_PORT GPIOD
|
|
|
|
#define CONFIG_RESET_SWITCH_PIN 6
|
|
|
|
|
|
|
|
#endif /* EFIFEATURES_H_ */
|