1/1
Fusesoc - Read out inputs (gpio)
by jo58 on Apr 19, 2016 |
jo58
Posts: 7 Joined: Oct 31, 2015 Last seen: Jun 28, 2016 |
||
Hello,
I'm using a fusesoc system on an Altera Cyclone IV FPGA. I implemented a third gpio module to control different additional modules with a C-program. (This works fine.) Now I want to read out the input (one bit) of the gpio with the C-progam (and print it on the screen for example). How can this be done? Is there a simple C-function to read this input? Best regards, Jonathan |
RE: Fusesoc - Read out inputs (gpio)
by olof on Apr 19, 2016 |
olof
Posts: 218 Joined: Feb 10, 2010 Last seen: Dec 17, 2018 |
||
I got some sample code that I intended to use as some kind of driver/example, but never got around to clean it up. Since it's a pain to paste code into this forum I'll just give you a link to an archived copy https://www.dropbox.com/s/f12dy332tomo36w/gpio_driver.tar.gz?dl=0
Hope this helps, Olof |
RE: Fusesoc - Read out inputs (gpio)
by jo58 on Apr 29, 2016 |
jo58
Posts: 7 Joined: Oct 31, 2015 Last seen: Jun 28, 2016 |
||
Thanks, this helped a lot. It's working now.
|
1/1