@@ -178,9 +178,17 @@ 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+
185+ #if !defined(TICK_INT_PRIORITY )
182186#define TICK_INT_PRIORITY ((1UL<<__NVIC_PRIO_BITS) - 1UL) /*!< tick interrupt priority (lowest by default) */
187+ #endif /* TICK_INT_PRIORITY */
188+
189+ #if !defined(USE_RTOS )
183190#define USE_RTOS 0U
191+ #endif /* USE_RTOS */
184192
185193/* ########################## Assert Selection ############################## */
186194/**
@@ -242,9 +250,9 @@ extern "C" {
242250 * Activated: CRC code is present inside driver
243251 * Deactivated: CRC code cleaned from driver
244252 */
245-
253+ #if !defined( USE_SPI_CRC )
246254#define USE_SPI_CRC 1U
247-
255+ #endif /* USE_SPI_CRC */
248256/* ################## CRYP peripheral configuration ########################## */
249257
250258/**
@@ -255,20 +263,24 @@ extern "C" {
255263
256264/* #define USE_HAL_CRYP_ONLY 1U */
257265/* #define USE_HAL_SAES_ONLY 0U */
258-
266+ #if !defined( USE_HAL_CRYP_SUSPEND_RESUME )
259267#define USE_HAL_CRYP_SUSPEND_RESUME 0U
260-
268+ #endif /* USE_HAL_CRYP_SUSPEND_RESUME */
261269/* ################## HASH peripheral configuration ########################## */
262-
270+ #if !defined( USE_HAL_HASH_SUSPEND_RESUME )
263271#define USE_HAL_HASH_SUSPEND_RESUME 0U
264-
272+ #endif /* USE_HAL_HASH_SUSPEND_RESUME */
265273/* ################## SDMMC peripheral configuration ######################### */
266-
274+ #if !defined( USE_SD_TRANSCEIVER )
267275#define USE_SD_TRANSCEIVER 0U
268-
276+ #endif /* USE_SD_TRANSCEIVER */
269277/* ################## SDIO peripheral configuration ########################## */
278+ #if !defined(USE_SDIO_TRANSCEIVER )
270279#define USE_SDIO_TRANSCEIVER 0U
280+ #endif /* USE_SDIO_TRANSCEIVER */
281+ #if !defined(SDIO_MAX_IO_NUMBER )
271282#define SDIO_MAX_IO_NUMBER 7U
283+ #endif /* SDIO_MAX_IO_NUMBER */
272284/* Includes ------------------------------------------------------------------*/
273285/**
274286 * @brief Include module's header file
0 commit comments