Skip to content

Commit

Permalink
stm32/h7: Enabled support for the CRS controller
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonmux committed Aug 11, 2024
1 parent f9a9b6b commit 2e20508
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/libopencm3/stm32/crs.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
# include <libopencm3/stm32/l4/crs.h>
#elif defined(STM32G4)
# include <libopencm3/stm32/g4/crs.h>
#elif defined(STM32H7)
# include <libopencm3/stm32/h7/crs.h>
#else
# error "stm32 family not defined or not supported for this peripheral"
#endif

10 changes: 10 additions & 0 deletions include/libopencm3/stm32/h7/crs.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/** @defgroup crs_defines CRS Defines
*
* @brief <b>Defined Constants and Types for the Clock Recovery System</b>
*
* @ingroup STM32H7xx_defines
*
*LGPL License Terms @ref lgpl_license
*/

#include <libopencm3/stm32/common/crs_common_all.h>
1 change: 1 addition & 0 deletions lib/stm32/h7/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions lib/stm32/h7/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ libstm32h7 = static_library(
'opencm3_stm32h7',
[
libstm32h7_sources,
libstm32_crs_sources,
libstm32_dac_v2_sources,
libstm32_exti_sources,
libstm32_fdcan_sources,
Expand Down

0 comments on commit 2e20508

Please sign in to comment.