Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
778 Views

tutorial on uClinux hardware peripheral access ?

Hello I would like to make a simple program to use LEDs, 7seg... running under uClinux on my 3c120 devboard. But i don't know how to do that , i have already realized some Nios II programs with eclipse for NiosII dowload .elf ...used HAL drivers to control my PIO. But it's not the same under uClinux. 

Does somebody know how to do that or know where I can found a tutorial. 

Thanks. 

:confused:
0 Kudos
3 Replies
Altera_Forum
Honored Contributor I
35 Views

You'll need to write a Linux device driver, userspace won't be allowed to access IO locations. 

Any book on Linux device drivers should do :-)
Altera_Forum
Honored Contributor I
35 Views

Thanks i will try.  

 

No exemple on altera wiki?
Altera_Forum
Honored Contributor I
35 Views

Ooops ?!?!?  

 

The NIOS Linux distribution comes with lots of device drivers in source code. 

 

Moreover: search the Wikis for tricks and tips.  

 

-Michael
Reply