Using a dumb terminal (minicom) 115200 board No parity 8 bits 1 stop bit, no flow control (might have to exit minicom and start again for the flow control setting to take). What you type on the dumb terminal comes back.
chmod 666 /dev/ttyUSB0
picocom /dev/ttyUSB0 --baud 115200 --parity n --databits 8 --stopbits 1 --flow n
-
UART code based on https://github.com/dwelch67/raspberrypi/tree/master/uart02
-
Line editing based on https://github.com/antirez/linenoise
- static implementation
- numbers
- arithmetics
- <termios.h> musl
tcsetattr
- <unistd.h> musl
write
read
STDIN_FILENO
STDOUT_FILENO
- <stdio.h> implement/delete!?
printf
snprintf
- <string.h> musl
strlen
strcat
strncpy
strcmp