Browse Source

[FIX] 解决tm4c129 gcc 环境下startup的bug

Conley 4 năm trước cách đây
mục cha
commit
e74519f5c1
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  1. 4 2
      bsp/tm4c129x/libraries/startup/startup_gcc.c

+ 4 - 2
bsp/tm4c129x/libraries/startup/startup_gcc.c

@@ -217,8 +217,7 @@ extern uint32_t _ebss;
 // application.
 //
 //*****************************************************************************
-void
-ResetISR(void)
+void ResetISR(void)
 {
     uint32_t *pui32Src, *pui32Dest;
 
@@ -261,6 +260,9 @@ ResetISR(void)
     //
     // Call the application's entry point.
     //
+    extern int entry(void);
+    entry();
+    /*rtthread_startup();*/
     main();
 }