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 KNOCK_SPECTROGRAM
22#define KNOCK_SPECTROGRAM TRUE
23#endif
24
25#ifndef ENABLE_PERF_TRACE
26#define ENABLE_PERF_TRACE TRUE
27#endif
28
29#ifndef EFI_CONSOLE_TX_BRAIN_PIN
30// todo: kill default & move into board configuration?
31#define EFI_CONSOLE_TX_BRAIN_PIN Gpio::D8
32#endif
33
34#ifndef EFI_CONSOLE_RX_BRAIN_PIN
35#define EFI_CONSOLE_RX_BRAIN_PIN Gpio::D9
36#endif
37
38// see also EFI_EMBED_INI_MSD which is disabled above
39#ifndef EFI_USE_COMPRESSED_INI_MSD
40#define EFI_USE_COMPRESSED_INI_MSD TRUE
41#endif
42
43// UART driver not implemented on F7
44#ifndef AUX_SERIAL_DEVICE
45#define AUX_SERIAL_DEVICE (&SD6)
46#endif
47
48// todo: our "DMA-half" ChibiOS patch not implemented for USARTv2/STM32F7/STM32H7
49#ifndef EFI_USE_UART_DMA
50#define EFI_USE_UART_DMA FALSE
51#endif
52
53#ifndef FULL_SD_LOGS
54#define FULL_SD_LOGS TRUE
55#endif
56
57// note order of include - first we set F7 defaults (above) and only later we apply F4 defaults
58#include "../stm32f4ems/efifeatures.h"