summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-11-20 16:05:53 +1100
committerjacqueline <me@jacqueline.id.au>2023-11-20 16:05:53 +1100
commit5c7f07e638c50a7b063009718f8ab35c0ce7fa44 (patch)
tree70d7e6d9b19edc9c833280697c06c39f20810f46 /src/drivers
parenteffac1917a615660bf76b35b3605ac2d3eeabd2f (diff)
downloadtangara-fw-5c7f07e638c50a7b063009718f8ab35c0ce7fa44.tar.gz
Use a non-IRAM-safe interrupt for gpio changes
AFAICT this *should* be IRAM-safe, but there's an xQueueReceiveGeneric within esp-idf that doesn't appear to be allocated internally
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/gpios.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/drivers/gpios.cpp b/src/drivers/gpios.cpp
index 23a98c6f..dc737710 100644
--- a/src/drivers/gpios.cpp
+++ b/src/drivers/gpios.cpp
@@ -86,8 +86,7 @@ Gpios::Gpios() : ports_(pack(kPortADefault, kPortBDefault)), inputs_(0) {
.intr_type = GPIO_INTR_NEGEDGE,
};
gpio_config(&config);
- gpio_install_isr_service(ESP_INTR_FLAG_LOWMED | ESP_INTR_FLAG_SHARED |
- ESP_INTR_FLAG_IRAM);
+ gpio_install_isr_service(ESP_INTR_FLAG_LEVEL1);
gpio_isr_handler_add(GPIO_NUM_34, &interrupt_isr, sReadPending);
}