Forum Discussion
Altera_Forum
Honored Contributor
21 years agoRead from UART
Good morning! I´m a NIOSII starter and trying to get first results. My question: Why can´t i read anything from the UART? I can write to it, but i don´t receive anything or i receive and don´t ...
Altera_Forum
Honored Contributor
21 years agoi use these:
# include <stdio.h># include <stddef.h># include <string.h># include <fcntl.h># include <unistd.h># include "system.h"# include "sys/alt_alarm.h"# include "alt_types.h"# include "altera_avalon_pio_regs.h"# include "sys/alt_irq.h"# include "altera_avalon_uart.h" don´t think you need all of them, but my programs runs... no idea about NIOSI http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif