Skip to content

Commit

Permalink
fixes #143 simulated serial half duplex
Browse files Browse the repository at this point in the history
  • Loading branch information
TG9541 committed Jan 19, 2018
1 parent ced3961 commit c18641f
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 @@ -150,9 +150,13 @@
.include "linkopts.inc"

; console configuration: check if TX simulation has priority over UART
.ifeq HAS_TXSIM - HAS_TXUART
.ifge HAS_TXSIM - HAS_TXUART
.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 c18641f

Please sign in to comment.