Skip to content

Commit

Permalink
Merge pull request #147 from TG9541/dual-uart
Browse files Browse the repository at this point in the history
fixes #143 simulated serial full duplex
  • Loading branch information
TG9541 authored Jan 19, 2018
2 parents 4d46d6d + 25496a0 commit 8f56ecc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion forth.asm
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,11 @@

; console configuration: check if TX simulation has priority over UART
.ifge HAS_TXSIM - HAS_TXUART
CONSOLE_HALF_DUPLEX = 1 ; RX/TX simulation always behaves like half duplex
.ifeq PNTX-PNRX
CONSOLE_HALF_DUPLEX = 1 ; single wire RX/TX simulation is half duplex
.else
CONSOLE_HALF_DUPLEX = 0 ; RX/TX simulation supports full duplex
.endif
.else
CONSOLE_HALF_DUPLEX = HALF_DUPLEX ; use hardware UART settings
.endif
Expand Down

0 comments on commit 8f56ecc

Please sign in to comment.