From 6cd8ce7b924ba4e7462e637af3b7e5ea3bdcb3dc Mon Sep 17 00:00:00 2001 From: Andrey Date: Wed, 31 May 2023 18:39:14 -0400 Subject: [PATCH] progress? --- board.mk | 7 ++++++- custom_platform.mk | 2 +- hw_layer_at/chconf.h | 3 --- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/board.mk b/board.mk index f59c4da..11f4864 100644 --- a/board.mk +++ b/board.mk @@ -1,4 +1,9 @@ DDEFS += -DFIRMWARE_ID=\"AT32F435\" DDEFS += -DSHORT_BOARD_NAME=AT32F435 -DDEFS += -DAT32F435VGT7 +DDEFS += -DAT32F435xx + +# well, LOL +#DDEFS += -DSTM32F437xx +DDEFS += -DSTM32F4xx_MCUCONF +#DDEFS += -DSTM32F437_MCUCONF diff --git a/custom_platform.mk b/custom_platform.mk index 1431814..f556772 100644 --- a/custom_platform.mk +++ b/custom_platform.mk @@ -1,3 +1,3 @@ - CPU_STARTUP_DIR = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f7xx.mk + CPU_STARTUP_DIR = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/mk/startup_at32f4xx.mk CPU_PLATFORM = $(CHIBIOS)/os/hal/ports/AT32/AT32F4xx/platform.mk CPU_HWLAYER = ../../../../hw_layer_at \ No newline at end of file diff --git a/hw_layer_at/chconf.h b/hw_layer_at/chconf.h index 866f9a8..c797958 100644 --- a/hw_layer_at/chconf.h +++ b/hw_layer_at/chconf.h @@ -28,9 +28,6 @@ #ifndef CHCONF_H #define CHCONF_H -// todo: access some existing configuration field -#define STM32_SYSCLK 192000000 // 192 MHz - #define _CHIBIOS_RT_CONF_ #define _CHIBIOS_RT_CONF_VER_6_1_