From d32a0c55d0863adadefd5445231a55485064e0ef Mon Sep 17 00:00:00 2001 From: rusefillc Date: Tue, 4 Jul 2023 23:48:15 -0400 Subject: [PATCH] only:a bit of AT32 --- firmware/hw_layer/ports/stm32/stm32f4/global_port.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/firmware/hw_layer/ports/stm32/stm32f4/global_port.h b/firmware/hw_layer/ports/stm32/stm32f4/global_port.h index a58c249c94..7477a4e0cb 100644 --- a/firmware/hw_layer/ports/stm32/stm32f4/global_port.h +++ b/firmware/hw_layer/ports/stm32/stm32f4/global_port.h @@ -7,7 +7,12 @@ * Please note that DMA does not work with CCM memory */ +#if defined(AT32F4XX) +#define CCM_OPTIONAL +#define SDRAM_OPTIONAL +#define NO_CACHE // CCM memory is 64k #define CCM_OPTIONAL __attribute__((section(".ram4"))) #define SDRAM_OPTIONAL __attribute__((section(".ram7"))) #define NO_CACHE // F4 has no cache, do nothing +#endif