astuder / dAISy

Simple AIS Receiver based on Si4362 and MSP430
132 stars 37 forks source link

Make serial communication asynchronous #2

Open astuder opened 10 years ago

astuder commented 10 years ago

Currently, sending of data over serial is blocking the main thread. The result is, that in case of a channel hop request, the packet handler state machine is blocked until the current serial transmission is complete. (solve by moving hop logic inside packet handler ISR)

Implement serial TX as ISR, add isBusy() to UART that needs to be checked before reusing TX buffer.

astuder commented 10 years ago

non-critical with reworked packet handler ISR

astuder commented 10 years ago

oops, wrong issue referenced in commit