Skip to content

Commit

Permalink
Try to fix ISR handling for ESP32 C3 boards
Browse files Browse the repository at this point in the history
  • Loading branch information
rbroker committed Mar 16, 2024
1 parent 808eecc commit c8490ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
fqbn:
- esp32:esp32:esp32
- esp32:esp32:esp32s3
#- esp32:esp32:esp32c3
- esp32:esp32:esp32c3
- esp32:esp32:lolin_s2_mini

steps:
Expand Down
4 changes: 4 additions & 0 deletions ecodan-ha-local/ehal_hp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,11 @@ namespace ehal::hp
{
BaseType_t higherPriorityTaskWoken = pdFALSE;
vTaskNotifyGiveIndexedFromISR(serialRxTaskHandle, 0, &higherPriorityTaskWoken);
#if CONFIG_IDF_TARGET_ESP32C3
portEND_SWITCHING_ISR(higherPriorityTaskWoken);
#else
portYIELD_FROM_ISR(higherPriorityTaskWoken);
#endif
}

void serial_rx_thread()
Expand Down

0 comments on commit c8490ae

Please sign in to comment.