diff options
| author | Louis Burda <quent.burda@gmail.com> | 2022-12-13 10:50:59 +0100 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2022-12-13 10:50:59 +0100 |
| commit | cbb0ac4dac395ea287cf5e7cc211f81aef16e78f (patch) | |
| tree | 5a323f575d1027dff1031aead7c96aaed096c3ef /src/uart_tx.pio | |
| parent | b5e98f03ac60a725838367c58ab6a1fbc99f2831 (diff) | |
| download | sxkbd-cbb0ac4dac395ea287cf5e7cc211f81aef16e78f.tar.gz sxkbd-cbb0ac4dac395ea287cf5e7cc211f81aef16e78f.zip | |
Switch to full-duplex uart
Diffstat (limited to 'src/uart_tx.pio')
| -rw-r--r-- | src/uart_tx.pio | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/uart_tx.pio b/src/uart_tx.pio index 61d2e1a..2a08a93 100644 --- a/src/uart_tx.pio +++ b/src/uart_tx.pio @@ -1,10 +1,10 @@ .program uart_tx -.side_set 1 opt pindirs +.side_set 1 opt .wrap_target pull block side 1 [7] ; IDLE / STOP bit set x, 7 side 0 [7] ; START bit bitloop: - out pindirs, 1 ; 8 DATA bits + out pins, 1 ; 8 DATA bits jmp x--, bitloop [6] .wrap |
