Skip to content

Hal update #125

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Oct 6, 2017
  •  
  •  
  •  
29 changes: 29 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal_dfsdm_ex.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#include "stm32_def_build.h"

#ifdef STM32F0xx
// none
#endif
#ifdef STM32F1xx
// none
#endif
#ifdef STM32F2xx
// none
#endif
#ifdef STM32F3xx
// none
#endif
#ifdef STM32F4xx
// none
#endif
#ifdef STM32F7xx
// none
#endif
#ifdef STM32L0xx
// none
#endif
#ifdef STM32L1xx
// none
#endif
#ifdef STM32L4xx
#include "stm32l4xx_hal_dfsdm_ex.c"
#endif
2 changes: 1 addition & 1 deletion cores/arduino/stm32/HAL/stm32yyxx_hal_dma_ex.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@
// none
#endif
#ifdef STM32L4xx
// none
#include "stm32l4xx_hal_dma_ex.c"
#endif
2 changes: 1 addition & 1 deletion cores/arduino/stm32/HAL/stm32yyxx_hal_dsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@
// none
#endif
#ifdef STM32L4xx
// none
#include "stm32l4xx_hal_dsi.c"
#endif
29 changes: 29 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal_gfxmmu.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#include "stm32_def_build.h"

#ifdef STM32F0xx
// none
#endif
#ifdef STM32F1xx
// none
#endif
#ifdef STM32F2xx
// none
#endif
#ifdef STM32F3xx
// none
#endif
#ifdef STM32F4xx
// none
#endif
#ifdef STM32F7xx
// none
#endif
#ifdef STM32L0xx
// none
#endif
#ifdef STM32L1xx
// none
#endif
#ifdef STM32L4xx
#include "stm32l4xx_hal_gfxmmu.c"
#endif
2 changes: 1 addition & 1 deletion cores/arduino/stm32/HAL/stm32yyxx_hal_ltdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@
// none
#endif
#ifdef STM32L4xx
// none
#include "stm32l4xx_hal_ltdc.c"
#endif
2 changes: 1 addition & 1 deletion cores/arduino/stm32/HAL/stm32yyxx_hal_ltdc_ex.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@
// none
#endif
#ifdef STM32L4xx
// none
#include "stm32l4xx_hal_ltdc_ex.c"
#endif
29 changes: 29 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal_ospi.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#include "stm32_def_build.h"

#ifdef STM32F0xx
// none
#endif
#ifdef STM32F1xx
//none
#endif
#ifdef STM32F2xx
//none
#endif
#ifdef STM32F3xx
// none
#endif
#ifdef STM32F4xx
//none
#endif
#ifdef STM32F7xx
//none
#endif
#ifdef STM32L0xx
// none
#endif
#ifdef STM32L1xx
// none
#endif
#ifdef STM32L4xx
#include "stm32l4xx_hal_ospi.c"
#endif
2 changes: 1 addition & 1 deletion cores/arduino/stm32/HAL/stm32yyxx_hal_sai_ex.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@
// none
#endif
#ifdef STM32L4xx
// none
#include "stm32l4xx_hal_sai_ex.c"
#endif
29 changes: 29 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal_sd_ex.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#include "stm32_def_build.h"

#ifdef STM32F0xx
// none
#endif
#ifdef STM32F1xx
// none
#endif
#ifdef STM32F2xx
// none
#endif
#ifdef STM32F3xx
// none
#endif
#ifdef STM32F4xx
// none
#endif
#ifdef STM32F7xx
// none
#endif
#ifdef STM32L0xx
// none
#endif
#ifdef STM32L1xx
// none
#endif
#ifdef STM32L4xx
#include "stm32l4xx_hal_sd_ex.c"
#endif
29 changes: 29 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal_usart_ex.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#include "stm32_def_build.h"

#ifdef STM32F0xx
// none
#endif
#ifdef STM32F1xx
// none
#endif
#ifdef STM32F2xx
// none
#endif
#ifdef STM32F3xx
// none
#endif
#ifdef STM32F4xx
// none
#endif
#ifdef STM32F7xx
// none
#endif
#ifdef STM32L0xx
// none
#endif
#ifdef STM32L1xx
// none
#endif
#ifdef STM32L4xx
#include "stm32l4xx_hal_usart_ex.c"
#endif
12 changes: 12 additions & 0 deletions cores/arduino/stm32/stm32_def_build.h
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,18 @@
#define CMSIS_STARTUP_FILE "startup_stm32l496xx.s"
#elif defined(STM32L4A6xx)
#define CMSIS_STARTUP_FILE "startup_stm32l4a6xx.s"
#elif defined(STM32L4R5xx)
#define CMSIS_STARTUP_FILE "startup_stm32l4r5xx.s"
#elif defined(STM32L4R7xx)
#define CMSIS_STARTUP_FILE "startup_stm32l4r7xx.s"
#elif defined(STM32L4R9xx)
#define CMSIS_STARTUP_FILE "startup_stm32l4r9xx.s"
#elif defined(STM32L4S5xx)
#define CMSIS_STARTUP_FILE "startup_stm32l4s5xx.s"
#elif defined(STM32L4S7xx)
#define CMSIS_STARTUP_FILE "startup_stm32l4s7xx.s"
#elif defined(STM32L4S9xx)
#define CMSIS_STARTUP_FILE "startup_stm32l4s9xx.s"
#else
#error UNKNOWN CHIP
#endif
Expand Down
4 changes: 2 additions & 2 deletions system/Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@
#endif /* USE_HAL_DRIVER */

