Skip to content

Commit c0e9e94

Browse files
authored
Merge pull request #125 from fpistm/HAL_Update
Hal update
2 parents 0f002a3 + f9657d3 commit c0e9e94

File tree

940 files changed

+639357
-477804
lines changed

Some content is hidden

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

940 files changed

+639357
-477804
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#include "stm32_def_build.h"
2+
3+
#ifdef STM32F0xx
4+
// none
5+
#endif
6+
#ifdef STM32F1xx
7+
// none
8+
#endif
9+
#ifdef STM32F2xx
10+
// none
11+
#endif
12+
#ifdef STM32F3xx
13+
// none
14+
#endif
15+
#ifdef STM32F4xx
16+
// none
17+
#endif
18+
#ifdef STM32F7xx
19+
// none
20+
#endif
21+
#ifdef STM32L0xx
22+
// none
23+
#endif
24+
#ifdef STM32L1xx
25+
// none
26+
#endif
27+
#ifdef STM32L4xx
28+
#include "stm32l4xx_hal_dfsdm_ex.c"
29+
#endif

cores/arduino/stm32/HAL/stm32yyxx_hal_dma_ex.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@
2525
// none
2626
#endif
2727
#ifdef STM32L4xx
28-
// none
28+
#include "stm32l4xx_hal_dma_ex.c"
2929
#endif

cores/arduino/stm32/HAL/stm32yyxx_hal_dsi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@
2525
// none
2626
#endif
2727
#ifdef STM32L4xx
28-
// none
28+
#include "stm32l4xx_hal_dsi.c"
2929
#endif
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#include "stm32_def_build.h"
2+
3+
#ifdef STM32F0xx
4+
// none
5+
#endif
6+
#ifdef STM32F1xx
7+
// none
8+
#endif
9+
#ifdef STM32F2xx
10+
// none
11+
#endif
12+
#ifdef STM32F3xx
13+
// none
14+
#endif
15+
#ifdef STM32F4xx
16+
// none
17+
#endif
18+
#ifdef STM32F7xx
19+
// none
20+
#endif
21+
#ifdef STM32L0xx
22+
// none
23+
#endif
24+
#ifdef STM32L1xx
25+
// none
26+
#endif
27+
#ifdef STM32L4xx
28+
#include "stm32l4xx_hal_gfxmmu.c"
29+
#endif

cores/arduino/stm32/HAL/stm32yyxx_hal_ltdc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@
2525
// none
2626
#endif
2727
#ifdef STM32L4xx
28-
// none
28+
#include "stm32l4xx_hal_ltdc.c"
2929
#endif

cores/arduino/stm32/HAL/stm32yyxx_hal_ltdc_ex.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@
2525
// none
2626
#endif
2727
#ifdef STM32L4xx
28-
// none
28+
#include "stm32l4xx_hal_ltdc_ex.c"
2929
#endif
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#include "stm32_def_build.h"
2+
3+
#ifdef STM32F0xx
4+
// none
5+
#endif
6+
#ifdef STM32F1xx
7+
//none
8+
#endif
9+
#ifdef STM32F2xx
10+
//none
11+
#endif
12+
#ifdef STM32F3xx
13+
// none
14+
#endif
15+
#ifdef STM32F4xx
16+
//none
17+
#endif
18+
#ifdef STM32F7xx
19+
//none
20+
#endif
21+
#ifdef STM32L0xx
22+
// none
23+
#endif
24+
#ifdef STM32L1xx
25+
// none
26+
#endif
27+
#ifdef STM32L4xx
28+
#include "stm32l4xx_hal_ospi.c"
29+
#endif

cores/arduino/stm32/HAL/stm32yyxx_hal_sai_ex.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@
2525
// none
2626
#endif
2727
#ifdef STM32L4xx
28-
// none
28+
#include "stm32l4xx_hal_sai_ex.c"
2929
#endif
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#include "stm32_def_build.h"
2+
3+
#ifdef STM32F0xx
4+
// none
5+
#endif
6+
#ifdef STM32F1xx
7+
// none
8+
#endif
9+
#ifdef STM32F2xx
10+
// none
11+
#endif
12+
#ifdef STM32F3xx
13+
// none
14+
#endif
15+
#ifdef STM32F4xx
16+
// none
17+
#endif
18+
#ifdef STM32F7xx
19+
// none
20+
#endif
21+
#ifdef STM32L0xx
22+
// none
23+
#endif
24+
#ifdef STM32L1xx
25+
// none
26+
#endif
27+
#ifdef STM32L4xx
28+
#include "stm32l4xx_hal_sd_ex.c"
29+
#endif
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#include "stm32_def_build.h"
2+
3+
#ifdef STM32F0xx
4+
// none
5+
#endif
6+
#ifdef STM32F1xx
7+
// none
8+
#endif
9+
#ifdef STM32F2xx
10+
// none
11+
#endif
12+
#ifdef STM32F3xx
13+
// none
14+
#endif
15+
#ifdef STM32F4xx
16+
// none
17+
#endif
18+
#ifdef STM32F7xx
19+
// none
20+
#endif
21+
#ifdef STM32L0xx
22+
// none
23+
#endif
24+
#ifdef STM32L1xx
25+
// none
26+
#endif
27+
#ifdef STM32L4xx
28+
#include "stm32l4xx_hal_usart_ex.c"
29+
#endif

