diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-08-21 21:10:25 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-09-06 13:49:16 -0400 |
commit | d60b143595bbea02212e27bb6643cc8c5384d836 (patch) | |
tree | 8c39e445f10fb4ebb720425ef2945d2f6994796f /lib/stm32f4 | |
parent | 97af0b3cb052651f200f79add9ef822ded7c5ba2 (diff) | |
download | kutter-d60b143595bbea02212e27bb6643cc8c5384d836.tar.gz kutter-d60b143595bbea02212e27bb6643cc8c5384d836.tar.xz kutter-d60b143595bbea02212e27bb6643cc8c5384d836.zip |
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 <kevin@koconnor.net>
Diffstat (limited to 'lib/stm32f4')
-rw-r--r-- | lib/stm32f4/stm32f4.patch | 13 | ||||
-rw-r--r-- | lib/stm32f4/system_stm32f4xx.c | 2 |
2 files changed, 1 insertions, 14 deletions
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)
|