alejoseb / Modbus-STM32-HAL-FreeRTOS

Modbus TCP and RTU, Master and Slave for STM32 using Cube HAL and FreeRTOS
GNU Lesser General Public License v2.1
579 stars 192 forks source link

Usage of portYieldFromISR() in Rx Callback #9

Closed harish2297 closed 3 years ago

harish2297 commented 3 years ago

Will xTimerReset block RX interrupt ? Should portYieldFromISR() should be in Rx Callback also ?

alejoseb commented 3 years ago

Hi,

Will xTimerReset block RX interrupt ? I am not sure what is your question. The RX interrupt can be block if the QueueModbusHandle is full, however that queue is processed continuously.

Should portYieldFromISR() should be in Rx Callback also ? Yes you are right, I added portYieldFromISR() to the RX callback and moved it to the callbacks file.