micropython/ports/pic16bit
Damien George 38e7b842c6 ports: Implement simple write polling for stdout.
This is a best-effort implementation of write polling.  It's difficult to
do correctly because if there are multiple output streams (eg UART and USB
CDC) then some may not be writeable while others are.  A full solution
should also have a return value from mp_hal_stdout_tx_strn(), returning the
number of bytes written to the stream(s).  That's also hard to define.

The renesas-ra and stm32 ports already implement a similar best-effort
mechanism for write polling.

Fixes issue #11026.

Signed-off-by: Damien George <damien@micropython.org>
2023-03-23 13:51:17 +11:00
..
Makefile all: Use += rather than = everywhere for CFLAGS/LDFLAGS/LIBS. 2022-10-11 23:17:41 +11:00
board.c
board.h
main.c pic16bit: Use 1 byte for qstr hash len and include header to fix build. 2022-06-07 16:55:18 +10:00
modpyb.c all: Remove third argument to MP_REGISTER_MODULE. 2022-06-02 16:31:37 +10:00
modpyb.h
modpybled.c py/obj: Convert make_new into a mp_obj_type_t slot. 2022-09-19 19:06:15 +10:00
modpybswitch.c py/obj: Convert make_new into a mp_obj_type_t slot. 2022-09-19 19:06:15 +10:00
mpconfigport.h pic16bit/pic16bit_mphal: Use MP_REGISTER_ROOT_POINTER(). 2022-07-18 13:50:34 +10:00
pic16bit_mphal.c ports: Implement simple write polling for stdout. 2023-03-23 13:51:17 +11:00
pic16bit_mphal.h
qstrdefsport.h
unistd.h