Skip to content

Commit c9012b9

Browse files
committed
Add CMSIS Device ST from STM32CubeF3 V1.8.0
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
1 parent 1d4e554 commit c9012b9

File tree

88 files changed

+199408
-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.

88 files changed

+199408
-0
lines changed

system/Drivers/CMSIS/Device/ST/STM32F3xx/Include/stm32f301x8.h

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

system/Drivers/CMSIS/Device/ST/STM32F3xx/Include/stm32f302x8.h

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

system/Drivers/CMSIS/Device/ST/STM32F3xx/Include/stm32f302xc.h

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

system/Drivers/CMSIS/Device/ST/STM32F3xx/Include/stm32f302xe.h

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

system/Drivers/CMSIS/Device/ST/STM32F3xx/Include/stm32f303x8.h

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

system/Drivers/CMSIS/Device/ST/STM32F3xx/Include/stm32f303xc.h

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

system/Drivers/CMSIS/Device/ST/STM32F3xx/Include/stm32f303xe.h

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

system/Drivers/CMSIS/Device/ST/STM32F3xx/Include/stm32f318xx.h

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

system/Drivers/CMSIS/Device/ST/STM32F3xx/Include/stm32f328xx.h

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

system/Drivers/CMSIS/Device/ST/STM32F3xx/Include/stm32f334x8.h

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

system/Drivers/CMSIS/Device/ST/STM32F3xx/Include/stm32f358xx.h

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

system/Drivers/CMSIS/Device/ST/STM32F3xx/Include/stm32f373xc.h

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

system/Drivers/CMSIS/Device/ST/STM32F3xx/Include/stm32f378xx.h

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

system/Drivers/CMSIS/Device/ST/STM32F3xx/Include/stm32f398xx.h

