Skip to content

Commit

Permalink
Merge pull request ARMmbed#15420 from jeromecoutant/PR_U5_120
Browse files Browse the repository at this point in the history
STM32U5: STM32Cube_FW_U5_V1.2.0
  • Loading branch information
0xc0170 authored May 17, 2023
2 parents 8779918 + 9f0ede4 commit b5692fd
Show file tree
Hide file tree
Showing 248 changed files with 203,421 additions and 13,216 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
This software component is provided to you as part of a software package and
applicable license terms are in the Package_license file. If you received this
software component outside of a package or without applicable license terms,
the terms of the Apache-2.0 license shall apply.
You may obtain a copy of the Apache-2.0 at:
https://opensource.org/licenses/Apache-2.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
/**
******************************************************************************
* @file partition_stm32u5xx.h
* @author MCD Application Team
* @brief CMSIS STM32U5xx Device Header File for Initial Setup for
* Secure / Non-Secure Zones based on CMSIS CORE V5.4.0
*
* The file is included in system_stm32u5xx_s.c in secure application.
* It includes the configuration section that allows to select the
* STM32U5xx device partitioning file for system core secure attributes
* and interrupt secure and non-secure assignment.
*
******************************************************************************
* @attention
*
* Copyright (c) 2021 STMicroelectronics.
* All rights reserved.
*
* This software is licensed under terms that can be found in the LICENSE file
* in the root directory of this software component.
* If no LICENSE file comes with this software, it is provided AS-IS.
*
******************************************************************************
*/

/** @addtogroup CMSIS
* @{
*/

/** @addtogroup stm32u5xx
* @{
*/

#ifndef PARTITION_STM32U5XX_H
#define PARTITION_STM32U5XX_H

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

/** @addtogroup Secure_configuration_section
* @{
*/

#if defined(STM32U575xx)
#include "partition_stm32u575xx.h"
#elif defined(STM32U585xx)
#include "partition_stm32u585xx.h"
#elif defined(STM32U595xx)
#include "partition_stm32u595xx.h"
#elif defined(STM32U5A5xx)
#include "partition_stm32u5a5xx.h"
#elif defined(STM32U599xx)
#include "partition_stm32u599xx.h"
#elif defined(STM32U5A9xx)
#include "partition_stm32u5a9xx.h"
#elif defined(STM32U535xx)
#include "partition_stm32u535xx.h"
#elif defined(STM32U545xx)
#include "partition_stm32u545xx.h"
#else
#error "Please select first the target STM32U5xx device used in your application (in stm32u5xx.h file)"
#endif

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* PARTITION_STM32U5XX_H */
/**
* @}
*/

/**
* @}
*/




21,195 changes: 21,195 additions & 0 deletions targets/TARGET_STM/TARGET_STM32U5/STM32Cube_FW/CMSIS/stm32u535xx.h

Large diffs are not rendered by default.

22,026 changes: 22,026 additions & 0 deletions targets/TARGET_STM/TARGET_STM32U5/STM32Cube_FW/CMSIS/stm32u545xx.h

Large diffs are not rendered by default.

2,841 changes: 1,644 additions & 1,197 deletions targets/TARGET_STM/TARGET_STM32U5/STM32Cube_FW/CMSIS/stm32u575xx.h

Large diffs are not rendered by default.

2,852 changes: 1,654 additions & 1,198 deletions targets/TARGET_STM/TARGET_STM32U5/STM32Cube_FW/CMSIS/stm32u585xx.h

Large diffs are not rendered by default.

25,581 changes: 25,581 additions & 0 deletions targets/TARGET_STM/TARGET_STM32U5/STM32Cube_FW/CMSIS/stm32u595xx.h

Large diffs are not rendered by default.

29,428 changes: 29,428 additions & 0 deletions targets/TARGET_STM/TARGET_STM32U5/STM32Cube_FW/CMSIS/stm32u599xx.h

Large diffs are not rendered by default.

26,462 changes: 26,462 additions & 0 deletions targets/TARGET_STM/TARGET_STM32U5/STM32Cube_FW/CMSIS/stm32u5a5xx.h

Large diffs are not rendered by default.

30,309 changes: 30,309 additions & 0 deletions targets/TARGET_STM/TARGET_STM32U5/STM32Cube_FW/CMSIS/stm32u5a9xx.h

Large diffs are not rendered by default.

37 changes: 29 additions & 8 deletions targets/TARGET_STM/TARGET_STM32U5/STM32Cube_FW/CMSIS/stm32u5xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,18 @@
application
*/

