Skip to content

Commit 5e4f220

Browse files
authored
Merge pull request stm32duino#2464 from fpistm/STM32CubeU5_update
chore(u5): update to latest STM32CubeU5 v1.6.0
2 parents 4f59a20 + 229a4b2 commit 5e4f220

File tree

64 files changed

+4106
-199
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+4106
-199
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/* HAL raised several warnings, ignore them */
2+
#pragma GCC diagnostic push
3+
#pragma GCC diagnostic ignored "-Wunused-parameter"
4+
5+
#ifdef STM32U5xx
6+
#include "stm32u5xx_hal_sdio.c"
7+
#endif
8+
#pragma GCC diagnostic pop

system/Drivers/STM32U5xx_HAL_Driver/Inc/stm32u5xx_hal_conf_template.h

+9-1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ extern "C" {
8181
#define HAL_RTC_MODULE_ENABLED
8282
#define HAL_SAI_MODULE_ENABLED
8383
#define HAL_SD_MODULE_ENABLED
84+
#define HAL_SDIO_MODULE_ENABLED
8485
#define HAL_SMARTCARD_MODULE_ENABLED
8586
#define HAL_SMBUS_MODULE_ENABLED
8687
#define HAL_SPI_MODULE_ENABLED
@@ -232,6 +233,7 @@ vary depending on the variations in voltage and temperature.*/
232233
#define USE_HAL_RTC_REGISTER_CALLBACKS 0U /* RTC register callback disabled */
233234
#define USE_HAL_SAI_REGISTER_CALLBACKS 0U /* SAI register callback disabled */
234235
#define USE_HAL_SD_REGISTER_CALLBACKS 0U /* SD register callback disabled */
236+
#define USE_HAL_SDIO_REGISTER_CALLBACKS 0U /* SDIO register callback disabled */
235237
#define USE_HAL_SDRAM_REGISTER_CALLBACKS 0U /* SDRAM register callback disabled */
236238
#define USE_HAL_SMARTCARD_REGISTER_CALLBACKS 0U /* SMARTCARD register callback disabled */
237239
#define USE_HAL_SMBUS_REGISTER_CALLBACKS 0U /* SMBUS register callback disabled */
@@ -253,9 +255,11 @@ vary depending on the variations in voltage and temperature.*/
253255
#define USE_SPI_CRC 1U
254256

255257
/* ################## SDMMC peripheral configuration ######################### */
256-
257258
#define USE_SD_TRANSCEIVER 0U
258259

260+
/* ################## SDIO peripheral configuration ########################## */
261+
#define USE_SDIO_TRANSCEIVER 0U
262+
#define SDIO_MAX_IO_NUMBER 7U /*!< SDIO device support maximum IO number */
259263

260264
/* Includes ------------------------------------------------------------------*/
261265
/**
@@ -402,6 +406,10 @@ vary depending on the variations in voltage and temperature.*/
402406
#include "stm32u5xx_hal_sd.h"
403407
#endif /* HAL_SD_MODULE_ENABLED */
404408

409+
#ifdef HAL_SDIO_MODULE_ENABLED
410+
#include "stm32u5xx_hal_sdio.h"
411+
#endif /* HAL_SDIO_MODULE_ENABLED */
412+
405413
#ifdef HAL_SMBUS_MODULE_ENABLED
406414
#include "stm32u5xx_hal_smbus.h"
407415
#endif /* HAL_SMBUS_MODULE_ENABLED */

system/Drivers/STM32U5xx_HAL_Driver/Inc/stm32u5xx_hal_pka.h

+3
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ typedef struct
107107
PKA_TypeDef *Instance; /*!< Register base address */
108108
__IO HAL_PKA_StateTypeDef State; /*!< PKA state */
109109
__IO uint32_t ErrorCode; /*!< PKA Error code */
110+
__IO uint32_t primeordersize; /*!< Elliptic curve prime order length */
111+
__IO uint32_t opsize; /*!< Modular exponentiation operand length */
112+
__IO uint32_t modulussize; /*!< Elliptic curve modulus length */
110113
#if (USE_HAL_PKA_REGISTER_CALLBACKS == 1)
111114
void (* OperationCpltCallback)(struct __PKA_HandleTypeDef *hpka); /*!< PKA End of operation callback */
112115
void (* ErrorCallback)(struct __PKA_HandleTypeDef *hpka); /*!< PKA Error callback */

0 commit comments

Comments
 (0)