Forum Discussion
Altera_Forum
Honored Contributor
14 years agoHow to use the Uart driver with interrupts
Hi, I'm kind of confused, I'm more of an embedded guy, I rarely used drivers before except for the XMEGA and the drivers were much simpler, with better examples. I was wondering, how can I use ...
Altera_Forum
Honored Contributor
14 years agoOk, Interrupts should be enabled in alt_sys_init function which is automatically called?
Then I use printf("Hello from Nios II"). I should expect printf to be non-blocking since I use interrupts, but printf is blocking why is that? How can I make printf non-blocking? I double-checked everywhere, interrupts are properly connected, I can see interrupts raising in simulation but it seems that printf is implemented using a while loop... I'm confused