Skip to content

Commit d1cbef9

Browse files
committed
ESP8266: Make partition table public
1 parent 2e2c26f commit d1cbef9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

platforms/esp8266/src/esp_main.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ void user_init(void) {
258258
#error FW_RF_CAL_DATA_ADDR or FW_SYS_PARAMS_ADDR are not defined
259259
#endif
260260

261-
static const partition_item_t s_part_table[] = {
261+
const partition_item_t g_esp_part_table[] = {
262262
{SYSTEM_PARTITION_BOOTLOADER, 0x0, 0x1000},
263263
{SYSTEM_PARTITION_RF_CAL, FW_RF_CAL_DATA_ADDR, 0x1000},
264264
// The 4 sectors area at the end of flash that used to be called sys_params
@@ -297,7 +297,8 @@ void user_pre_init(void) {
297297
map = 1;
298298
break;
299299
}
300-
system_partition_table_regist(s_part_table, ARRAY_SIZE(s_part_table), map);
300+
system_partition_table_regist(g_esp_part_table, ARRAY_SIZE(g_esp_part_table),
301+
map);
301302
esp_exception_handler_init();
302303
esp_core_dump_init();
303304
__libc_init_array(); /* C++ global contructors. */

0 commit comments

Comments
 (0)