rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1/**
2 * @file boards/subaru_eg33/board.c
3 *
4 * @date Feb 06, 2021
5 * @author Andrey Gusakov, 2021
6 */
7
8#ifndef BOARD_H
9#define BOARD_H
10
11/*
12 * Board identifier.
13 */
14#define BOARD_NAME "Subaru EG33/STM32F765 for RusEFI"
15
16#define EFI_USB_AF 10U
17//#define EFI_USB_SERIAL_ID Gpio::A10
18#define EFI_USB_SERIAL_DM Gpio::A11
19#define EFI_USB_SERIAL_DP Gpio::A12
20
21/*
22 * Board oscillators-related settings.
23 * NOTE: LSE not fitted.
24 */
25#if !defined(STM32_LSECLK)
26#define STM32_LSECLK 32768U
27#endif
28
29#define STM32_LSEDRV (3U << 3U)
30
31/*
32 * Board voltages.
33 * Required for performance limits calculation.
34 */
35#define STM32_VDD 330U
36
37/*
38 * MCU type as defined in the ST header.
39 * this declaration for stm32_registry.h
40 */
41#ifndef STM32F765xx
42#define STM32F765xx
43#endif
44
45#endif /* BOARD_H */