Kaynağa Gözat

remove heap init in drv_common.h

yaxing.chen 5 yıl önce
ebeveyn
işleme
698461ba72
2 değiştirilmiş dosya ile 1 ekleme ve 13 silme
  1. 1 1
      RealThread_STM32F4.yaml
  2. 0 12
      drivers/rtt/include/drv_common.h

+ 1 - 1
RealThread_STM32F4.yaml

@@ -2,7 +2,7 @@
 vendor: RealThread
 dvendor: STMicroelectronics
 name: STM32F4
-version: 0.1.9
+version: 0.2.0
 yaml_version: 1
 type: Chip_Support_Packages
 family_name: STM32

+ 0 - 12
drivers/rtt/include/drv_common.h

@@ -39,18 +39,6 @@ void _Error_Handler(char *s, int num);
 #define STM32_SRAM1_START              RAM_START
 #define STM32_SRAM1_END                RAM_END
 
-#if defined(__CC_ARM) || defined(__CLANG_ARM)
-extern int Image$RW_IRAM1$ZI$Limit;
-#define HEAP_BEGIN      ((void *)&Image$RW_IRAM1$ZI$Limit)
-#elif __ICCARM__
-#pragma section="CSTACK"
-#define HEAP_BEGIN      (__segment_end("CSTACK"))
-#else
-extern int __bss_end;
-#define HEAP_BEGIN      ((void *)&__bss_end)
-#endif
-
-#define HEAP_END                       STM32_SRAM1_END
 #ifdef __cplusplus
 }
 #endif