diff --git a/include/libopencm3/stm32/crs.h b/include/libopencm3/stm32/crs.h index 6a6cbd28a7..dbb9cbfe9e 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 0000000000..4d58289038 --- /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 2aaa790d4b..3b0fedf232 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 diff --git a/lib/stm32/h7/meson.build b/lib/stm32/h7/meson.build index 78ec6035ca..5f34b7cd92 100644 --- a/lib/stm32/h7/meson.build +++ b/lib/stm32/h7/meson.build @@ -56,6 +56,7 @@ libstm32h7 = static_library( 'opencm3_stm32h7', [ libstm32h7_sources, + libstm32_crs_sources, libstm32_dac_v2_sources, libstm32_exti_sources, libstm32_fdcan_sources,