Skip to content

Commit

Permalink
Merge pull request #2464 from fpistm/STM32CubeU5_update
Browse files Browse the repository at this point in the history
chore(u5): update to latest STM32CubeU5 v1.6.0
  • Loading branch information
fpistm authored Jul 24, 2024
2 parents 4f59a20 + 229a4b2 commit 5e4f220
Show file tree
Hide file tree
Showing 64 changed files with 4,106 additions and 199 deletions.
8 changes: 8 additions & 0 deletions libraries/SrcWrapper/src/HAL/stm32yyxx_hal_sdio.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* HAL raised several warnings, ignore them */
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"

#ifdef STM32U5xx
#include "stm32u5xx_hal_sdio.c"
#endif
#pragma GCC diagnostic pop
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ extern "C" {
#define HAL_RTC_MODULE_ENABLED
#define HAL_SAI_MODULE_ENABLED
#define HAL_SD_MODULE_ENABLED
#define HAL_SDIO_MODULE_ENABLED
#define HAL_SMARTCARD_MODULE_ENABLED
#define HAL_SMBUS_MODULE_ENABLED
#define HAL_SPI_MODULE_ENABLED
Expand Down Expand Up @@ -232,6 +233,7 @@ vary depending on the variations in voltage and temperature.*/
#define USE_HAL_RTC_REGISTER_CALLBACKS 0U /* RTC register callback disabled */
#define USE_HAL_SAI_REGISTER_CALLBACKS 0U /* SAI register callback disabled */
#define USE_HAL_SD_REGISTER_CALLBACKS 0U /* SD register callback disabled */
#define USE_HAL_SDIO_REGISTER_CALLBACKS 0U /* SDIO register callback disabled */
#define USE_HAL_SDRAM_REGISTER_CALLBACKS 0U /* SDRAM register callback disabled */
#define USE_HAL_SMARTCARD_REGISTER_CALLBACKS 0U /* SMARTCARD register callback disabled */
#define USE_HAL_SMBUS_REGISTER_CALLBACKS 0U /* SMBUS register callback disabled */
Expand All @@ -253,9 +255,11 @@ vary depending on the variations in voltage and temperature.*/
#define USE_SPI_CRC 1U

/* ################## SDMMC peripheral configuration ######################### */

#define USE_SD_TRANSCEIVER 0U

/* ################## SDIO peripheral configuration ########################## */
#define USE_SDIO_TRANSCEIVER 0U
#define SDIO_MAX_IO_NUMBER 7U /*!< SDIO device support maximum IO number */

/* Includes ------------------------------------------------------------------*/
/**
Expand Down Expand Up @@ -402,6 +406,10 @@ vary depending on the variations in voltage and temperature.*/
#include "stm32u5xx_hal_sd.h"
#endif /* HAL_SD_MODULE_ENABLED */

#ifdef HAL_SDIO_MODULE_ENABLED
#include "stm32u5xx_hal_sdio.h"
#endif /* HAL_SDIO_MODULE_ENABLED */

#ifdef HAL_SMBUS_MODULE_ENABLED
#include "stm32u5xx_hal_smbus.h"
#endif /* HAL_SMBUS_MODULE_ENABLED */
Expand Down
3 changes: 3 additions & 0 deletions system/Drivers/STM32U5xx_HAL_Driver/Inc/stm32u5xx_hal_pka.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ typedef struct
PKA_TypeDef *Instance; /*!< Register base address */
__IO HAL_PKA_StateTypeDef State; /*!< PKA state */
__IO uint32_t ErrorCode; /*!< PKA Error code */
__IO uint32_t primeordersize; /*!< Elliptic curve prime order length */
__IO uint32_t opsize; /*!< Modular exponentiation operand length */
__IO uint32_t modulussize; /*!< Elliptic curve modulus length */
#if (USE_HAL_PKA_REGISTER_CALLBACKS == 1)
void (* OperationCpltCallback)(struct __PKA_HandleTypeDef *hpka); /*!< PKA End of operation callback */
void (* ErrorCallback)(struct __PKA_HandleTypeDef *hpka); /*!< PKA Error callback */
Expand Down
Loading

0 comments on commit 5e4f220

Please sign in to comment.