2017-07-22 14:13:26 -07:00
|
|
|
/**
|
|
|
|
* @file efifeatures.h
|
|
|
|
*
|
|
|
|
* @brief In this header we can configure which firmware modules are used.
|
|
|
|
*
|
2018-11-16 04:40:06 -08:00
|
|
|
* STM32F7 config is inherited from STM32F4. This file contains only differences between F4 and F7.
|
|
|
|
* This is more consistent way to maintain these config 'branches' and add new features.
|
|
|
|
*
|
2017-07-22 14:13:26 -07:00
|
|
|
* @date Aug 29, 2013
|
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2017
|
|
|
|
*/
|
2018-11-16 04:40:06 -08:00
|
|
|
|
|
|
|
#include "../stm32f4ems/efifeatures.h"
|
2017-07-22 14:13:26 -07:00
|
|
|
|
2018-11-16 04:40:06 -08:00
|
|
|
#ifndef EFIFEATURES_STM32F7_H_
|
|
|
|
#define EFIFEATURES_STM32F7_H_
|
2017-07-22 14:13:26 -07:00
|
|
|
|
2018-11-16 04:40:06 -08:00
|
|
|
// Warning! This is a test config!
|
2017-07-22 14:13:26 -07:00
|
|
|
|
2018-11-16 04:40:06 -08:00
|
|
|
// todo: reconfigure RAM sections for STM32F7
|
|
|
|
#undef EFI_USE_CCM
|
|
|
|
#define EFI_USE_CCM FALSE
|
2017-07-22 14:13:26 -07:00
|
|
|
|
2018-11-16 04:40:06 -08:00
|
|
|
#undef EFI_POTENTIOMETER
|
|
|
|
#define EFI_POTENTIOMETER FALSE
|
2017-07-22 14:13:26 -07:00
|
|
|
|
2018-11-16 04:40:06 -08:00
|
|
|
#undef EFI_MAX_31855
|
|
|
|
#define EFI_MAX_31855 FALSE
|
2017-07-22 14:13:26 -07:00
|
|
|
|
2018-11-16 04:40:06 -08:00
|
|
|
#undef EFI_MCP_3208
|
2017-07-22 14:13:26 -07:00
|
|
|
#define EFI_MCP_3208 FALSE
|
|
|
|
|
2018-11-16 04:40:06 -08:00
|
|
|
#undef EFI_HIP_9011
|
|
|
|
#define EFI_HIP_9011 FALSE
|
2017-07-22 14:13:26 -07:00
|
|
|
|
2018-11-16 04:40:06 -08:00
|
|
|
#undef EFI_CJ125
|
|
|
|
#define EFI_CJ125 FALSE
|
2017-07-22 14:13:26 -07:00
|
|
|
|
2018-11-16 04:40:06 -08:00
|
|
|
#undef EFI_DENSO_ADC
|
2017-07-22 14:13:26 -07:00
|
|
|
#define EFI_DENSO_ADC FALSE
|
|
|
|
|
2018-11-16 04:40:06 -08:00
|
|
|
#undef EFI_MEMS
|
|
|
|
#define EFI_MEMS FALSE
|
2017-07-22 14:13:26 -07:00
|
|
|
|
2018-11-16 04:40:06 -08:00
|
|
|
#undef EFI_CAN_SUPPORT
|
|
|
|
#define EFI_CAN_SUPPORT FALSE
|
2017-07-22 14:13:26 -07:00
|
|
|
|
2018-11-16 04:40:06 -08:00
|
|
|
#undef EFI_HD44780_LCD
|
|
|
|
#define EFI_HD44780_LCD FALSE
|
2017-07-22 14:13:26 -07:00
|
|
|
|
2019-03-29 07:29:01 -07:00
|
|
|
#undef EFI_LCD
|
|
|
|
#define EFI_LCD FALSE
|
|
|
|
|
2017-07-22 14:13:26 -07:00
|
|
|
/**
|
|
|
|
* Do we need file logging (like SD card) logic?
|
|
|
|
*/
|
2018-11-16 04:40:06 -08:00
|
|
|
#undef EFI_FILE_LOGGING
|
|
|
|
#define EFI_FILE_LOGGING FALSE
|
2017-07-22 14:13:26 -07:00
|
|
|
|
2018-11-16 04:40:06 -08:00
|
|
|
#undef EFI_USB_SERIAL
|
2017-07-22 14:13:26 -07:00
|
|
|
#define EFI_USB_SERIAL TRUE
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Do we need GPS logic?
|
|
|
|
*/
|
2018-11-16 04:40:06 -08:00
|
|
|
#undef EFI_UART_GPS
|
|
|
|
#define EFI_UART_GPS FALSE
|
2017-07-22 14:13:26 -07:00
|
|
|
|
|
|
|
// todo: start using consoleUartDevice? Not sure
|
2018-11-16 04:40:06 -08:00
|
|
|
#undef EFI_CONSOLE_UART_DEVICE
|
2017-07-22 14:13:26 -07:00
|
|
|
#define EFI_CONSOLE_UART_DEVICE (&SD3)
|
|
|
|
|
2018-11-16 04:40:06 -08:00
|
|
|
// todo: our "DMA-half" ChibiOS patch not implemented for USARTv2/STM32F7
|
|
|
|
#undef TS_UART_DMA_MODE
|
2017-07-22 14:13:26 -07:00
|
|
|
#define TS_UART_DMA_MODE FALSE
|
|
|
|
|
2019-03-29 07:29:01 -07:00
|
|
|
#undef TS_UART_DEVICE
|
|
|
|
#define TS_UART_DEVICE (&UARTD3)
|
|
|
|
#undef TS_SERIAL_DEVICE
|
|
|
|
#define TS_SERIAL_DEVICE (&SD3)
|
2017-07-22 14:13:26 -07:00
|
|
|
|
|
|
|
// todo: add DMA-mode for Console?
|
2019-03-29 07:29:01 -07:00
|
|
|
#if (TS_UART_DMA_MODE || TS_UART_MODE)
|
2017-07-22 14:13:26 -07:00
|
|
|
#undef EFI_CONSOLE_UART_DEVICE
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// todo: start using consoleSerialTxPin? Not sure
|
2018-11-16 04:40:06 -08:00
|
|
|
#undef EFI_CONSOLE_TX_PORT
|
|
|
|
#define EFI_CONSOLE_TX_PORT GPIOD
|
|
|
|
#undef EFI_CONSOLE_TX_PIN
|
|
|
|
#define EFI_CONSOLE_TX_PIN 8
|
2017-07-22 14:13:26 -07:00
|
|
|
// todo: start using consoleSerialRxPin? Not sure
|
2018-11-16 04:40:06 -08:00
|
|
|
#undef EFI_CONSOLE_RX_PORT
|
|
|
|
#define EFI_CONSOLE_RX_PORT GPIOD
|
|
|
|
#undef EFI_CONSOLE_RX_PIN
|
|
|
|
#define EFI_CONSOLE_RX_PIN 9
|
2017-07-22 14:13:26 -07:00
|
|
|
|
|
|
|
// LED_ERROR_BRAIN_PIN should match LED_ERROR_PORT/LED_ERROR_PIN
|
2018-11-16 04:40:06 -08:00
|
|
|
#undef LED_ERROR_BRAIN_PIN
|
|
|
|
#define LED_ERROR_BRAIN_PIN GPIOB_14
|
|
|
|
#undef LED_ERROR_PORT
|
|
|
|
#define LED_ERROR_PORT GPIOB
|
|
|
|
#undef LED_ERROR_PIN
|
2017-07-22 14:13:26 -07:00
|
|
|
#define LED_ERROR_PIN 14
|
|
|
|
|
2018-11-16 04:40:06 -08:00
|
|
|
// todo: temporary ignore errors, this is a test config
|
|
|
|
#define EFI_PRINT_ERRORS_AS_WARNINGS TRUE
|
2017-07-22 14:13:26 -07:00
|
|
|
|
2018-11-16 04:40:06 -08:00
|
|
|
#endif /* EFIFEATURES_STM32F7_H_ */
|