Forum Discussion
Altera_Forum
Honored Contributor
21 years agouart hal questions ?
1. how can I open the uart for non blocking read ? 2. how can I do "blocking output" with "non blocking read" ? ( without modifying altera_avalon_uart.c) 3. how can I disable RTS/CTS in sof...
Altera_Forum
Honored Contributor
21 years agoi think open is in <fcntl.h>, don't know if you need all, just a copy from my file
# include <sys/ioctl.h> // open ???# include <fcntl.h># include<string.h> // rand(),srand()# include<stdlib.h> // write(),read(),usleep()# include<unistd.h> # include <priv/alt_file.h># include "altera_avalon_uart_regs.h"# include "altera_avalon_uart.h" # include<time.h>