Skip to content

Commit 224a4cb

Browse files
committed
system(h7rs): update STM32H7RSxx hal default config
Allow some redefinition. Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 59e5273 commit 224a4cb

1 file changed

Lines changed: 19 additions & 4 deletions

File tree

system/STM32H7RSxx/stm32h7rsxx_hal_conf_default.h

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,15 @@ extern "C" {
178178
/**
179179
* @brief This is the HAL system configuration section
180180
*/
181+
#if !defined (VDD_VALUE)
181182
#define VDD_VALUE 3300UL /*!< Value of VDD in mv */
183+
#endif /* VDD_VALUE */
184+
#if !defined (TICK_INT_PRIORITY)
182185
#define TICK_INT_PRIORITY ((1UL<<__NVIC_PRIO_BITS) - 1UL) /*!< tick interrupt priority (lowest by default) */
186+
#endif /* TICK_INT_PRIORITY */
187+
#if !defined (USE_RTOS)
183188
#define USE_RTOS 0U
189+
#endif /* USE_RTOS */
184190

185191
/* ########################## Assert Selection ############################## */
186192
/**
@@ -242,8 +248,9 @@ extern "C" {
242248
* Activated: CRC code is present inside driver
243249
* Deactivated: CRC code cleaned from driver
244250
*/
245-
251+
#if !defined(USE_SPI_CRC)
246252
#define USE_SPI_CRC 1U
253+
#endif /* USE_SPI_CRC */
247254

248255
/* ################## CRYP peripheral configuration ########################## */
249256

@@ -255,20 +262,28 @@ extern "C" {
255262

256263
/* #define USE_HAL_CRYP_ONLY 1U */
257264
/* #define USE_HAL_SAES_ONLY 0U */
258-
265+
#if !defined (USE_HAL_CRYP_SUSPEND_RESUME)
259266
#define USE_HAL_CRYP_SUSPEND_RESUME 0U
267+
#endif /* USE_HAL_CRYP_SUSPEND_RESUME */
260268

261269
/* ################## HASH peripheral configuration ########################## */
262-
270+
#if !defined (USE_HAL_HASH_SUSPEND_RESUME)
263271
#define USE_HAL_HASH_SUSPEND_RESUME 0U
272+
#endif /* USE_HAL_HASH_SUSPEND_RESUME */
264273

265274
/* ################## SDMMC peripheral configuration ######################### */
266-
275+
#if !defined (USE_SD_TRANSCEIVER)
267276
#define USE_SD_TRANSCEIVER 0U
277+
#endif /* USE_SD_TRANSCEIVER */
268278

269279
/* ################## SDIO peripheral configuration ########################## */
280+
#if !defined (USE_SDIO_TRANSCEIVER)
270281
#define USE_SDIO_TRANSCEIVER 0U
282+
#endif /* USE_SDIO_TRANSCEIVER */
283+
#if !defined (SDIO_MAX_IO_NUMBER)
271284
#define SDIO_MAX_IO_NUMBER 7U
285+
#endif /* SDIO_MAX_IO_NUMBER */
286+
272287
/* Includes ------------------------------------------------------------------*/
273288
/**
274289
* @brief Include module's header file

0 commit comments

Comments
 (0)