#if !defined (STM32U575xx) && !defined (STM32U585xx)
/* #define STM32U575xx */ /*!< STM32U575CIU6 STM32U575CIT6 STM32U575RIT6 STM32U575VIT6 STM32U575ZIT6 STM32U575QII6 STM32U575AII6 STM32U575CIU6Q STM32U575CIT6Q STM32U575OIY6Q STM32U575VIT6Q STM32U575QII6Q STM32U575ZIT6Q STM32U575RIT6Q STM32U575CGU6 STM32U575CGT6 STM32U575RGT6 STM32U575VGT6 STM32U575ZGT6 STM32U575QGI6 STM32U575AGI6 STM32U575CGU6Q STM32U575CGT6Q STM32U575OGY6Q STM32U575VGT6Q STM32U575QGI6Q STM32U575ZGT6Q STM32U575RGT6Q STM32U575AGI6Q Devices */
/* #define STM32U585xx */ /*!< STM32U585CIU6 STM32U585CIT6 STM32U585RIT6 STM32U585VIT6 STM32U585AII6 STM32U585QII6 STM32U585ZIT6 STM32U585OIY6Q STM32U585VIT6Q STM32U585QEI6Q STM32U585RIT6Q STM32U585AII6Q STM32U585CIU6Q STM32U585CIT6Q STM32U585ZET6Q Devices */
#if !defined (STM32U575xx) && !defined (STM32U585xx) \
&& !defined (STM32U595xx) && !defined (STM32U599xx) \
&& !defined (STM32U5A5xx) && !defined (STM32U5A9xx) \
&& !defined (STM32U535xx) && !defined (STM32U545xx) \
/* #define STM32U575xx */ /*!< STM32U575CIU6 STM32U575CIT6 STM32U575RIT6 STM32U575VIT6 STM32U575ZIT6 STM32U575QII6 STM32U575AII6 STM32U575CIU6Q STM32U575CIT6Q STM32U575OIY6Q STM32U575VIT6Q STM32U575QII6Q STM32U575ZIT6Q STM32U575RIT6Q STM32U575CGU6 STM32U575CGT6 STM32U575RGT6 STM32U575VGT6 STM32U575ZGT6 STM32U575QGI6 STM32U575AGI6 STM32U575CGU6Q STM32U575CGT6Q STM32U575OGY6Q STM32U575VGT6Q STM32U575QGI6Q STM32U575ZGT6Q STM32U575RGT6Q STM32U575AGI6Q Devices */
/* #define STM32U585xx */ /*!< STM32U585CIU6 STM32U585CIT6 STM32U585RIT6 STM32U585VIT6 STM32U585AII6 STM32U585QII6 STM32U585ZIT6 STM32U585OIY6Q STM32U585VIT6Q STM32U585QEI6Q STM32U585RIT6Q STM32U585AII6Q STM32U585CIU6Q STM32U585CIT6Q STM32U585ZET6Q Devices */
/* #define STM32U595xx */ /*!< STM32U595ZJT6Q Device */
/* #define STM32U599xx */ /*!< STM32U599NJH6Q STM32U599BJY6Q STM32U599NIH6Q Devices */
/* #define STM32U5A5xx */ /*!< STM32U5A5ZJT6Q Device */
/* #define STM32U5A9xx */ /*!< STM32U5A9NJH6Q STM32U5A9BJY6Q Devices */
/* #define STM32U535xx */ /*!< STM32U535CET6 STM32U535CEU6 STM32U535RET6 STM32U535REI6 STM32U535VET6 STM32U535VEI6 STM32U535CET6Q STM32U535CEU6Q STM32U535RET6Q STM32U535REI6Q STM32U535VET6Q STM32U535VEI6Q STM32U535NEY6Q STM32U535JEY6Q Device */
/* #define STM32U545xx */ /*!< STM32U545CET6 STM32U545CEU6 STM32U545RET6 STM32U545REI6 STM32U545VET6 STM32U545VEI6 STM32U545CET6Q STM32U545CEU6Q STM32U545RET6Q STM32U545REI6Q STM32U545VET6Q STM32U545VEI6Q STM32U545NEY6Q STM32U545JEY6Q Device */
#endif

/* Tip: To avoid modifying this file each time you need to switch between these
Expand All @@ -74,12 +83,12 @@
#endif /* USE_HAL_DRIVER */

