nuttx/arch/xtensa
Tiago Medicci Serrano 6521bdfa1f esp32s3/ble: fix saving/restoring the interrupt status flags
Whenever we enter/leave a critical section, the interrupt status is
saved and, then, restored. However, for the ESP32-S3's BLE adapter,
entering/leaving a critical section is done on separate functions
that need to be registered as a callback.

The status flag was being saved as a global variable. However,
calling nested enter_critical_section would overwrite this global
variable that was storing the previous flag and, when leaving the
last critical section, the restored status would be different from
the one expected. The proposed solution for this issue is to create
a global array to store the interrupt status flags for nested calls.
2023-10-05 11:25:43 +08:00
..
include esp32s3/irq: Allow IRAM ISRs to run during SPI flash operation 2023-10-05 11:25:43 +08:00
src esp32s3/ble: fix saving/restoring the interrupt status flags 2023-10-05 11:25:43 +08:00
Kconfig xtensa: enable -Oz for xtensa to reduce codesize 2023-08-21 02:58:25 +08:00