- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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, but I was wondering how to get an application like that working while running linux? I have a simple project that needs PIO acces and FTP access.
Thanks in advance!Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There 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.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you, I wasnt sure that uClinux would allow me to directly access the hardware registers. Thats good news, I dont need a driver, only one application will be accesing this hardware at one time. Thanks.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page