/**
* @brief CMSIS Device version number V2.3.2
* @brief CMSIS Device version number V2.3.3
*/
#define __STM32F0_DEVICE_VERSION_MAIN (0x02) /*!< [31:24] main version */
#define __STM32F0_DEVICE_VERSION_SUB1 (0x03) /*!< [23:16] sub1 version */
#define __STM32F0_DEVICE_VERSION_SUB2 (0x02) /*!< [15:8] sub2 version */
#define __STM32F0_DEVICE_VERSION_SUB2 (0x03) /*!< [15:8] sub2 version */
#define __STM32F0_DEVICE_VERSION_RC (0x00) /*!< [7:0] release candidate */
#define __STM32F0_DEVICE_VERSION ((__STM32F0_DEVICE_VERSION_MAIN << 24)\
|(__STM32F0_DEVICE_VERSION_SUB1 << 16)\
Expand Down
4 changes: 3 additions & 1 deletion system/Drivers/CMSIS/Device/ST/STM32F0xx/Release_Notes.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ <h1 style="margin-bottom: 18pt; text-align: center;" align="center"><span style=
<tbody>
<tr>
<td style="padding: 0cm;" valign="top">
<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>
<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
Changes</span></u></b></p>
<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>


<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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
******************************************************************************
* @file startup_stm32f030x6.s
* @author MCD Application Team
* @brief STM32F030x4/STM32F030x6 devices vector table for Atollic TrueSTUDIO toolchain.
* @brief STM32F030x4/STM32F030x6 devices vector table for GCC toolchain.
* This module performs:
* - Set the initial SP
* - Set the initial PC == Reset_Handler,
Expand Down Expand Up @@ -66,33 +66,34 @@ Reset_Handler:
mov sp, r0 /* set stack pointer */

/* Copy the data segment initializers from flash to SRAM */
movs r1, #0
ldr r0, =_sdata
ldr r1, =_edata
ldr r2, =_sidata
movs r3, #0
b LoopCopyDataInit

CopyDataInit:
ldr r3, =_sidata
ldr r3, [r3, r1]
str r3, [r0, r1]
adds r1, r1, #4
ldr r4, [r2, r3]
str r4, [r0, r3]
adds r3, r3, #4

LoopCopyDataInit:
ldr r0, =_sdata
ldr r3, =_edata
adds r2, r0, r1
cmp r2, r3
adds r4, r0, r3
cmp r4, r1
bcc CopyDataInit

/* Zero fill the bss segment. */
ldr r2, =_sbss
ldr r4, =_ebss
movs r3, #0
b LoopFillZerobss
/* Zero fill the bss segment. */

FillZerobss:
movs r3, #0
str r3, [r2]
adds r2, r2, #4


LoopFillZerobss:
ldr r3, = _ebss
cmp r2, r3
cmp r2, r4
bcc FillZerobss

/* Call the clock system intitialization function.*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
******************************************************************************
* @file startup_stm32f030x8.s
* @author MCD Application Team
* @brief STM32F030x8 devices vector table for Atollic TrueSTUDIO toolchain.
* @brief STM32F030x8 devices vector table for GCC toolchain.
* This module performs:
* - Set the initial SP
* - Set the initial PC == Reset_Handler,
Expand Down Expand Up @@ -66,33 +66,34 @@ Reset_Handler:
mov sp, r0 /* set stack pointer */

/* Copy the data segment initializers from flash to SRAM */
movs r1, #0
ldr r0, =_sdata
ldr r1, =_edata
ldr r2, =_sidata
movs r3, #0
b LoopCopyDataInit

CopyDataInit:
ldr r3, =_sidata
ldr r3, [r3, r1]
str r3, [r0, r1]
adds r1, r1, #4
ldr r4, [r2, r3]
str r4, [r0, r3]
adds r3, r3, #4

LoopCopyDataInit:
ldr r0, =_sdata
ldr r3, =_edata
adds r2, r0, r1
cmp r2, r3
adds r4, r0, r3
cmp r4, r1
bcc CopyDataInit

/* Zero fill the bss segment. */
ldr r2, =_sbss
ldr r4, =_ebss
movs r3, #0
b LoopFillZerobss
/* Zero fill the bss segment. */

FillZerobss:
movs r3, #0
str r3, [r2]
adds r2, r2, #4


LoopFillZerobss:
ldr r3, = _ebss
cmp r2, r3
cmp r2, r4
bcc FillZerobss

/* Call the clock system intitialization function.*/
Expand Down
Loading