Skip to content

Commit

Permalink
add SOFTRX=pin and SOFTTX=pin options to allow the pins to be selecte…
Browse files Browse the repository at this point in the history
…d when using SOFT_UART=1

pin_defs.h was getting large and ugly, so split out the SOFTRX/SOFTRX/RS485 into separate .h files
  • Loading branch information
WestfW committed Jun 22, 2021
1 parent 6e586f3 commit f4fd294
Show file tree
Hide file tree
Showing 4 changed files with 2,282 additions and 1,436 deletions.
10 changes: 10 additions & 0 deletions optiboot/bootloaders/optiboot/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,16 @@ SOFT_UART_CMD = -DSOFT_UART=1
dummy = FORCE
endif
endif
HELPTEXT += "Option SOFTTX=B5 - pin for software UART xmit \n"
ifdef SOFTTX
SOFT_UART_CMD += -DSOFTTX=$(SOFTTX)
dummy = FORCE
endif
HELPTEXT += "Option SOFTRX=B6 - pin for software UART receive\n"
ifdef SOFTRX
SOFT_UART_CMD += -DSOFTRX=$(SOFTRX)
dummy = FORCE
endif

HELPTEXT += "Option SINGLESPEED=1 - do not use U2X mode on UART\n"
ifdef SINGLESPEED
Expand Down
Loading

0 comments on commit f4fd294

Please sign in to comment.