/**
* @brief CMSIS Device version number 1.0.0
* @brief CMSIS Device version number 1.2.0
*/
#define __STM32U5_CMSIS_VERSION_MAIN (0x01) /*!< [31:24] main version */
#define __STM32U5_CMSIS_VERSION_SUB1 (0x00) /*!< [23:16] sub1 version */
#define __STM32U5_CMSIS_VERSION_SUB2 (0x00) /*!< [15:8] sub2 version */
#define __STM32U5_CMSIS_VERSION_RC (0x00) /*!< [7:0] release candidate */
#define __STM32U5_CMSIS_VERSION_MAIN (0x01U) /*!< [31:24] main version */
#define __STM32U5_CMSIS_VERSION_SUB1 (0x02U) /*!< [23:16] sub1 version */
#define __STM32U5_CMSIS_VERSION_SUB2 (0x00U) /*!< [15:8] sub2 version */
#define __STM32U5_CMSIS_VERSION_RC (0x00U) /*!< [7:0] release candidate */
#define __STM32U5_CMSIS_VERSION ((__STM32U5_CMSIS_VERSION_MAIN << 24U)\
|(__STM32U5_CMSIS_VERSION_SUB1 << 16U)\
|(__STM32U5_CMSIS_VERSION_SUB2 << 8U )\
Expand All @@ -97,6 +106,18 @@
#include "stm32u575xx.h"
#elif defined(STM32U585xx)
#include "stm32u585xx.h"
#elif defined(STM32U595xx)
#include "stm32u595xx.h"
#elif defined(STM32U599xx)
#include "stm32u599xx.h"
#elif defined(STM32U5A5xx)
#include "stm32u5a5xx.h"
#elif defined(STM32U5A9xx)
#include "stm32u5a9xx.h"
#elif defined(STM32U535xx)
#include "stm32u535xx.h"
#elif defined(STM32U545xx)
#include "stm32u545xx.h"
#else
#error "Please select first the target STM32U5xx device used in your application (in stm32u5xx.h file)"
#endif
Expand Down
6 changes: 6 additions & 0 deletions targets/TARGET_STM/TARGET_STM32U5/STM32Cube_FW/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,15 @@ target_sources(mbed-stm32u5cube-fw
STM32U5xx_HAL_Driver/stm32u5xx_hal_dma.c
STM32U5xx_HAL_Driver/stm32u5xx_hal_dma2d.c
STM32U5xx_HAL_Driver/stm32u5xx_hal_dma_ex.c
STM32U5xx_HAL_Driver/stm32u5xx_hal_dsi.c
STM32U5xx_HAL_Driver/stm32u5xx_hal_exti.c
STM32U5xx_HAL_Driver/stm32u5xx_hal_fdcan.c
STM32U5xx_HAL_Driver/stm32u5xx_hal_flash.c
STM32U5xx_HAL_Driver/stm32u5xx_hal_flash_ex.c
STM32U5xx_HAL_Driver/stm32u5xx_hal_fmac.c
STM32U5xx_HAL_Driver/stm32u5xx_hal_gfxmmu.c
STM32U5xx_HAL_Driver/stm32u5xx_hal_gpio.c
STM32U5xx_HAL_Driver/stm32u5xx_hal_gpu2d.c
STM32U5xx_HAL_Driver/stm32u5xx_hal_gtzc.c
STM32U5xx_HAL_Driver/stm32u5xx_hal_hash.c
STM32U5xx_HAL_Driver/stm32u5xx_hal_hash_ex.c
Expand All @@ -38,6 +41,8 @@ target_sources(mbed-stm32u5cube-fw
STM32U5xx_HAL_Driver/stm32u5xx_hal_irda.c
STM32U5xx_HAL_Driver/stm32u5xx_hal_iwdg.c
STM32U5xx_HAL_Driver/stm32u5xx_hal_lptim.c
STM32U5xx_HAL_Driver/stm32u5xx_hal_ltdc.c
STM32U5xx_HAL_Driver/stm32u5xx_hal_ltdc_ex.c
STM32U5xx_HAL_Driver/stm32u5xx_hal_mdf.c
STM32U5xx_HAL_Driver/stm32u5xx_hal_mmc.c
STM32U5xx_HAL_Driver/stm32u5xx_hal_mmc_ex.c
Expand Down Expand Up @@ -79,6 +84,7 @@ target_sources(mbed-stm32u5cube-fw
STM32U5xx_HAL_Driver/stm32u5xx_hal_usart.c
STM32U5xx_HAL_Driver/stm32u5xx_hal_usart_ex.c
STM32U5xx_HAL_Driver/stm32u5xx_hal_wwdg.c
STM32U5xx_HAL_Driver/stm32u5xx_hal_xspi.c
STM32U5xx_HAL_Driver/stm32u5xx_ll_adc.c
STM32U5xx_HAL_Driver/stm32u5xx_ll_comp.c
STM32U5xx_HAL_Driver/stm32u5xx_ll_cordic.c
Expand Down
Loading

0 comments on commit b5692fd

Please sign in to comment.