Skip to content

Commit

Permalink
stm32/h7: Enabled the CRC32 generator peripheral
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonmux committed Aug 11, 2024
1 parent 648008b commit a0a65e2
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/libopencm3/stm32/crc.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
# include <libopencm3/stm32/g0/crc.h>
#elif defined(STM32G4)
# include <libopencm3/stm32/g4/crc.h>
#elif defined(STM32H7)
# include <libopencm3/stm32/h7/crc.h>
#else
# error "stm32 family not defined."
#endif

38 changes: 38 additions & 0 deletions include/libopencm3/stm32/h7/crc.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/** @defgroup crc_defines CRC Defines
@brief <b>libopencm3 Defined Constants and Types for the STM32H7xx CRC
Generator </b>
@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 <[email protected]>
*
* 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 <http://www.gnu.org/licenses/>.
*/

#ifndef LIBOPENCM3_CRC_H
#define LIBOPENCM3_CRC_H

#include <libopencm3/stm32/common/crc_v2.h>

#endif
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 += 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
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_crc_v2_sources,
libstm32_crs_sources,
libstm32_dac_v2_sources,
libstm32_exti_sources,
Expand Down

0 comments on commit a0a65e2

Please sign in to comment.