circuitpython/ports/mimxrt10xx/common-hal/busio
KurtE 73f6b48676 [mimxrt (teensy) Allow Any GPIO pin for RS485 pin
The existing code was setup that allowed you to specify an RTS
pin to be used as an RS485 direction pin, however there are no
RTS pins that are exposed on any of the Teensy 4.x boards.

Instead Arduino code base allowed you to specify any GPIO pin to
work instead.  So I added the code in to facilitate this.

In addition the alternative code to wrap your own GPIO pin set high and low
around call(s) to uart.write() will not currently work, unless maybe you
fudge it and add your own delays as the write will return after the last
byte was pushed onto the UART’s hardware FIFO queue and as such if you
then immediately set the IO pin low, it will corrupt your output stream.

The code I added detects that you are setup to use the RS485 pin and
before it returns will wait for the UART’s Transfer complete status flag
to be set.
2022-04-27 11:26:08 -07:00
..
__init__.c Add initial MIMXRT10XX port 2020-01-06 21:08:49 +01:00
I2C.c common-hal I2C combined write_read 2022-01-31 22:03:30 -05:00
I2C.h mimxrt1011: enable -Werror=missing-prototypes 2021-11-12 19:30:47 -06:00
SPI.c Canonical C style for half_duplex = true/false 2022-02-08 23:13:22 -05:00
SPI.h Add-unidirectional-SPI 2020-05-01 13:15:38 -04:00
UART.c [mimxrt (teensy) Allow Any GPIO pin for RS485 pin 2022-04-27 11:26:08 -07:00
UART.h [mimxrt (teensy) Allow Any GPIO pin for RS485 pin 2022-04-27 11:26:08 -07:00