OpenOCD
esp.h File Reference
Include dependency graph for esp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  esp_common
 
struct  esp_dbg_stubs
 Debug stubs info. More...
 
struct  esp_dbg_stubs_desc
 Debug stubs descriptor. More...
 

Macros

#define ESP_DBG_STUB_CAP_GCOV_THREAD   BIT(0)
 
#define ESP_DBG_STUB_MAGIC_NUM_VAL   0xFEEDBEEF
 
#define ESP_DBG_STUBS_CODE_BUF_SIZE   32 /* TODO: move this info to esp_dbg_stubs_desc */
 Size of the pre-compiled target buffer for stub trampoline. More...
 
#define ESP_DBG_STUBS_STACK_MIN_SIZE   2048/* TODO: move this info to esp_dbg_stubs_desc */
 Size of the pre-compiled target buffer for stack. More...
 

Enumerations

enum  esp_dbg_stub_id {
  ESP_DBG_STUB_ENTRY_MAGIC_NUM , ESP_DBG_STUB_TABLE_SIZE , ESP_DBG_STUB_TABLE_START , ESP_DBG_STUB_DESC = ESP_DBG_STUB_TABLE_START ,
  ESP_DBG_STUB_ENTRY_FIRST , ESP_DBG_STUB_ENTRY_GCOV = ESP_DBG_STUB_ENTRY_FIRST , ESP_DBG_STUB_CAPABILITIES , ESP_DBG_STUB_ENTRY_MAX
}
 Debug stubs table entries IDs. More...
 

Functions

int esp_common_init (struct esp_common *esp, const struct esp_algorithm_hw *algo_hw)
 
int esp_dbgstubs_table_read (struct target *target, struct esp_dbg_stubs *dbg_stubs)
 

Macro Definition Documentation

◆ ESP_DBG_STUB_CAP_GCOV_THREAD

#define ESP_DBG_STUB_CAP_GCOV_THREAD   BIT(0)

Definition at line 40 of file esp.h.

◆ ESP_DBG_STUB_MAGIC_NUM_VAL

#define ESP_DBG_STUB_MAGIC_NUM_VAL   0xFEEDBEEF

Definition at line 39 of file esp.h.

◆ ESP_DBG_STUBS_CODE_BUF_SIZE

#define ESP_DBG_STUBS_CODE_BUF_SIZE   32 /* TODO: move this info to esp_dbg_stubs_desc */

Size of the pre-compiled target buffer for stub trampoline.

Note
Must be in sync with ESP-IDF version

Definition at line 17 of file esp.h.

◆ ESP_DBG_STUBS_STACK_MIN_SIZE

#define ESP_DBG_STUBS_STACK_MIN_SIZE   2048/* TODO: move this info to esp_dbg_stubs_desc */

Size of the pre-compiled target buffer for stack.

Note
Must be in sync with ESP-IDF version

Definition at line 20 of file esp.h.

Enumeration Type Documentation

◆ esp_dbg_stub_id

Debug stubs table entries IDs.

Note
Must be in sync with ESP-IDF version
Enumerator
ESP_DBG_STUB_ENTRY_MAGIC_NUM 
ESP_DBG_STUB_TABLE_SIZE 
ESP_DBG_STUB_TABLE_START 
ESP_DBG_STUB_DESC 
ESP_DBG_STUB_ENTRY_FIRST 
ESP_DBG_STUB_ENTRY_GCOV 
ESP_DBG_STUB_CAPABILITIES 
ESP_DBG_STUB_ENTRY_MAX 

Definition at line 27 of file esp.h.

Function Documentation

◆ esp_common_init()

int esp_common_init ( struct esp_common esp,
const struct esp_algorithm_hw algo_hw 
)

Definition at line 17 of file esp.c.

References esp_common::algo_hw, ERROR_FAIL, and ERROR_OK.

Referenced by esp_xtensa_init_arch_info().

◆ esp_dbgstubs_table_read()