Browse Source

add: 添加两个全局变量,标记ROM的起止地址,为内存优化做准备

Wendal Chen 4 years ago
parent
commit
4fe8b77a17
1 changed files with 7 additions and 0 deletions
  1. 7 0
      app/port/luat_fs_air101.c

+ 7 - 0
app/port/luat_fs_air101.c

@@ -23,6 +23,13 @@ uint32_t luadb_size_kb;
 uint32_t lfs_addr;
 uint32_t lfs_size_kb;
 
+const uint32_t luat_rom_addr_start = 0x8010000;
+#ifdef AIR103
+const uint32_t luat_rom_addr_end   = 0x80FFFFF;
+#else
+const uint32_t luat_rom_addr_end   = 0x81FFFFF;
+#endif
+
 #ifndef FLASH_FS_REGION_SIZE
 #define FLASH_FS_REGION_SIZE 112
 #endif