Hello,
I would like to control the LEDs on the PanelCard EVB, also the two switch buttons would be nice to use.
I'm used to work also with a nios II processor where I just had to use the address of leds and buttons to control them, but then there was no MMU. Now I don't know the address of a specific LED so that's causing me problems.
I've read something about mmap and ioremap, I assume this are two C-commands that I'll have to use to map the LED's original address to some absolute address? But I've no clue how I should use them in a C program. I do have read the manpage (not provided on my linux system, but online) but those weren't very helpful after all..
Does someone has some information about how to get the LEDs and switches working?
Thanks!

Re: LEDs
Just to avoid confusion: You would use ioremap() in kernel space and always mmap() in user space. For an example of using mmap()see the example program for io on your CD. It won't work as it was written for Portux, but just the pins for the LEDS are not correct.
Re: LEDs
So when I'm writing a simple application to control the leds, this is user space and I have to use mmap(). I'll check the example tomorrow since I don't have the CD with me now...
Thanks for the advice and the example!
Re: LEDs
Finally I had some time to try and test it, and as you said, the only thing I had to do is change the pins for the LEDs!! Quite easy when you know how to do it!
Thanks!