rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
mcuconf.h
Go to the documentation of this file.
1/**
2 * @file boards/subarue-eg33/mcuconf.h
3 *
4 * @brief In this header we can override mcuconf.h.
5 *
6 * @date Feb 06, 2021
7 * @author Andrey Gusakov, 2021
8 */
9#ifndef _MCUCONF_SUBARUEG33_H_
10#define _MCUCONF_SUBARUEG33_H_
11
12#include "../../../hw_layer/ports/stm32/stm32f7/cfg/mcuconf.h"
13
14#undef STM32_LSE_ENABLED
15#define STM32_LSE_ENABLED FALSE
16
17#undef STM32_RTCSEL
18#define STM32_RTCSEL STM32_RTCSEL_HSEDIV
19
20/* serials and uarts */
21#undef STM32_SERIAL_USE_USART1
22#undef STM32_UART_USE_USART1
23#define STM32_SERIAL_USE_USART1 TRUE
24#define STM32_UART_USE_USART1 FALSE
25
26#undef STM32_SERIAL_USE_USART2
27#undef STM32_UART_USE_USART2
28#define STM32_SERIAL_USE_USART2 FALSE
29#define STM32_UART_USE_USART2 FALSE
30
31#undef STM32_SERIAL_USE_USART3
32#undef STM32_UART_USE_USART3
33#define STM32_SERIAL_USE_USART3 FALSE
34#define STM32_UART_USE_USART3 FALSE
35
36#undef STM32_UART_USE_USART3
37#define STM32_UART_USE_USART3 FALSE
38
39#undef STM32_UART_USE_UART4
40#define STM32_UART_USE_UART4 FALSE
41
42#undef STM32_USB_USE_OTG1
43#define STM32_USB_USE_OTG1 TRUE
44
45#undef STM32_USB_USE_USB1
46#define STM32_USB_USE_USB1 TRUE
47
48#undef STM32_I2C_USE_I2C1
49#define STM32_I2C_USE_I2C1 FALSE
50
51#undef STM32_SPI_USE_SPI2
52#define STM32_SPI_USE_SPI2 TRUE
53
54#undef STM32_SPI_USE_SPI4
55#define STM32_SPI_USE_SPI4 TRUE
56
57#undef STM32_SPI_USE_SPI5
58#define STM32_SPI_USE_SPI5 TRUE
59
60#undef STM32_ADC_USE_ADC3
61#define STM32_ADC_USE_ADC3 TRUE
62
63/* default STM32_DMA_STREAM_ID(2, 4) used by ADC1 */
64#undef STM32_SPI_SPI5_TX_DMA_STREAM
65#define STM32_SPI_SPI5_TX_DMA_STREAM STM32_DMA_STREAM_ID(2, 6)
66
67/* STM32_DMA_STREAM_ID(2, 0) is used by SPI4_RX */
68#undef STM32_SDC_SDMMC2_DMA_STREAM
69#define STM32_SDC_SDMMC2_DMA_STREAM STM32_DMA_STREAM_ID(2, 5)
70
71/* To remove futher possible conflict */
72#undef STM32_SPI_SPI6_RX_DMA_STREAM
73
74#undef STM32_CAN_USE_CAN2
75#define STM32_CAN_USE_CAN2 FALSE
76
77//#undef STM32_CAN_CAN1_IRQ_PRIORITY
78//#define STM32_CAN_CAN1_IRQ_PRIORITY 4
79
80/*
81 * WSPI driver system settings.
82 */
83#define STM32_WSPI_USE_QUADSPI1 TRUE
84#define STM32_WSPI_QUADSPI1_DMA_STREAM STM32_DMA_STREAM_ID(2, 7)
85#define JEDEC_BUS_MODE JEDEC_BUS_MODE_WSPI4L
86/* QSPI is clocked from AHB clock, which is 216 MHz max
87 * Maximum CLK rate for SST26VF is 104/80MHz for Fast Read and
88 * Page program
89 * 216 / 3 = 72 MHz */
90#define STM32_WSPI_QUADSPI1_PRESCALER_VALUE 3
91
92#endif /* _MCUCONF_SUBARUEG33_H_ */