feat: H7 support (#5738)

Co-authored-by: Richard Li <richard.li@ces.hk>
Co-authored-by: philmoz <phil.a.mitchell@gmail.com>
Co-authored-by: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com>
This commit is contained in:
Malte Langermann
2025-01-18 10:08:13 +01:00
committed by GitHub
co-authored by Richard Li philmoz raphaelcoeffic
parent 5a15ffb017
commit 3d25c2a0f8
458 changed files with 441554 additions and 2410 deletions
+2 -24
View File
@@ -25,6 +25,8 @@
#include <stdbool.h>
#include <stddef.h>
#include "memory_sections.h"
#if !defined(M_PI)
#define M_PI 3.14159265358979323846 // pi
#define M_PI_2 1.57079632679489661923 // pi/2
@@ -55,30 +57,6 @@
#endif
#endif
#if defined(SIMU)
#define __DMA
#else
#define __DMA __attribute__((section(".ram"), aligned(4)))
#endif
#if defined(CCMRAM) && !defined(SIMU)
#define __CCMRAM __attribute__((section(".ccm"), aligned(4)))
#else
#define __CCMRAM
#endif
#if defined(SDRAM) && !defined(SIMU)
#define __SDRAM __attribute__((section(".sdram"), aligned(4)))
#if defined(COLORLCD)
#define __SDRAMFONTS __attribute__((section(".sdram_fonts"), aligned(4)))
#endif
#else
#define __SDRAM __DMA
#if defined(COLORLCD)
#define __SDRAMFONTS __DMA
#endif
#endif
#if __GNUC__
#define PACK(__Declaration__) __Declaration__ __attribute__((__packed__))
#else