From d60b143595bbea02212e27bb6643cc8c5384d836 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 21 Aug 2019 21:10:25 -0400 Subject: 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/stm32f4/stm32f4.patch | 13 ------------- lib/stm32f4/system_stm32f4xx.c | 2 +- 2 files changed, 1 insertion(+), 14 deletions(-) delete mode 100644 lib/stm32f4/stm32f4.patch (limited to 'lib/stm32f4') 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) -- cgit v1.2.3-70-g09d2