On Tue, Sep 20, 2022 at 03:01:52PM +0300, Ilpo Järvinen wrote: > I don't think you can just move from one to another like that because DE > and RTS are not the same signal on these UARTs. So it's not going to be > compatible w/o additional effort anyway. > > Initially, I tried to add a flag for selecting between the HW one and > emulation but got overruled (you were among the opposing people ;-)). > ...IIRC, I tried to explain back then that those signals are not the > same with this HW. Right, I remember that discussion. :) I guess we can always retrofit that selection option if anyone needs it. Generally if hardware RS485 support is available, one doesn't want to use software emulation. stm32-usart.c originally only had hardware-driven Driver Enable and software emulation was added afterwards because the RTS pin is sometimes pinmuxed to some other function. But such use cases are probably rare. Thanks, Lukas