IRQ driven RX on UART0
See examples/terminal/ for usage
This commit is contained in:
parent
64a1e5598b
commit
9d80dc441f
7 changed files with 217 additions and 1 deletions
|
|
@ -45,8 +45,9 @@ long _write_r(struct _reent *r, int fd, const char *ptr, int len )
|
|||
/* syscall implementation for stdio read from UART
|
||||
|
||||
at the moment UART functionality is all still in the binary SDK
|
||||
but there is support for IRQ driven UART0 RX in extras/serial-driver
|
||||
*/
|
||||
long _read_r( struct _reent *r, int fd, char *ptr, int len )
|
||||
long __attribute__((weak)) _read_r( struct _reent *r, int fd, char *ptr, int len )
|
||||
{
|
||||
for(int i = 0; i < len; i++) {
|
||||
char ch;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue