Fix subaru_eg33 for OpenBLT
This commit is contained in:
parent
6d32d3bae4
commit
1585cb2137
|
@ -2,6 +2,8 @@
|
|||
BOARDCPPSRC = $(BOARD_DIR)/board_configuration.cpp \
|
||||
$(BOARD_DIR)/board_storage.cpp
|
||||
|
||||
# board.c from this directory
|
||||
BOARD_C = $(BOARD_DIR)/board.c
|
||||
# Required include directories
|
||||
BOARDINC += $(BOARD_DIR)/config/controllers/algo
|
||||
|
||||
|
|
|
@ -303,6 +303,7 @@ static const struct mc33810_config mc33810_even = {
|
|||
|
||||
static void board_init_ext_gpios()
|
||||
{
|
||||
#ifndef EFI_BOOTLOADER
|
||||
int ret;
|
||||
|
||||
ret = mc33810_add(Gpio::MC33810_0_OUT_0, 0, &mc33810_odd);
|
||||
|
@ -313,6 +314,7 @@ static void board_init_ext_gpios()
|
|||
if (ret < 0) {
|
||||
/* error */
|
||||
}
|
||||
#endif // EFI_BOOTLOADER
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -102,9 +102,11 @@
|
|||
|
||||
#define EFI_NARROW_EGO_AVERAGING TRUE
|
||||
|
||||
#ifndef EFI_BOOTLOADER // bootloader needs INT_FLASH and doesn't have MFS
|
||||
/* this board has external QSPI NOR flash */
|
||||
#undef EFI_STORAGE_MFS
|
||||
#define EFI_STORAGE_MFS TRUE
|
||||
|
||||
#undef EFI_STORAGE_INT_FLASH
|
||||
#define EFI_STORAGE_INT_FLASH FALSE
|
||||
#endif // EFI_BOOTLOADER
|
||||
|
|
|
@ -12,7 +12,11 @@ USE_OPT += -falign-functions=16
|
|||
DDEFS += -DSTM32F767xx
|
||||
MCU = cortex-m7
|
||||
LDSCRIPT = $(PROJECT_DIR)/hw_layer/ports/stm32/stm32f7/STM32F7.ld
|
||||
ALLCSRC += $(CHIBIOS)/os/hal/boards/ST_NUCLEO144_F767ZI/board.c
|
||||
# kludge: while we the very generic ChibiOS board.c we use our custom board.h from current folder!
|
||||
ifeq ($(BOARD_C),)
|
||||
BOARD_C = $(CHIBIOS)/os/hal/boards/ST_NUCLEO144_F767ZI/board.c
|
||||
endif
|
||||
ALLCSRC += $(BOARD_C)
|
||||
CONFDIR = $(PROJECT_DIR)/hw_layer/ports/stm32/stm32f7/cfg
|
||||
|
||||
# TODO: remove, for efifeatures.h
|
||||
|
|
Loading…
Reference in New Issue