ESP-IDF
+
0
/36 examples
SourceVu will show references to
ESP_GOTO_ON_ERROR
from the following samples and libraries:
FatFS
iperf sample
blink sample
simple_sniffer sample
ot_br sample
ot_cli sample
ot_trel sample
esp_local_ctrl sample
static_ip sample
esp_zigbee_gateway sample
wifi_coexist sample
soft_i2c sample
matrix_keyboard sample
i2c_eeprom sample
i2c_oled sample
spi_lcd_touch sample
mcpwm_bdc_speed_control sample
mcpwm_foc_svpwm_open_loop sample
dshot_esc sample
ir_nec_transceiver sample
led_strip sample
musical_buzzer sample
onewire sample
stepper_motor sample
wiegand_interface sample
restful_server sample
Bluedroid_GATT_Server sample
NimBLE_Connection sample
NimBLE_GATT_Server sample
NimBLE_Security sample
i2s_es7210_tdm sample
logic_analyzer sample
mb_tcp_master sample
mb_tcp_slave sample
cdc_acm_host sample
cdc_acm_vcp sample
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Arguments
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
ESP_GOTO_ON_ERROR
ESP_GOTO_ON_ERROR macro
Macro which can be used to check the error code. If the code is not ESP_OK, it prints the message, sets the local variable 'ret' to the code, and then exits by jumping to 'goto_tag'.
Syntax
Show:
Summary
Declaration
from
esp_check.h:348
#define
ESP_GOTO_ON_ERROR
(
x
,
goto_tag
,
log_tag
,
format
,
...
)
do
{
\
esp_err_t
err_rc_
=
(
x
)
;
\
if
(
unlikely
(
err_rc_
!=
ESP_OK
)
)
{
\
ESP_LOGE
(
log_tag
,
"%s(%d): "
format
,
__FUNCTION__
,
__LINE__
,
##
__VA_ARGS__
)
;
\
ret
=
err_rc_
;
\
goto
goto_tag
;
\
}
\
}
while
(
0
)
Arguments
Argument
x
goto_tag
log_tag
format
Examples
ESP_GOTO_ON_ERROR
is referenced by 36 libraries and example projects:
References
from
examples
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
All items filtered out
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out