cores/arduino/stm32/stm32_def_build.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,18 @@
294294
#define CMSIS_STARTUP_FILE "startup_stm32l496xx.s"
295295
#elif defined(STM32L4A6xx)
296296
#define CMSIS_STARTUP_FILE "startup_stm32l4a6xx.s"
297+
#elif defined(STM32L4R5xx)
298+
#define CMSIS_STARTUP_FILE "startup_stm32l4r5xx.s"
299+
#elif defined(STM32L4R7xx)
300+
#define CMSIS_STARTUP_FILE "startup_stm32l4r7xx.s"
301+
#elif defined(STM32L4R9xx)
302+
#define CMSIS_STARTUP_FILE "startup_stm32l4r9xx.s"
303+
#elif defined(STM32L4S5xx)
304+
#define CMSIS_STARTUP_FILE "startup_stm32l4s5xx.s"
305+
#elif defined(STM32L4S7xx)
306+
#define CMSIS_STARTUP_FILE "startup_stm32l4s7xx.s"
307+
#elif defined(STM32L4S9xx)
308+
#define CMSIS_STARTUP_FILE "startup_stm32l4s9xx.s"
297309
#else
298310
#error UNKNOWN CHIP
299311
#endif

system/Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,11 @@
110110
#endif /* USE_HAL_DRIVER */
111111

112112
/**
113-
* @brief CMSIS Device version number V2.3.2
113+
* @brief CMSIS Device version number V2.3.3
114114
*/
115115
#define __STM32F0_DEVICE_VERSION_MAIN (0x02) /*!< [31:24] main version */
116116
#define __STM32F0_DEVICE_VERSION_SUB1 (0x03) /*!< [23:16] sub1 version */
117-
#define __STM32F0_DEVICE_VERSION_SUB2 (0x02) /*!< [15:8] sub2 version */
117+
#define __STM32F0_DEVICE_VERSION_SUB2 (0x03) /*!< [15:8] sub2 version */
118118
#define __STM32F0_DEVICE_VERSION_RC (0x00) /*!< [7:0] release candidate */
119119
#define __STM32F0_DEVICE_VERSION ((__STM32F0_DEVICE_VERSION_MAIN << 24)\
120120
|(__STM32F0_DEVICE_VERSION_SUB1 << 16)\

system/Drivers/CMSIS/Device/ST/STM32F0xx/Release_Notes.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ <h1 style="margin-bottom: 18pt; text-align: center;" align="center"><span style=
8787
<tbody>
8888
<tr>
8989
<td style="padding: 0cm;" valign="top">
90-
<h2 style="background: rgb(51, 102, 255) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;"><span style="font-size: 12pt; color: white;">Update History</span></h2><h3 style="background: rgb(51, 102, 255) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; margin-right: 500pt; width: 200px;"><span style="font-size: 10pt; font-family: Arial; color: white;">V2.3.2 / 07-April-2017</span></h3>
90+
<h2 style="background: rgb(51, 102, 255) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;"><span style="font-size: 12pt; color: white;">Update History</span></h2><h3 style="background: rgb(51, 102, 255) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; margin-right: 500pt; width: 200px;"><span style="font-size: 10pt; font-family: Arial; color: white;">V2.3.3 / 25-August-2017<o:p></o:p></span></h3><p class="MsoNormal" style="margin: 4.5pt 0cm 4.5pt 18pt;"><b style=""><u><span style="font-size: 10pt; font-family: Verdana; color: black;">Main
91+
Changes</span></u></b></p>
92+
<ul style="margin-top: 0cm;" type="square"><li class="MsoNormal" style="color: black; margin-top: 4.5pt; margin-bottom: 4.5pt; font-weight: normal;"><span style="font-family: 'Verdana','sans-serif'; font-size: 10pt;" lang="EN-US">Remove&nbsp;</span><span style="font-family: Verdana,sans-serif; font-size: 10pt;">support of </span><span style="font-family: Verdana; font-size: 10pt;">Atollic TrueSTUDIO STM32 (TrueSTUDIO) </span><span style="font-family: Verdana,sans-serif; font-size: 10pt;">toolchain.</span></li><li class="MsoNormal" style="color: black; margin-top: 4.5pt; margin-bottom: 4.5pt; font-weight: normal;"><span style="font-family: Verdana,sans-serif; font-size: 10pt;">Performance improvement of the startup code for GCC.<br></span></li></ul><h3 style="background: rgb(51, 102, 255) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; margin-right: 500pt; width: 200px;"><span style="font-size: 10pt; font-family: Arial; color: white;">V2.3.2 / 07-April-2017</span></h3>
9193

