From 9f8ce70771047c4359b2d22560bef070adf06bcf Mon Sep 17 00:00:00 2001 From: dragonmux Date: Mon, 15 Apr 2024 17:07:46 +0100 Subject: [PATCH] stm32/h7: Enabled support for the CRS controller --- include/libopencm3/stm32/crs.h | 3 ++- include/libopencm3/stm32/h7/crs.h | 10 ++++++++++ lib/stm32/h7/Makefile | 1 + 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 include/libopencm3/stm32/h7/crs.h diff --git a/include/libopencm3/stm32/crs.h b/include/libopencm3/stm32/crs.h index 6a6cbd28..dbb9cbfe 100644 --- a/include/libopencm3/stm32/crs.h +++ b/include/libopencm3/stm32/crs.h @@ -28,7 +28,8 @@ # include #elif defined(STM32G4) # include +#elif defined(STM32H7) +# include #else # error "stm32 family not defined or not supported for this peripheral" #endif - diff --git a/include/libopencm3/stm32/h7/crs.h b/include/libopencm3/stm32/h7/crs.h new file mode 100644 index 00000000..4d582890 --- /dev/null +++ b/include/libopencm3/stm32/h7/crs.h @@ -0,0 +1,10 @@ +/** @defgroup crs_defines CRS Defines + * + * @brief Defined Constants and Types for the Clock Recovery System + * + * @ingroup STM32H7xx_defines + * + *LGPL License Terms @ref lgpl_license + */ + +#include diff --git a/lib/stm32/h7/Makefile b/lib/stm32/h7/Makefile index 2aaa790d..3b0fedf2 100644 --- a/lib/stm32/h7/Makefile +++ b/lib/stm32/h7/Makefile @@ -37,6 +37,7 @@ TGT_CFLAGS += $(STANDARD_FLAGS) ARFLAGS = rcs +OBJS += crs_common_all.o OBJS += dac_common_all.o dac_common_v2.o OBJS += exti_common_all.o OBJS += fdcan.o fdcan_common.o