10 years, 1 month ago.

What exactly has changed/is fixed in the serial port for LPC1768 in the latest build?

Well the title says it all

What exactly has changed/is fixed in the serial port for LPC1768 in the latest build?

regards wvd_vegt

1 Answer

10 years, 1 month ago.

After a few accidents and changes, some old functionality was restored in the writable function which were removed when software flow control was added. (Then it was removed by a change in the gpio_api, and added again).

Changes are two-fold: First a counter has been re-added again, which kinda checks how many bytes are in the FIFO (it doesn't work perfectly, but can't be helped since NXP forgot to add a check if the FIFO is full), this allows the FIFO to be used a bit better.

Second: After the software flow control was added, writable checked if it was done writing before returning true. Now it is modified to only check that if flow control is enabled. If it isn't it checks if a new byte can be written into the hold register, which is the same as what generates a TxIrq.