Fix subaru_eg33 for OpenBLT
This commit is contained in:
parent
6d32d3bae4
commit
1585cb2137
|
@ -2,6 +2,8 @@
|
||||||
BOARDCPPSRC = $(BOARD_DIR)/board_configuration.cpp \
|
BOARDCPPSRC = $(BOARD_DIR)/board_configuration.cpp \
|
||||||
$(BOARD_DIR)/board_storage.cpp
|
$(BOARD_DIR)/board_storage.cpp
|
||||||
|
|
||||||
|
# board.c from this directory
|
||||||
|
BOARD_C = $(BOARD_DIR)/board.c
|
||||||
# Required include directories
|
# Required include directories
|
||||||
BOARDINC += $(BOARD_DIR)/config/controllers/algo
|
BOARDINC += $(BOARD_DIR)/config/controllers/algo
|
||||||
|
|
||||||
|
|
|
@ -303,6 +303,7 @@ static const struct mc33810_config mc33810_even = {
|
||||||
|
|
||||||
static void board_init_ext_gpios()
|
static void board_init_ext_gpios()
|
||||||
{
|
{
|
||||||
|
#ifndef EFI_BOOTLOADER
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ret = mc33810_add(Gpio::MC33810_0_OUT_0, 0, &mc33810_odd);
|
ret = mc33810_add(Gpio::MC33810_0_OUT_0, 0, &mc33810_odd);
|
||||||
|
@ -313,6 +314,7 @@ static void board_init_ext_gpios()
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
/* error */
|
/* error */
|
||||||
}
|
}
|
||||||
|
#endif // EFI_BOOTLOADER
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -102,9 +102,11 @@
|
||||||
|
|
||||||
#define EFI_NARROW_EGO_AVERAGING TRUE
|
#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 */
|
/* this board has external QSPI NOR flash */
|
||||||
#undef EFI_STORAGE_MFS
|
#undef EFI_STORAGE_MFS
|
||||||
#define EFI_STORAGE_MFS TRUE
|
#define EFI_STORAGE_MFS TRUE
|
||||||
|
|
||||||
#undef EFI_STORAGE_INT_FLASH
|
#undef EFI_STORAGE_INT_FLASH
|
||||||
#define EFI_STORAGE_INT_FLASH FALSE
|
#define EFI_STORAGE_INT_FLASH FALSE
|
||||||
|
#endif // EFI_BOOTLOADER
|
||||||
|
|
|
@ -12,7 +12,11 @@ USE_OPT += -falign-functions=16
|
||||||
DDEFS += -DSTM32F767xx
|
DDEFS += -DSTM32F767xx
|
||||||
MCU = cortex-m7
|
MCU = cortex-m7
|
||||||
LDSCRIPT = $(PROJECT_DIR)/hw_layer/ports/stm32/stm32f7/STM32F7.ld
|
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
|
CONFDIR = $(PROJECT_DIR)/hw_layer/ports/stm32/stm32f7/cfg
|
||||||
|
|
||||||
# TODO: remove, for efifeatures.h
|
# TODO: remove, for efifeatures.h
|
||||||
|
|
Loading…
Reference in New Issue