Skip to content

Commit 14b3123

Browse files
committed
Add CMSIS Device ST from STM32Cube_FW_L4_V1.7.0
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
1 parent 6c9f8e1 commit 14b3123

File tree

94 files changed

+281105
-0
lines changed

Some content is hidden

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

94 files changed

+281105
-0
lines changed

system/Drivers/CMSIS/Device/ST/STM32L4xx/Include/stm32l431xx.h

Lines changed: 15097 additions & 0 deletions
Large diffs are not rendered by default.

system/Drivers/CMSIS/Device/ST/STM32L4xx/Include/stm32l432xx.h

Lines changed: 14870 additions & 0 deletions
Large diffs are not rendered by default.

system/Drivers/CMSIS/Device/ST/STM32L4xx/Include/stm32l433xx.h

Lines changed: 15971 additions & 0 deletions
Large diffs are not rendered by default.

system/Drivers/CMSIS/Device/ST/STM32L4xx/Include/stm32l442xx.h

Lines changed: 15098 additions & 0 deletions
Large diffs are not rendered by default.

system/Drivers/CMSIS/Device/ST/STM32L4xx/Include/stm32l443xx.h

Lines changed: 16199 additions & 0 deletions
Large diffs are not rendered by default.

system/Drivers/CMSIS/Device/ST/STM32L4xx/Include/stm32l451xx.h

Lines changed: 15364 additions & 0 deletions
Large diffs are not rendered by default.

system/Drivers/CMSIS/Device/ST/STM32L4xx/Include/stm32l452xx.h

Lines changed: 16090 additions & 0 deletions
Large diffs are not rendered by default.

system/Drivers/CMSIS/Device/ST/STM32L4xx/Include/stm32l462xx.h

Lines changed: 16318 additions & 0 deletions
Large diffs are not rendered by default.

system/Drivers/CMSIS/Device/ST/STM32L4xx/Include/stm32l471xx.h

Lines changed: 16860 additions & 0 deletions
Large diffs are not rendered by default.

system/Drivers/CMSIS/Device/ST/STM32L4xx/Include/stm32l475xx.h

Lines changed: 18379 additions & 0 deletions
Large diffs are not rendered by default.

system/Drivers/CMSIS/Device/ST/STM32L4xx/Include/stm32l476xx.h

Lines changed: 18527 additions & 0 deletions
Large diffs are not rendered by default.

system/Drivers/CMSIS/Device/ST/STM32L4xx/Include/stm32l485xx.h

Lines changed: 18607 additions & 0 deletions
Large diffs are not rendered by default.

system/Drivers/CMSIS/Device/ST/STM32L4xx/Include/stm32l486xx.h

Lines changed: 18755 additions & 0 deletions
Large diffs are not rendered by default.

system/Drivers/CMSIS/Device/ST/STM32L4xx/Include/stm32l496xx.h

Lines changed: 19772 additions & 0 deletions
Large diffs are not rendered by default.

system/Drivers/CMSIS/Device/ST/STM32L4xx/Include/stm32l4a6xx.h

