I am designing a Modbus adapter card that will attach to an existing async port (TX, RX pins only). The RS-485 transceivers all have pins to control direction (for half-duplex operation). The data sheet and appnotes show circuits that route TX and RX separately from a microcontroller to the transceiver with an extra pin (or two) to control direction. While I am prototyping with the MAX485, there are numerous other transceivers available and their datasheets are similar to the MAX485 datasheet.
In looking at the STM32F datasheets, the USART has a half-duplex mode that only uses TX and leaves RX available as a GPIO pin. Because the ASYNC port is already defined (and in use on at least one shipping product), it looks like I could use RX as the DE/RE (direction) pin. It requires driver support to know when the transmission is done to make sure the transceiver is in Receive mode but that looks pretty easy.
This all makes sense on paper though one result is that the Data In (DI) and Receiver Out (RO) pins are tied together. This seems obvious but I have not seen an example in the datasheets, appnotes or general internet describing that configuration. I will be prototyping it when I get the parts but am hoping for some input/advice ahead of that. I've attached my preliminary circuit. Comments appreciated.