Search found 2 matches
- Sat Dec 07, 2019 4:26 pm
- Forum: ESP32 Arduino
- Topic: Least restrictive critical section?
- Replies: 3
- Views: 4916
Re: Least restrictive critical section?
When in an ISR, no task can interrupt you; the CPU is in interrupt context and will only go back to running tasks when your ISR ends. I understand no actual FreeRTOS task can interrupt my ISR but seeing how the ESP32 supports interrupt levels/priorities could my ISR be interrupted by a higher prior...
- Fri Dec 06, 2019 11:17 pm
- Forum: ESP32 Arduino
- Topic: Least restrictive critical section?
- Replies: 3
- Views: 4916
Least restrictive critical section?
I have set up an external interrupt on a pin successfully, I use a FreeRTOS queue to queue some data which is fetched in the main loop(). This works well but I also have to access a variable from both the loop() and the ISR. It is my understanding that my only option is a critical section using port...