From db61c0d3776fb8f9b7de2a8f5c6ad916f49f3933 Mon Sep 17 00:00:00 2001
From: supperthomas <78900636@qq.com>
Date: Sat, 27 Feb 2021 00:15:53 +0800
Subject: [PATCH] [bsp/max32660] remove the microlib about keil
---
bsp/maxim/MAX32660_EVSYS/project.uvoptx | 34 ++++------------
bsp/maxim/MAX32660_EVSYS/project.uvprojx | 2 +-
bsp/maxim/MAX32660_EVSYS/template.uvprojx | 2 +-
.../Maxim/MAX32660/Source/system_max32660.c | 39 ++++++++++---------
4 files changed, 30 insertions(+), 47 deletions(-)
diff --git a/bsp/maxim/MAX32660_EVSYS/project.uvoptx b/bsp/maxim/MAX32660_EVSYS/project.uvoptx
index ff7f9de14e..a8359d025b 100644
--- a/bsp/maxim/MAX32660_EVSYS/project.uvoptx
+++ b/bsp/maxim/MAX32660_EVSYS/project.uvoptx
@@ -117,26 +117,6 @@
BIN\CMSIS_AGDI.dll
-
- 0
- ARMRTXEVENTFLAGS
- -L70 -Z18 -C0 -M0 -T1
-
-
- 0
- DLGTARM
- (1010=-1,-1,-1,-1,0)(1007=-1,-1,-1,-1,0)(1008=-1,-1,-1,-1,0)(1009=-1,-1,-1,-1,0)
-
-
- 0
- ARMDBGFLAGS
-
-
-
- 0
- DLGUARM
-
-
0
CMSIS_AGDI
@@ -155,12 +135,12 @@
0
0
- 1
+ 0
0
0
0
0
- 1
+ 0
0
0
0
@@ -223,7 +203,7 @@
CPU
- 1
+ 0
0
0
0
@@ -291,7 +271,7 @@
DeviceDrivers
- 1
+ 0
0
0
0
@@ -407,7 +387,7 @@
Drivers
- 1
+ 0
0
0
0
@@ -463,7 +443,7 @@
finsh
- 1
+ 0
0
0
0
@@ -507,7 +487,7 @@
Kernel
- 1
+ 0
0
0
0
diff --git a/bsp/maxim/MAX32660_EVSYS/project.uvprojx b/bsp/maxim/MAX32660_EVSYS/project.uvprojx
index 7b23a65cbc..5f53b9696b 100644
--- a/bsp/maxim/MAX32660_EVSYS/project.uvprojx
+++ b/bsp/maxim/MAX32660_EVSYS/project.uvprojx
@@ -188,7 +188,7 @@
0
0
8
- 1
+ 0
0
0
0
diff --git a/bsp/maxim/MAX32660_EVSYS/template.uvprojx b/bsp/maxim/MAX32660_EVSYS/template.uvprojx
index 1ea2e5a7ba..47b809b51d 100644
--- a/bsp/maxim/MAX32660_EVSYS/template.uvprojx
+++ b/bsp/maxim/MAX32660_EVSYS/template.uvprojx
@@ -188,7 +188,7 @@
0
0
8
- 1
+ 0
0
0
0
diff --git a/bsp/maxim/libraries/MAX32660PeriphDriver/CMSIS/Device/Maxim/MAX32660/Source/system_max32660.c b/bsp/maxim/libraries/MAX32660PeriphDriver/CMSIS/Device/Maxim/MAX32660/Source/system_max32660.c
index 1d404cc48d..0f3b061e8a 100644
--- a/bsp/maxim/libraries/MAX32660PeriphDriver/CMSIS/Device/Maxim/MAX32660/Source/system_max32660.c
+++ b/bsp/maxim/libraries/MAX32660PeriphDriver/CMSIS/Device/Maxim/MAX32660/Source/system_max32660.c
@@ -95,6 +95,9 @@ __weak void SystemCoreClockUpdate(void)
__weak int PreInit(void)
{
/* Do nothing */
+#if defined ( __CC_ARM )
+ SystemInit();
+#endif
return 0;
}
@@ -145,23 +148,23 @@ __weak void SystemInit(void)
Board_Init();
}
-#if defined ( __CC_ARM )
-/* Global variable initialization does not occur until post scatterload in Keil tools.*/
+//#if defined ( __CC_ARM )
+///* Global variable initialization does not occur until post scatterload in Keil tools.*/
-/* External function called after our post scatterload function implementation. */
-extern void $Super$$__main_after_scatterload(void);
+///* External function called after our post scatterload function implementation. */
+//extern void $Super$$__main_after_scatterload(void);
-/**
- * @brief Initialization function for SystemCoreClock and Board_Init.
- * @details $Sub$$__main_after_scatterload is called during system startup in the Keil
- * toolset. Global variable and static variable space must be set up by the compiler
- * prior to using these memory spaces. Setting up the SystemCoreClock and Board_Init
- * require global memory for variable storage and are called from this function in
- * the Keil tool chain.
- */
-void $Sub$$__main_after_scatterload(void)
-{
- SystemInit();
- $Super$$__main_after_scatterload();
-}
-#endif /* __CC_ARM */
+///**
+// * @brief Initialization function for SystemCoreClock and Board_Init.
+// * @details $Sub$$__main_after_scatterload is called during system startup in the Keil
+// * toolset. Global variable and static variable space must be set up by the compiler
+// * prior to using these memory spaces. Setting up the SystemCoreClock and Board_Init
+// * require global memory for variable storage and are called from this function in
+// * the Keil tool chain.
+// */
+//void $Sub$$__main_after_scatterload(void)
+//{
+// SystemInit();
+// $Super$$__main_after_scatterload();
+//}
+//#endif /* __CC_ARM */