Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
13 years ago

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:

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Ooops ?!?!?

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

    Moreover: search the Wikis for tricks and tips.

    -Michael