Skip to content

Commit

Permalink
reduce interrupt latency
Browse files Browse the repository at this point in the history
  • Loading branch information
dernasherbrezon committed Dec 1, 2024
1 parent 77114fe commit 230c18d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/test_app/main/sx127x_fixture.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@

static const char *TAG = "sx127x_test";
static SemaphoreHandle_t xBinarySemaphore;
static BaseType_t xHigherPriorityTaskWoken = pdFALSE;

void IRAM_ATTR handle_interrupt_fromisr(void *arg) {
BaseType_t xHigherPriorityTaskWoken = pdFALSE;
xSemaphoreGiveFromISR(xBinarySemaphore, &xHigherPriorityTaskWoken);
if (xHigherPriorityTaskWoken == pdTRUE) {
portYIELD_FROM_ISR();
}
}

void handle_interrupt_task(void *arg) {
Expand Down

0 comments on commit 230c18d

Please sign in to comment.