mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-30 19:19:21 +00:00
feat(ulp): add lp core panic handler
This commit is contained in:
@@ -20,12 +20,15 @@ int main(void)
|
||||
ulp_lp_core_gpio_output_enable(LP_IO_NUM_0);
|
||||
|
||||
ulp_lp_core_gpio_set_level(LP_IO_NUM_0, 0);
|
||||
ulp_lp_core_delay_us(100);
|
||||
gpio_test_succeeded = (ulp_lp_core_gpio_get_level(LP_IO_NUM_0) == 0);
|
||||
|
||||
ulp_lp_core_gpio_set_level(LP_IO_NUM_0, 1);
|
||||
ulp_lp_core_delay_us(100);
|
||||
gpio_test_succeeded &= (ulp_lp_core_gpio_get_level(LP_IO_NUM_0) == 1);
|
||||
|
||||
ulp_lp_core_gpio_set_level(LP_IO_NUM_0, 0);
|
||||
ulp_lp_core_delay_us(100);
|
||||
gpio_test_succeeded &= (ulp_lp_core_gpio_get_level(LP_IO_NUM_0) == 0);
|
||||
|
||||
gpio_test_finished = 1;
|
||||
|
@@ -2,4 +2,5 @@ CONFIG_ESP_TASK_WDT_INIT=n
|
||||
|
||||
CONFIG_ULP_COPROC_ENABLED=y
|
||||
CONFIG_ULP_COPROC_TYPE_LP_CORE=y
|
||||
CONFIG_ULP_COPROC_RESERVE_MEM=8192
|
||||
CONFIG_ULP_COPROC_RESERVE_MEM=12000
|
||||
CONFIG_ULP_PANIC_OUTPUT_ENABLE=y
|
||||
|
Reference in New Issue
Block a user