From d60b143595bbea02212e27bb6643cc8c5384d836 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 21 Aug 2019 21:10:25 -0400 Subject: [PATCH] lib: It is no longer necessary to modify the stm32f4 code Now that the stm32f4 code uses the armcm_boot mechanism, it is no longer necessary for SystemInit to be externally visible. Signed-off-by: Kevin O'Connor --- lib/README | 3 +-- lib/stm32f4/stm32f4.patch | 13 ------------- lib/stm32f4/system_stm32f4xx.c | 2 +- 3 files changed, 2 insertions(+), 16 deletions(-) delete mode 100644 lib/stm32f4/stm32f4.patch diff --git a/lib/README b/lib/README index 7ac2a361..0da1f58a 100644 --- a/lib/README +++ b/lib/README @@ -51,8 +51,7 @@ with gcc's LTO feature. See stm32f1.patch for the modifications. The stm32f4 directory contains code from STMicroelectronics: http://www.st.com/en/embedded-software/stm32cubef4.html -version 1.24.0 (extracted 20190723). It has been modified to compile -with gcc's LTO feature. See stm32f4.patch for the modifications. +version 1.24.0 (extracted 20190723). The hub-ctrl directory contains code from: https://github.com/codazoda/hub-ctrl.c/ diff --git a/lib/stm32f4/stm32f4.patch b/lib/stm32f4/stm32f4.patch deleted file mode 100644 index 4f5d88c3..00000000 --- a/lib/stm32f4/stm32f4.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/lib/stm32f4/system_stm32f4xx.c b/lib/stm32f4/system_stm32f4xx.c -index 11c18d1a..b94cfb2f 100644 ---- a/lib/stm32f4/system_stm32f4xx.c -+++ b/lib/stm32f4/system_stm32f4xx.c -@@ -163,7 +163,7 @@ const uint8_t APBPrescTable[8] = {0, 0, 0, 0, 1, 2, 3, 4}; - * @param None - * @retval None - */ --void SystemInit(void) -+void __attribute__((externally_visible)) SystemInit(void) - { - /* FPU settings ------------------------------------------------------------*/ - #if (__FPU_PRESENT == 1) && (__FPU_USED == 1) diff --git a/lib/stm32f4/system_stm32f4xx.c b/lib/stm32f4/system_stm32f4xx.c index b94cfb2f..11c18d1a 100644 --- a/lib/stm32f4/system_stm32f4xx.c +++ b/lib/stm32f4/system_stm32f4xx.c @@ -163,7 +163,7 @@ const uint8_t APBPrescTable[8] = {0, 0, 0, 0, 1, 2, 3, 4}; * @param None * @retval None */ -void __attribute__((externally_visible)) SystemInit(void) +void SystemInit(void) { /* FPU settings ------------------------------------------------------------*/ #if (__FPU_PRESENT == 1) && (__FPU_USED == 1)