2022-11-29 22:13:37 -05:00
|
|
|
/*
|
2023-05-23 04:06:44 -04:00
|
|
|
* SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
|
2022-11-29 22:13:37 -05:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2023-05-23 04:06:44 -04:00
|
|
|
#define SUPPORT_BTDM 0
|
|
|
|
#define SUPPORT_BTBB 0
|
|
|
|
#define SUPPORT_WIFI 0
|
|
|
|
#define SUPPORT_USB_DWCOTG 0
|
|
|
|
#define SUPPORT_COEXIST 0
|
|
|
|
#define SUPPORT_MBEDTLS 0
|
2022-11-29 22:13:37 -05:00
|
|
|
|
|
|
|
/* Structure and functions for returning ROM global layout
|
|
|
|
*
|
|
|
|
* This is for address symbols defined in the linker script, which may change during ECOs.
|
|
|
|
*/
|
|
|
|
typedef struct {
|
|
|
|
void *dram0_stack_shared_mem_start;
|
|
|
|
void *dram0_rtos_reserved_start;
|
|
|
|
void *stack_sentry;
|
|
|
|
void *stack;
|
|
|
|
|
2023-05-23 04:06:44 -04:00
|
|
|
#if SUPPORT_BTDM
|
2022-11-29 22:13:37 -05:00
|
|
|
void *data_start_btdm;
|
|
|
|
void *data_end_btdm;
|
|
|
|
void *bss_start_btdm;
|
|
|
|
void *bss_end_btdm;
|
|
|
|
void *data_start_btdm_rom;
|
|
|
|
void *data_end_btdm_rom;
|
|
|
|
void *data_start_interface_btdm;
|
|
|
|
void *data_end_interface_btdm;
|
|
|
|
void *bss_start_interface_btdm;
|
|
|
|
void *bss_end_interface_btdm;
|
2023-05-23 04:06:44 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if SUPPORT_BTBB
|
|
|
|
void *dram_start_btbbrom;
|
|
|
|
void *dram_end_btbbrom;
|
|
|
|
#endif
|
2022-11-29 22:13:37 -05:00
|
|
|
|
|
|
|
/* Other DRAM ranges */
|
|
|
|
#if SUPPORT_BTDM || SUPPORT_WIFI
|
|
|
|
void *dram_start_phyrom;
|
|
|
|
void *dram_end_phyrom;
|
|
|
|
#endif
|
|
|
|
#if SUPPORT_WIFI
|
|
|
|
void *dram_start_coexist;
|
|
|
|
void *dram_end_coexist;
|
|
|
|
void *dram_start_net80211;
|
|
|
|
void *dram_end_net80211;
|
|
|
|
void *dram_start_pp;
|
|
|
|
void *dram_end_pp;
|
|
|
|
void *data_start_interface_coexist;
|
|
|
|
void *data_end_interface_coexist;
|
|
|
|
void *bss_start_interface_coexist;
|
|
|
|
void *bss_end_interface_coexist;
|
|
|
|
void *data_start_interface_net80211;
|
|
|
|
void *data_end_interface_net80211;
|
|
|
|
void *bss_start_interface_net80211;
|
|
|
|
void *bss_end_interface_net80211;
|
|
|
|
void *data_start_interface_pp;
|
|
|
|
void *data_end_interface_pp;
|
|
|
|
void *bss_start_interface_pp;
|
|
|
|
void *bss_end_interface_pp;
|
|
|
|
#endif
|
2023-05-23 04:06:44 -04:00
|
|
|
|
|
|
|
#if SUPPORT_USB_DWCOTG
|
|
|
|
void *dram_start_usb_dwcotg_rom;
|
|
|
|
void *dram_end_usb_dwcotg_rom;
|
|
|
|
#else
|
|
|
|
//Two reserved members are defined here, so the structure will not be broken,
|
|
|
|
//please keep in mind that there is no memory can be released between
|
|
|
|
//dram_start_usb_reserved_rom ~ dram_end_usb_reserved_rom.
|
|
|
|
void *dram_start_usb_reserved_rom;
|
|
|
|
void *dram_end_usb_reserved_rom;
|
|
|
|
#endif
|
|
|
|
|
2022-11-29 22:13:37 -05:00
|
|
|
void *dram_start_uart_rom;
|
|
|
|
void *dram_end_uart_rom;
|
|
|
|
} ets_rom_layout_t;
|
|
|
|
|
|
|
|
extern const ets_rom_layout_t * const ets_rom_layout_p;
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|