Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years, 1 month ago.
Why is SerialHalfDuplex still unsupported ?
I can not understand why this class (or simply "Half Duplex") is still unsupported on mbed. Half duplex is needed for some devices but it's too difficult to support it on current mbed serial library. There are some ARM chips that includes half duplex mode in it's UART. But now, it's also difficult to use it with mbed library for compatibility.
I hope to add some functionality in serial.h API and hal to support half duplex officially. And modify Tx irq to support both "empty buffer" and "all data sent". "empty buffer" should be used for sending data continuously. "all data sent" should be used for switching from Tx to Rx on half duplex.