Lines changed: 15010 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 252 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,252 @@
1+
/**
2+
******************************************************************************
3+
* @file stm32f3xx.h
4+
* @author MCD Application Team
5+
* @version V2.3.1
6+
* @date 16-December-2016
7+
* @brief CMSIS STM32F3xx 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 STM32F3xx 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) 2016 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 stm32f3xx
53+
* @{
54+
*/
55+
56+
#ifndef __STM32F3xx_H
57+
#define __STM32F3xx_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 (STM32F3)
71+
#define STM32F3
72+
#endif /* STM32F3 */
73+
74+
/* Uncomment the line below according to the target STM32 device used in your
75+
application
76+
*/
77+
78+
#if !defined (STM32F301x8) && !defined (STM32F302x8) && !defined (STM32F318xx) && \
79+
!defined (STM32F302xC) && !defined (STM32F303xC) && !defined (STM32F358xx) && \
80+
!defined (STM32F303x8) && !defined (STM32F334x8) && !defined (STM32F328xx) && \
81+
!defined (STM32F302xE) && !defined (STM32F303xE) && !defined (STM32F398xx) && \
82+
!defined (STM32F373xC) && !defined (STM32F378xx)
83+
84+
/* #define STM32F301x8 */ /*!< STM32F301K6, STM32F301K8, STM32F301C6, STM32F301C8,
85+
STM32F301R6 and STM32F301R8 Devices */
86+
/* #define STM32F302x8 */ /*!< STM32F302K6, STM32F302K8, STM32F302C6, STM32F302C8,
87+
STM32F302R6 and STM32F302R8 Devices */
88+
/* #define STM32F302xC */ /*!< STM32F302CB, STM32F302CC, STM32F302RB, STM32F302RC,
89+
STM32F302VB and STM32F302VC Devices */
90+
/* #define STM32F302xE */ /*!< STM32F302RE, STM32F302VE, STM32F302ZE, STM32F302RD,
91+
STM32F302VD and STM32F302ZD Devices */
92+
/* #define STM32F303x8 */ /*!< STM32F303K6, STM32F303K8, STM32F303C6, STM32F303C8,
93+
STM32F303R6 and STM32F303R8 Devices */
94+
/* #define STM32F303xC */ /*!< STM32F303CB, STM32F303CC, STM32F303RB, STM32F303RC,
95+
STM32F303VB and STM32F303VC Devices */
96+
/* #define STM32F303xE */ /*!< STM32F303RE, STM32F303VE, STM32F303ZE, STM32F303RD,
97+
STM32F303VD and STM32F303ZD Devices */
98+
/* #define STM32F373xC */ /*!< STM32F373C8, STM32F373CB, STM32F373CC,
99+
STM32F373R8, STM32F373RB, STM32F373RC,
100+
STM32F373V8, STM32F373VB and STM32F373VC Devices */
101+
/* #define STM32F334x8 */ /*!< STM32F334K4, STM32F334K6, STM32F334K8,
102+
STM32F334C4, STM32F334C6, STM32F334C8,
103+
STM32F334R4, STM32F334R6 and STM32F334R8 Devices */
104+
/* #define STM32F318xx */ /*!< STM32F318K8, STM32F318C8: STM32F301x8 with regulator off: STM32F318xx Devices */
105+
/* #define STM32F328xx */ /*!< STM32F328C8, STM32F328R8: STM32F334x8 with regulator off: STM32F328xx Devices */
106+
/* #define STM32F358xx */ /*!< STM32F358CC, STM32F358RC, STM32F358VC: STM32F303xC with regulator off: STM32F358xx Devices */
107+
/* #define STM32F378xx */ /*!< STM32F378CC, STM32F378RC, STM32F378VC: STM32F373xC with regulator off: STM32F378xx Devices */
108+
/* #define STM32F398xx */ /*!< STM32F398VE: STM32F303xE with regulator off: STM32F398xx Devices */
109+
#endif
110+
111+
/* Tip: To avoid modifying this file each time you need to switch between these
112+
devices, you can define the device in your toolchain compiler preprocessor.
113+
*/
114+
#if !defined (USE_HAL_DRIVER)
115+
/**
116+
* @brief Comment the line below if you will not use the peripherals drivers.
117+
In this case, these drivers will not be included and the application code will
118+
be based on direct access to peripherals registers
119+
*/
120+
/*#define USE_HAL_DRIVER */
121+
#endif /* USE_HAL_DRIVER */
122+
123+
/**
124+
* @brief CMSIS Device version number V2.3.1
125+
*/
126+
#define __STM32F3_CMSIS_VERSION_MAIN (0x02) /*!< [31:24] main version */
127+
#define __STM32F3_CMSIS_VERSION_SUB1 (0x03) /*!< [23:16] sub1 version */
128+
#define __STM32F3_CMSIS_VERSION_SUB2 (0x01) /*!< [15:8] sub2 version */
129+
#define __STM32F3_CMSIS_VERSION_RC (0x00) /*!< [7:0] release candidate */
130+
#define __STM32F3_CMSIS_VERSION ((__STM32F3_CMSIS_VERSION_MAIN << 24)\
131+
|(__STM32F3_CMSIS_VERSION_SUB1 << 16)\
132+
|(__STM32F3_CMSIS_VERSION_SUB2 << 8 )\
133+
|(__STM32F3_CMSIS_VERSION_RC))
134+
135+
/**
136+
* @}
137+
*/
138+
139+
/** @addtogroup Device_Included
140+
* @{
141+
*/
142+
143+
#if defined(STM32F301x8)
144+
#include "stm32f301x8.h"
145+
#elif defined(STM32F302x8)
146+
#include "stm32f302x8.h"
147+
#elif defined(STM32F302xC)
148+
#include "stm32f302xc.h"
149+
#elif defined(STM32F302xE)
150+
#include "stm32f302xe.h"
151+
#elif defined(STM32F303x8)
152+
#include "stm32f303x8.h"
153+
#elif defined(STM32F303xC)
154+
#include "stm32f303xc.h"
155+
#elif defined(STM32F303xE)
156+
#include "stm32f303xe.h"
157+
#elif defined(STM32F373xC)
158+
#include "stm32f373xc.h"
159+
#elif defined(STM32F334x8)
160+
#include "stm32f334x8.h"
161+
#elif defined(STM32F318xx)
162+
#include "stm32f318xx.h"
163+
#elif defined(STM32F328xx)
164+
#include "stm32f328xx.h"
165+
#elif defined(STM32F358xx)
166+
#include "stm32f358xx.h"
167+
#elif defined(STM32F378xx)
168+
#include "stm32f378xx.h"
169+
#elif defined(STM32F398xx)
170+
#include "stm32f398xx.h"
171+
#else
172+
#error "Please select first the target STM32F3xx device used in your application (in stm32f3xx.h file)"
173+
#endif
174+
175+
/**
176+
* @}
177+
*/
178+
179+
/** @addtogroup Exported_types
180+
* @{
181+
*/
182+
typedef enum
183+
{
184+
RESET = 0,
185+
SET = !RESET
186+
} FlagStatus, ITStatus;
187+
188+
typedef enum
189+
{
190+
DISABLE = 0,
191+
ENABLE = !DISABLE
192+
} FunctionalState;
193+
#define IS_FUNCTIONAL_STATE(STATE) (((STATE) == DISABLE) || ((STATE) == ENABLE))
194+
195+
typedef enum
196+
{
197+
ERROR = 0,
198+
SUCCESS = !ERROR
199+
} ErrorStatus;
200+
201+
/**
202+
* @}
203+
*/
204+
205+
206+
/** @addtogroup Exported_macros
207+
* @{
208+
*/
209+
#define SET_BIT(REG, BIT) ((REG) |= (BIT))
210+
211+
#define CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT))
212+
213+
#define READ_BIT(REG, BIT) ((REG) & (BIT))
214+
215+
#define CLEAR_REG(REG) ((REG) = (0x0))
216+
217+
#define WRITE_REG(REG, VAL) ((REG) = (VAL))
218+
219+
#define READ_REG(REG) ((REG))
220+
221+
#define MODIFY_REG(REG, CLEARMASK, SETMASK) WRITE_REG((REG), (((READ_REG(REG)) & (~(CLEARMASK))) | (SETMASK)))
222+
223+
#define POSITION_VAL(VAL) (__CLZ(__RBIT(VAL)))
224+
225+
226+
#if defined (USE_HAL_DRIVER)
227+
#include "stm32f3xx_hal.h"
228+
#endif /* USE_HAL_DRIVER */
229+
230+
231+
/**
232+
* @}
233+
*/
234+
235+
236+
#ifdef __cplusplus
237+
}
238+
#endif /* __cplusplus */
239+
240+
#endif /* __STM32F3xx_H */
241+
/**
242+
* @}
243+
*/
244+
245+
/**
246+
* @}
247+
*/
248+
249+
250+
251+
252+
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
/**
2+
******************************************************************************
3+
* @file system_stm32f3xx.h
4+
* @author MCD Application Team
5+
* @version V2.3.1
6+
* @date 16-December-2016
7+
* @brief CMSIS Cortex-M4 Device System Source File for STM32F3xx devices.
8+
******************************************************************************
9+
* @attention
10+
*
11+
* <h2><center>&copy; COPYRIGHT(c) 2016 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 stm32f3xx_system
43+
* @{
44+
*/
45+
46+
/**
47+
* @brief Define to prevent recursive inclusion
48+
*/
49+
#ifndef __SYSTEM_STM32F3XX_H
50+
#define __SYSTEM_STM32F3XX_H
51+
52+
#ifdef __cplusplus
53+
extern "C" {
54+
#endif
55+
56+
/** @addtogroup STM32F3xx_System_Includes
57+
* @{
58+
*/
59+
60+
/**
61+
* @}
62+
*/
63+
64+
65+
/** @addtogroup STM32F3xx_System_Exported_types
66+
* @{
67+
*/
68+
/* This variable is updated in three ways:
69+
1) by calling CMSIS function SystemCoreClockUpdate()
70+
3) by calling HAL API function HAL_RCC_GetHCLKFreq()
71+
3) by calling HAL API function HAL_RCC_ClockConfig()
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+
extern const uint8_t AHBPrescTable[16]; /*!< AHB prescalers table values */
78+
extern const uint8_t APBPrescTable[8]; /*!< APB prescalers table values */
79+
80+
81+
/**
82+
* @}
83+
*/
84+
85+
/** @addtogroup STM32F3xx_System_Exported_Constants
86+
* @{
87+
*/
88+
89+
/**
90+
* @}
91+
*/
92+
93+
/** @addtogroup STM32F3xx_System_Exported_Macros
94+
* @{
95+
*/
96+
97+
/**
98+
* @}
99+
*/
100+
101+
/** @addtogroup STM32F3xx_System_Exported_Functions
102+
* @{
103+
*/
104+
105+
extern void SystemInit(void);
106+
extern void SystemCoreClockUpdate(void);
107+
/**
108+
* @}
109+
*/
110+
111+
#ifdef __cplusplus
112+
}
113+
#endif
114+
115+
#endif /*__SYSTEM_STM32F3XX_H */
116+
117+
/**
118+
* @}
119+
*/
120+
121+
/**
122+
* @}
123+
*/
124+
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

0 commit comments

Comments
 (0)