Sub-IoT / Sub-IoT-Stack

Sub-IoT: Open Source Stack for Dash7 Alliance Protocol
https://sub-iot.github.io/Sub-IoT-Stack/
Other
150 stars 90 forks source link

fix-hw-timer-schedule-infinite-loop #117

Closed nielsheirman closed 2 years ago

nielsheirman commented 2 years ago

The atomic section in gpio_int_callback in some cases prevents gpio interrupts from scheduling timer tasks. The atomic section prevents the timer interrupt from firing which may cause an infinite loop on: https://github.com/Sub-IoT/Sub-IoT-Stack/blob/9b8ce55882a8d1df857edd4190c150d599b511e6/stack/framework/hal/chips/stm32_common/stm32_common_timer.c#L186