Avoid using SSP 1.2.0-beta for RS485: There is a bug in the uart driver that triggers the callback on send complete two bytes too early, every second time you send, so you can't use it for send/receive switching. There is a work-around but you have to poll a peripheral register. In 1.2.0 release this is fixed, but it introduces a small delay until the driver starts to send. By the way: A port-action for RS485 send/receive-switching directly from within the driver would be very useful, RTS/CTS does not do this.
↧