rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
efifeatures.h
Go to the documentation of this file.
1/**
2 * @file efifeatures.h
3 *
4 * @brief In this header we can configure which firmware modules are used.
5 *
6 * STM32F7 config is inherited from STM32F4. This file contains only differences between F4 and F7.
7 * This is more consistent way to maintain these config 'branches' and add new features.
8 *
9 * @date Aug 29, 2013
10 * @author Andrey Belomutskiy, (c) 2012-2020
11 */
12
13 #pragma once
14
15// Disable ini ramdisk as a mitigation of https://github.com/rusefi/rusefi/issues/3775
16// See STM32F7.ld for more info
17#ifndef EFI_EMBED_INI_MSD
18#define EFI_EMBED_INI_MSD FALSE
19#endif
20
21#ifndef ENABLE_PERF_TRACE
22#define ENABLE_PERF_TRACE TRUE
23#endif
24
25#ifndef EFI_CONSOLE_TX_BRAIN_PIN
26// todo: kill default & move into board configuration?
27#define EFI_CONSOLE_TX_BRAIN_PIN Gpio::D8
28#endif
29
30#ifndef EFI_CONSOLE_RX_BRAIN_PIN
31#define EFI_CONSOLE_RX_BRAIN_PIN Gpio::D9
32#endif
33
34// see also EFI_EMBED_INI_MSD which is disabled above
35#ifndef EFI_USE_COMPRESSED_INI_MSD
36#define EFI_USE_COMPRESSED_INI_MSD TRUE
37#endif
38
39// UART driver not implemented on F7
40#ifndef AUX_SERIAL_DEVICE
41#define AUX_SERIAL_DEVICE (&SD6)
42#endif
43
44// todo: our "DMA-half" ChibiOS patch not implemented for USARTv2/STM32F7/STM32H7
45#ifndef EFI_USE_UART_DMA
46#define EFI_USE_UART_DMA FALSE
47#endif
48
49#ifndef FULL_SD_LOGS
50#define FULL_SD_LOGS TRUE
51#endif
52
53// note order of include - first we set F7 defaults (above) and only later we apply F4 defaults
54#include "../stm32f4ems/efifeatures.h"