From 9087802ce7ccae864d89b24e9af481809f68b28b Mon Sep 17 00:00:00 2001 From: dragonmux Date: Thu, 2 May 2024 23:31:12 +0100 Subject: [PATCH] stm32/h7: Enabled the CRC32 generator peripheral --- include/libopencm3/stm32/crc.h | 3 ++- include/libopencm3/stm32/h7/crc.h | 38 +++++++++++++++++++++++++++++++ lib/stm32/h7/Makefile | 1 + 3 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 include/libopencm3/stm32/h7/crc.h diff --git a/include/libopencm3/stm32/crc.h b/include/libopencm3/stm32/crc.h index 54157b18..51da3b6c 100644 --- a/include/libopencm3/stm32/crc.h +++ b/include/libopencm3/stm32/crc.h @@ -42,7 +42,8 @@ # include #elif defined(STM32G4) # include +#elif defined(STM32H7) +# include #else # error "stm32 family not defined." #endif - diff --git a/include/libopencm3/stm32/h7/crc.h b/include/libopencm3/stm32/h7/crc.h new file mode 100644 index 00000000..e5951dcb --- /dev/null +++ b/include/libopencm3/stm32/h7/crc.h @@ -0,0 +1,38 @@ +/** @defgroup crc_defines CRC Defines + +@brief libopencm3 Defined Constants and Types for the STM32H7xx CRC +Generator + +@ingroup STM32H7xx_defines + +@version 1.0.0 + +@date 18 August 2012 + +LGPL License Terms @ref lgpl_license + */ +/* + * This file is part of the libopencm3 project. + * + * Copyright (C) 2010 Thomas Otto + * + * This library is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this library. If not, see . + */ + +#ifndef LIBOPENCM3_CRC_H +#define LIBOPENCM3_CRC_H + +#include + +#endif diff --git a/lib/stm32/h7/Makefile b/lib/stm32/h7/Makefile index 3b0fedf2..08fe1175 100644 --- a/lib/stm32/h7/Makefile +++ b/lib/stm32/h7/Makefile @@ -37,6 +37,7 @@ TGT_CFLAGS += $(STANDARD_FLAGS) ARFLAGS = rcs +OBJS += crc_common_all.o crc_v2.o OBJS += crs_common_all.o OBJS += dac_common_all.o dac_common_v2.o OBJS += exti_common_all.o