8 #ifndef OPENOCD_TARGET_ESP_SEMIHOSTING_H
9 #define OPENOCD_TARGET_ESP_SEMIHOSTING_H
12 #define ESP_SYS_DRV_INFO_LEGACY 0xE0
15 #define ESP_SEMIHOSTING_SYS_DRV_INFO 0x100
16 #define ESP_SEMIHOSTING_SYS_APPTRACE_INIT 0x101
17 #define ESP_SEMIHOSTING_SYS_DEBUG_STUBS_INIT 0x102
18 #define ESP_SEMIHOSTING_SYS_BREAKPOINT_SET 0x103
19 #define ESP_SEMIHOSTING_SYS_WATCHPOINT_SET 0x104
20 #define ESP_SEMIHOSTING_SYS_SEEK 0x105
22 #define ESP_SEMIHOSTING_SYS_MKDIR 0x106
23 #define ESP_SEMIHOSTING_SYS_OPENDIR 0x107
24 #define ESP_SEMIHOSTING_SYS_READDIR 0x108
25 #define ESP_SEMIHOSTING_SYS_READDIR_R 0x109
26 #define ESP_SEMIHOSTING_SYS_SEEKDIR 0x10A
27 #define ESP_SEMIHOSTING_SYS_TELLDIR 0x10B
28 #define ESP_SEMIHOSTING_SYS_CLOSEDIR 0x10C
29 #define ESP_SEMIHOSTING_SYS_RMDIR 0x10D
30 #define ESP_SEMIHOSTING_SYS_ACCESS 0x10E
31 #define ESP_SEMIHOSTING_SYS_TRUNCATE 0x10F
32 #define ESP_SEMIHOSTING_SYS_UTIME 0x110
33 #define ESP_SEMIHOSTING_SYS_FSTAT 0x111
34 #define ESP_SEMIHOSTING_SYS_STAT 0x112
35 #define ESP_SEMIHOSTING_SYS_FSYNC 0x113
36 #define ESP_SEMIHOSTING_SYS_LINK 0x114
37 #define ESP_SEMIHOSTING_SYS_UNLINK 0x115
int esp_semihosting_basedir_command(struct command_invocation *cmd)
int esp_semihosting_common(struct target *target)
When run_command is called, a new instance will be created on the stack, filled with the proper value...
struct esp_semihost_ops * ops
Semihost calls handling operations.
int(* prepare)(struct target *target)
Callback called before handling semihost call.