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
|
|
|
*/
|
2022-02-23 09:03:10 -08:00
|
|
|
|
2023-06-29 16:49:15 -07:00
|
|
|
#pragma once
|
|
|
|
|
2022-02-23 09:03:10 -08: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
|
2022-11-23 03:01:34 -08:00
|
|
|
|
2023-06-29 14:41:27 -07:00
|
|
|
#ifndef ENABLE_PERF_TRACE
|
|
|
|
#define ENABLE_PERF_TRACE TRUE
|
|
|
|
#endif
|
|
|
|
|
2023-06-30 18:48:21 -07:00
|
|
|
#ifndef EFI_CONSOLE_TX_BRAIN_PIN
|
|
|
|
// todo: kill default & move into board configuration?
|
|
|
|
#define EFI_CONSOLE_TX_BRAIN_PIN Gpio::D8
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef EFI_CONSOLE_RX_BRAIN_PIN
|
|
|
|
#define EFI_CONSOLE_RX_BRAIN_PIN Gpio::D9
|
|
|
|
#endif
|
|
|
|
|
2024-05-27 01:12:08 -07:00
|
|
|
// see also EFI_EMBED_INI_MSD which is disabled above
|
|
|
|
#ifndef EFI_USE_COMPRESSED_INI_MSD
|
|
|
|
#define EFI_USE_COMPRESSED_INI_MSD TRUE
|
|
|
|
#endif
|
|
|
|
|
2024-06-24 14:17:15 -07:00
|
|
|
#ifndef LUA_USER_HEAP
|
|
|
|
#define LUA_USER_HEAP 100000
|
|
|
|
#endif
|
2017-07-22 14:13:26 -07:00
|
|
|
|
2024-06-24 14:17:15 -07:00
|
|
|
// UART driver not implemented on F7
|
|
|
|
#ifndef AUX_SERIAL_DEVICE
|
|
|
|
#define AUX_SERIAL_DEVICE (&SD6)
|
|
|
|
#endif
|
2019-05-03 18:13:25 -07:00
|
|
|
|
2021-03-28 06:06:36 -07:00
|
|
|
// todo: our "DMA-half" ChibiOS patch not implemented for USARTv2/STM32F7/STM32H7
|
2024-06-24 14:17:15 -07:00
|
|
|
#ifndef EFI_USE_UART_DMA
|
2021-03-28 06:06:36 -07:00
|
|
|
#define EFI_USE_UART_DMA FALSE
|
2024-06-24 14:17:15 -07:00
|
|
|
#endif
|
2020-05-11 09:17:42 -07:00
|
|
|
|
2021-05-28 22:05:29 -07:00
|
|
|
// F7 may have dual bank, so flash on its own (low priority) thread so as to not block any other operations
|
2024-06-24 14:17:15 -07:00
|
|
|
#ifndef EFI_FLASH_WRITE_THREAD
|
2021-05-28 22:05:29 -07:00
|
|
|
#define EFI_FLASH_WRITE_THREAD TRUE
|
2024-06-24 14:17:15 -07:00
|
|
|
#endif
|
2021-10-09 06:02:30 -07:00
|
|
|
|
2024-06-24 14:17:15 -07:00
|
|
|
// note order of include - first we set F7 defaults (above) and only later we apply F4 defaults
|
|
|
|
#include "../stm32f4ems/efifeatures.h"
|