fome-fw/firmware/config/stm32f7ems/efifeatures.h

75 lines
1.8 KiB
C
Raw Normal View History

2017-07-22 14:13:26 -07:00
/**
* @file efifeatures.h
*
* @brief In this header we can configure which firmware modules are used.
*
* 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
*/
// Disable ini ramdisk as a mitigation of https://github.com/rusefi/rusefi/issues/3775
// See STM32F7.ld for more info
#ifndef EFI_EMBED_INI_MSD
#define EFI_EMBED_INI_MSD FALSE
#endif
#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
#undef EFI_POTENTIOMETER
#define EFI_POTENTIOMETER FALSE
2017-07-22 14:13:26 -07:00
#undef EFI_MAX_31855
#define EFI_MAX_31855 FALSE
2017-07-22 14:13:26 -07: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
#define EFI_MC33816 FALSE
#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
#undef EFI_LCD
#define EFI_LCD FALSE
// todo: our "DMA-half" ChibiOS patch not implemented for USARTv2/STM32F7/STM32H7
#undef EFI_USE_UART_DMA
#define EFI_USE_UART_DMA FALSE
2017-07-22 14:13:26 -07:00
2021-07-26 06:08:05 -07:00
// UART driver not implemented on F7
#ifndef TS_NO_PRIMARY
#define TS_NO_PRIMARY 1
#endif
2022-02-09 20:40:00 -08:00
#ifndef TS_NO_SECONDARY
#define TS_NO_SECONDARY 1
2022-02-09 20:40:00 -08:00
#endif
2017-07-22 14:13:26 -07:00
#define AUX_SERIAL_DEVICE (&SD6)
2017-07-22 14:13:26 -07:00
// todo: start using consoleSerialTxPin? Not sure
#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
#undef EFI_CONSOLE_RX_BRAIN_PIN
#define EFI_CONSOLE_RX_BRAIN_PIN GPIOD_9
#define EFI_USE_COMPRESSED_INI_MSD
#undef ENABLE_PERF_TRACE
#define ENABLE_PERF_TRACE TRUE
// F7 may have dual bank, so flash on its own (low priority) thread so as to not block any other operations
#define EFI_FLASH_WRITE_THREAD TRUE
#undef LUA_USER_HEAP
#define LUA_USER_HEAP 100000
#undef LUA_SYSTEM_HEAP
#define LUA_SYSTEM_HEAP 100000