serialdata/read-ds

Mon, 09 Nov 2020 23:05:24 +0100

author
David Douard <david.douard@sdf3.org>
date
Mon, 09 Nov 2020 23:05:24 +0100
changeset 49
c146d19101a3
parent 42
13bc915b657b
permissions
-rw-r--r--

Refactor HPSerial to get rid of packet collision misbehavior

completely split the key sending code from the irq-based receiveing logic.
When sending keycodes, disable the RxIrq callback and handle send and recv
of bytes synchronously.

The keycode sending routine rus in a dedicated thread.

sigrok-cli -d dreamsourcelab-dslogic --config samplerate=500000 --samples=1000000 -t 1=f --channels 1,2,4 -l 4 -P uart:baudrate=187500:parity=even:rx=2:tx=4 

mercurial