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
|
2020-01-13 18:57:43 -08:00
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2020
|
2017-07-22 14:13:26 -07:00
|
|
|
*/
|
2018-11-16 04:40:06 -08:00
|
|
|
|
|
|
|
#include "../stm32f4ems/efifeatures.h"
|
2017-07-22 14:13:26 -07:00
|
|
|
|
2019-11-03 07:36:35 -08:00
|
|
|
#pragma once
|
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
|
|
|
|
|
2019-05-03 19:12:57 -07:00
|
|
|
#undef EFI_MC33816
|
2019-05-03 18:13:25 -07:00
|
|
|
#define EFI_MC33816 FALSE
|
|
|
|
|
2018-11-16 04:40:06 -08:00
|
|
|
#undef EFI_HD44780_LCD
|
2021-02-13 11:23:39 -08:00
|
|
|
#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
|
|
|
// todo: start using consoleUartDevice? Not sure
|
2019-05-05 08:06:27 -07:00
|
|
|
#undef EFI_CONSOLE_SERIAL_DEVICE
|
2017-07-22 14:13:26 -07:00
|
|
|
|
2020-06-21 22:44:19 -07:00
|
|
|
#undef EFI_CONSOLE_UART_DEVICE
|
|
|
|
|
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
|
2020-06-21 19:14:01 -07:00
|
|
|
|
2020-06-21 19:26:11 -07:00
|
|
|
#undef PRIMARY_UART_DMA_MODE
|
2020-06-21 13:37:33 -07:00
|
|
|
#define PRIMARY_UART_DMA_MODE FALSE
|
2017-07-22 14:13:26 -07:00
|
|
|
|
2019-03-29 07:29:01 -07:00
|
|
|
#undef TS_UART_DEVICE
|
2020-05-04 17:52:32 -07:00
|
|
|
//#define TS_UART_DEVICE (&UARTD3)
|
|
|
|
|
2019-03-29 07:29:01 -07:00
|
|
|
#undef TS_SERIAL_DEVICE
|
2017-07-22 14:13:26 -07:00
|
|
|
|
2020-05-11 09:17:42 -07:00
|
|
|
#define AUX_SERIAL_DEVICE (&SD6)
|
|
|
|
|
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)
|
2019-05-05 08:06:27 -07:00
|
|
|
#undef EFI_CONSOLE_SERIAL_DEVICE
|
2017-07-22 14:13:26 -07:00
|
|
|
#endif
|
|
|
|
|
|
|
|
// todo: start using consoleSerialTxPin? Not sure
|
2020-05-02 20:47:10 -07:00
|
|
|
#undef EFI_CONSOLE_TX_BRAIN_PIN
|
|
|
|
#define EFI_CONSOLE_TX_BRAIN_PIN GPIOD_8
|
|
|
|
|
2017-07-22 14:13:26 -07:00
|
|
|
// todo: start using consoleSerialRxPin? Not sure
|
2020-05-02 20:47:10 -07:00
|
|
|
#undef EFI_CONSOLE_RX_BRAIN_PIN
|
|
|
|
#define EFI_CONSOLE_RX_BRAIN_PIN GPIOD_9
|
2021-03-07 16:25:34 -08:00
|
|
|
|
|
|
|
#define EFI_USE_COMPRESSED_INI_MSD
|