Lines changed: 20115 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 240 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,240 @@
1+
/**
2+
******************************************************************************
3+
* @file stm32l4xx.h
4+
* @author MCD Application Team
5+
* @version V1.3.0
6+
* @date 17-February-2017
7+
* @brief CMSIS STM32L4xx Device Peripheral Access Layer Header File.
8+
*
9+
* The file is the unique include file that the application programmer
10+
* is using in the C source code, usually in main.c. This file contains:
11+
* - Configuration section that allows to select:
12+
* - The STM32L4xx device used in the target application
13+
* - To use or not the peripheral’s drivers in application code(i.e.
14+
* code will be based on direct access to peripheral’s registers
15+
* rather than drivers API), this option is controlled by
16+
* "#define USE_HAL_DRIVER"
17+
*
18+
******************************************************************************
19+
* @attention
20+
*
21+
* <h2><center>&copy; COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
22+
*
23+
* Redistribution and use in source and binary forms, with or without modification,
24+
* are permitted provided that the following conditions are met:
25+
* 1. Redistributions of source code must retain the above copyright notice,
26+
* this list of conditions and the following disclaimer.
27+
* 2. Redistributions in binary form must reproduce the above copyright notice,
28+
* this list of conditions and the following disclaimer in the documentation
29+
* and/or other materials provided with the distribution.
30+
* 3. Neither the name of STMicroelectronics nor the names of its contributors
31+
* may be used to endorse or promote products derived from this software
32+
* without specific prior written permission.
33+
*
34+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
35+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
36+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
37+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
38+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
39+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
40+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
41+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
42+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
43+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
44+
*
45+
******************************************************************************
46+
*/
47+
48+
/** @addtogroup CMSIS
49+
* @{
50+
*/
51+
52+
/** @addtogroup stm32l4xx
53+
* @{
54+
*/
55+
56+
#ifndef __STM32L4xx_H
57+
#define __STM32L4xx_H
58+
59+
#ifdef __cplusplus
60+
extern "C" {
61+
#endif /* __cplusplus */
62+
63+
/** @addtogroup Library_configuration_section
64+
* @{
65+
*/
66+
67+
/**
68+
* @brief STM32 Family
69+
*/
70+
#if !defined (STM32L4)
71+
#define STM32L4
72+
#endif /* STM32L4 */
73+
74+
/* Uncomment the line below according to the target STM32L4 device used in your
75+
application
76+
*/
77+
78+
#if !defined (STM32L431xx) && !defined (STM32L432xx) && !defined (STM32L433xx) && !defined (STM32L442xx) && !defined (STM32L443xx) && \
79+
!defined (STM32L451xx) && !defined (STM32L452xx) && !defined (STM32L462xx) && \
80+
!defined (STM32L471xx) && !defined (STM32L475xx) && !defined (STM32L476xx) && !defined (STM32L485xx) && !defined (STM32L486xx) && \
81+
!defined (STM32L496xx) && !defined (STM32L4A6xx)
82+
/* #define STM32L431xx */ /*!< STM32L431xx Devices */
83+
/* #define STM32L432xx */ /*!< STM32L432xx Devices */
84+
/* #define STM32L433xx */ /*!< STM32L433xx Devices */
85+
/* #define STM32L442xx */ /*!< STM32L442xx Devices */
86+
/* #define STM32L443xx */ /*!< STM32L443xx Devices */
87+
/* #define STM32L451xx */ /*!< STM32L451xx Devices */
88+
/* #define STM32L452xx */ /*!< STM32L452xx Devices */
89+
/* #define STM32L462xx */ /*!< STM32L462xx Devices */
90+
/* #define STM32L471xx */ /*!< STM32L471xx Devices */
91+
/* #define STM32L475xx */ /*!< STM32L475xx Devices */
92+
/* #define STM32L476xx */ /*!< STM32L476xx Devices */
93+
/* #define STM32L485xx */ /*!< STM32L485xx Devices */
94+
/* #define STM32L486xx */ /*!< STM32L486xx Devices */
95+
/* #define STM32L496xx */ /*!< STM32L496xx Devices */
96+
/* #define STM32L4A6xx */ /*!< STM32L4A6xx Devices */
97+
#endif
98+
99+
/* Tip: To avoid modifying this file each time you need to switch between these
100+
devices, you can define the device in your toolchain compiler preprocessor.
101+
*/
102+
#if !defined (USE_HAL_DRIVER)
103+
/**
104+
* @brief Comment the line below if you will not use the peripherals drivers.
105+
In this case, these drivers will not be included and the application code will
106+
be based on direct access to peripherals registers
107+
*/
108+
/*#define USE_HAL_DRIVER */
109+
#endif /* USE_HAL_DRIVER */
110+
111+
/**
112+
* @brief CMSIS Device version number V1.3.0
113+
*/
114+
#define __STM32L4_CMSIS_VERSION_MAIN (0x01) /*!< [31:24] main version */
115+
#define __STM32L4_CMSIS_VERSION_SUB1 (0x03) /*!< [23:16] sub1 version */
116+
#define __STM32L4_CMSIS_VERSION_SUB2 (0x00) /*!< [15:8] sub2 version */
117+
#define __STM32L4_CMSIS_VERSION_RC (0x00) /*!< [7:0] release candidate */
118+
#define __STM32L4_CMSIS_VERSION ((__STM32L4_CMSIS_VERSION_MAIN << 24)\
119+
|(__STM32L4_CMSIS_VERSION_SUB1 << 16)\
120+
|(__STM32L4_CMSIS_VERSION_SUB2 << 8 )\
121+
|(__STM32L4_CMSIS_VERSION_RC))
122+
123+
/**
124+
* @}
125+
*/
126+
127+
/** @addtogroup Device_Included
128+
* @{
129+
*/
130+
131+
#if defined(STM32L431xx)
132+
#include "stm32l431xx.h"
133+
#elif defined(STM32L432xx)
134+
#include "stm32l432xx.h"
135+
#elif defined(STM32L433xx)
136+
#include "stm32l433xx.h"
137+
#elif defined(STM32L442xx)
138+
#include "stm32l442xx.h"
139+
#elif defined(STM32L443xx)
140+
#include "stm32l443xx.h"
141+
#elif defined(STM32L451xx)
142+
#include "stm32l451xx.h"
143+
#elif defined(STM32L452xx)
144+
#include "stm32l452xx.h"
145+
#elif defined(STM32L462xx)
146+
#include "stm32l462xx.h"
147+
#elif defined(STM32L471xx)
148+
#include "stm32l471xx.h"
149+
#elif defined(STM32L475xx)
150+
#include "stm32l475xx.h"
151+
#elif defined(STM32L476xx)
152+
#include "stm32l476xx.h"
153+
#elif defined(STM32L485xx)
154+
#include "stm32l485xx.h"
155+
#elif defined(STM32L486xx)
156+
#include "stm32l486xx.h"
157+
#elif defined(STM32L496xx)
158+
#include "stm32l496xx.h"
159+
#elif defined(STM32L4A6xx)
160+
#include "stm32l4a6xx.h"
161+
#else
162+
#error "Please select first the target STM32L4xx device used in your application (in stm32l4xx.h file)"
163+
#endif
164+
165+
/**
166+
* @}
167+
*/
168+
169+
/** @addtogroup Exported_types
170+
* @{
171+
*/
172+
typedef enum
173+
{
174+
RESET = 0,
175+
SET = !RESET
176+
} FlagStatus, ITStatus;
177+
178+
typedef enum
179+
{
180+
DISABLE = 0,
181+
ENABLE = !DISABLE
182+
} FunctionalState;
183+
#define IS_FUNCTIONAL_STATE(STATE) (((STATE) == DISABLE) || ((STATE) == ENABLE))
184+
185+
typedef enum
186+
{
187+
ERROR = 0,
188+
SUCCESS = !ERROR
189+
} ErrorStatus;
190+
191+
/**
192+
* @}
193+
*/
194+
195+
196+
/** @addtogroup Exported_macros
197+
* @{
198+
*/
199+
#define SET_BIT(REG, BIT) ((REG) |= (BIT))
200+
201+
#define CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT))
202+
203+
#define READ_BIT(REG, BIT) ((REG) & (BIT))
204+
205+
#define CLEAR_REG(REG) ((REG) = (0x0))
206+
207+
#define WRITE_REG(REG, VAL) ((REG) = (VAL))
208+
209+
#define READ_REG(REG) ((REG))
210+
211+
#define MODIFY_REG(REG, CLEARMASK, SETMASK) WRITE_REG((REG), (((READ_REG(REG)) & (~(CLEARMASK))) | (SETMASK)))
212+
213+
#define POSITION_VAL(VAL) (__CLZ(__RBIT(VAL)))
214+
215+
216+
/**
217+
* @}
218+
*/
219+
220+
#if defined (USE_HAL_DRIVER)
221+
#include "stm32l4xx_hal.h"
222+
#endif /* USE_HAL_DRIVER */
223+
224+
#ifdef __cplusplus
225+
}
226+
#endif /* __cplusplus */
227+
228+
#endif /* __STM32L4xx_H */
229+
/**
230+
* @}
231+
*/
232+
233+
/**
234+
* @}
235+
*/
236+
237+
238+
239+
240+
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
/**
2+
******************************************************************************
3+
* @file system_stm32l4xx.h
4+
* @author MCD Application Team
5+
* @version V1.3.0
6+
* @date 17-February-2017
7+
* @brief CMSIS Cortex-M4 Device System Source File for STM32L4xx devices.
8+
******************************************************************************
9+
* @attention
10+
*
11+
* <h2><center>&copy; COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
12+
*
13+
* Redistribution and use in source and binary forms, with or without modification,
14+
* are permitted provided that the following conditions are met:
15+
* 1. Redistributions of source code must retain the above copyright notice,
16+
* this list of conditions and the following disclaimer.
17+
* 2. Redistributions in binary form must reproduce the above copyright notice,
18+
* this list of conditions and the following disclaimer in the documentation
19+
* and/or other materials provided with the distribution.
20+
* 3. Neither the name of STMicroelectronics nor the names of its contributors
21+
* may be used to endorse or promote products derived from this software
22+
* without specific prior written permission.
23+
*
24+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
25+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
27+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
28+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
30+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
31+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
32+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
33+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34+
*
35+
******************************************************************************
36+
*/
37+
38+
/** @addtogroup CMSIS
39+
* @{
40+
*/
41+
42+
/** @addtogroup stm32l4xx_system
43+
* @{
44+
*/
45+
46+
/**
47+
* @brief Define to prevent recursive inclusion
48+
*/
49+
#ifndef __SYSTEM_STM32L4XX_H
50+
#define __SYSTEM_STM32L4XX_H
51+
52+
#ifdef __cplusplus
53+
extern "C" {
54+
#endif
55+
56+
/** @addtogroup STM32L4xx_System_Includes
57+
* @{
58+
*/
59+
60+
/**
61+
* @}
62+
*/
63+
64+
65+
/** @addtogroup STM32L4xx_System_Exported_Variables
66+
* @{
67+
*/
68+
/* The SystemCoreClock variable is updated in three ways:
69+
1) by calling CMSIS function SystemCoreClockUpdate()
70+
2) by calling HAL API function HAL_RCC_GetSysClockFreq()
71+
3) each time HAL_RCC_ClockConfig() is called to configure the system clock frequency
72+
Note: If you use this function to configure the system clock; then there
73+
is no need to call the 2 first functions listed above, since SystemCoreClock
74+
variable is updated automatically.
75+
*/
76+
extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */
77+
78+
extern const uint8_t AHBPrescTable[16]; /*!< AHB prescalers table values */
79+
extern const uint8_t APBPrescTable[8]; /*!< APB prescalers table values */
80+
extern const uint32_t MSIRangeTable[12]; /*!< MSI ranges table values */
81+
82+
/**
83+
* @}
84+
*/
85+
86+
/** @addtogroup STM32L4xx_System_Exported_Constants
87+
* @{
88+
*/
89+
90+
/**
91+
* @}
92+
*/
93+
94+
/** @addtogroup STM32L4xx_System_Exported_Macros
95+
* @{
96+
*/
97+
98+
/**
99+
* @}
100+
*/
101+
102+
/** @addtogroup STM32L4xx_System_Exported_Functions
103+
* @{
104+
*/
105+
106+
extern void SystemInit(void);
107+
extern void SystemCoreClockUpdate(void);
108+
/**
109+
* @}
110+
*/
111+
112+
#ifdef __cplusplus
113+
}
114+
#endif
115+
116+
#endif /*__SYSTEM_STM32L4XX_H */
117+
118+
/**
119+
* @}
120+
*/
121+
122+
/**
123+
* @}
124+
*/
125+
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

0 commit comments

Comments
 (0)