9294

9395
<p class="MsoNormal" style="margin: 4.5pt 0cm 4.5pt 18pt;"><b style=""><u><span style="font-size: 10pt; font-family: Verdana; color: black;">Main

system/Drivers/CMSIS/Device/ST/STM32F0xx/Source/Templates/gcc/startup_stm32f030x6.s

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
******************************************************************************
33
* @file startup_stm32f030x6.s
44
* @author MCD Application Team
5-
* @brief STM32F030x4/STM32F030x6 devices vector table for Atollic TrueSTUDIO toolchain.
5+
* @brief STM32F030x4/STM32F030x6 devices vector table for GCC toolchain.
66
* This module performs:
77
* - Set the initial SP
88
* - Set the initial PC == Reset_Handler,
@@ -66,33 +66,34 @@ Reset_Handler:
6666
mov sp, r0 /* set stack pointer */
6767

6868
/* Copy the data segment initializers from flash to SRAM */
69-
movs r1, #0
69+
ldr r0, =_sdata
70+
ldr r1, =_edata
71+
ldr r2, =_sidata
72+
movs r3, #0
7073
b LoopCopyDataInit
7174

7275
CopyDataInit:
73-
ldr r3, =_sidata
74-
ldr r3, [r3, r1]
75-
str r3, [r0, r1]
76-
adds r1, r1, #4
76+
ldr r4, [r2, r3]
77+
str r4, [r0, r3]
78+
adds r3, r3, #4
7779

7880
LoopCopyDataInit:
79-
ldr r0, =_sdata
80-
ldr r3, =_edata
81-
adds r2, r0, r1
82-
cmp r2, r3
81+
adds r4, r0, r3
82+
cmp r4, r1
8383
bcc CopyDataInit
84+
85+
/* Zero fill the bss segment. */
8486
ldr r2, =_sbss
87+
ldr r4, =_ebss
88+
movs r3, #0
8589
b LoopFillZerobss
86-
/* Zero fill the bss segment. */
90+
8791
FillZerobss:
88-
movs r3, #0
8992
str r3, [r2]
9093
adds r2, r2, #4
9194

92-
9395
LoopFillZerobss:
94-
ldr r3, = _ebss
95-
cmp r2, r3
96+
cmp r2, r4
9697
bcc FillZerobss
9798

9899
/* Call the clock system intitialization function.*/

system/Drivers/CMSIS/Device/ST/STM32F0xx/Source/Templates/gcc/startup_stm32f030x8.s

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
******************************************************************************
33
* @file startup_stm32f030x8.s
44
* @author MCD Application Team
5-
* @brief STM32F030x8 devices vector table for Atollic TrueSTUDIO toolchain.
5+
* @brief STM32F030x8 devices vector table for GCC toolchain.
66
* This module performs:
77
* - Set the initial SP
88
* - Set the initial PC == Reset_Handler,
@@ -66,33 +66,34 @@ Reset_Handler:
6666
mov sp, r0 /* set stack pointer */
6767

6868
/* Copy the data segment initializers from flash to SRAM */
69-
movs r1, #0
69+
ldr r0, =_sdata
70+
ldr r1, =_edata
71+
ldr r2, =_sidata
72+
movs r3, #0
7073
b LoopCopyDataInit
7174

7275
CopyDataInit:
73-
ldr r3, =_sidata
74-
ldr r3, [r3, r1]
75-
str r3, [r0, r1]
76-
adds r1, r1, #4
76+
ldr r4, [r2, r3]
77+
str r4, [r0, r3]
78+
adds r3, r3, #4
7779

7880
LoopCopyDataInit:
79-
ldr r0, =_sdata
80-
ldr r3, =_edata
81-
adds r2, r0, r1
82-
cmp r2, r3
81+
adds r4, r0, r3
82+
cmp r4, r1
8383
bcc CopyDataInit
84+
85+
/* Zero fill the bss segment. */
8486
ldr r2, =_sbss
87+
ldr r4, =_ebss
88+
movs r3, #0
8589
b LoopFillZerobss
86-
/* Zero fill the bss segment. */
90+
8791
FillZerobss:
88-
movs r3, #0
8992
str r3, [r2]
9093
adds r2, r2, #4
9194

92-
9395
LoopFillZerobss:
94-
ldr r3, = _ebss
95-
cmp r2, r3
96+
cmp r2, r4
9697
bcc FillZerobss
9798

9899
/* Call the clock system intitialization function.*/

0 commit comments

Comments
 (0)