aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stm32f1/stm32f1.patch
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-07-21 20:29:14 -0400
committerKevin O'Connor <kevin@koconnor.net>2019-07-21 22:40:56 -0400
commit893acdb56bddbe8c24b51050187325f71e439798 (patch)
tree705cd4b3422c83967a8e0b4533aee21b32ea3b3d /lib/stm32f1/stm32f1.patch
parent17bd595b155304e9f1defa480f5eb7d8c060d9d6 (diff)
downloadkutter-893acdb56bddbe8c24b51050187325f71e439798.tar.gz
kutter-893acdb56bddbe8c24b51050187325f71e439798.tar.xz
kutter-893acdb56bddbe8c24b51050187325f71e439798.zip
lib: Update stm32f1 code to version 1.8.0
Update the stm32f1 code to the latest from ST. Merge the lib/cmsis-stm32f1/ and lib/hal-stm32f1/ into a single lib/stm32f1/ directory. Document all the differences from the pristine upstream code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'lib/stm32f1/stm32f1.patch')
-rw-r--r--lib/stm32f1/stm32f1.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/stm32f1/stm32f1.patch b/lib/stm32f1/stm32f1.patch
new file mode 100644
index 00000000..ea277317
--- /dev/null
+++ b/lib/stm32f1/stm32f1.patch
@@ -0,0 +1,20 @@
+diff --git a/lib/stm32f1/hal/include/stm32f1xx_hal_conf.h b/lib/stm32f1/hal/include/stm32f1xx_hal_conf.h
+new file mode 100644
+index 00000000..fb41c421
+--- /dev/null
++++ b/lib/stm32f1/hal/include/stm32f1xx_hal_conf.h
+@@ -0,0 +1 @@
++#include "stm32f1xx_hal_conf_template.h"
+diff --git a/lib/stm32f1/system_stm32f1xx.c b/lib/stm32f1/system_stm32f1xx.c
+index be2da1b1..fb6c279c 100644
+--- a/lib/stm32f1/system_stm32f1xx.c
++++ b/lib/stm32f1/system_stm32f1xx.c
+@@ -154,7 +154,7 @@ const uint8_t APBPrescTable[8U] = {0, 0, 0, 0, 1, 2, 3, 4};
+ * @param None
+ * @retval None
+ */
+-void SystemInit (void)
++void __attribute__((externally_visible)) SystemInit (void)
+ {
+ /* Reset the RCC clock configuration to the default reset state(for debug purpose) */
+ /* Set HSION bit */