Forum Discussion
Altera_Forum
Honored Contributor
21 years agoSimple PIO application..
I'm using the Cyclone 1c12 Evaluation board, and I have linux running on it (either the orginal version or a version I compiled), and I see the example program for lighting up the 10 user leds, b...
Altera_Forum
Honored Contributor
21 years agoThere is another example driver for PIO buttons, which can be read by applications. You can start from that driver and implement the PIO LED as a character device, so that applications can write a char to it (you need to implement the write operation for LED, while what we implemented for buttons is the read operation).
Another way is to write the PIO regs directly from your application. This is not a clean solution, but simple and fast. Of course this is only possible under uClinux.