Forum Discussion

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

na_pio

When I read some driver code of led, I find the structrue na_pio was used, but I can't see any clew of including the relative .h file, so I wander why does this structrue can be used freely when writing drivers?

2 Replies

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

    take a look at your nios2_system.h. i guess you are including this file. Look for:

    #ifndef __ASSEMBLY__# include <asm/pio_struct.h># endif
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by helmchen@Oct 14 2006, 04:33 PM

    take a look at your nios2_system.h. i guess you are including this file. look for:

    #ifndef __assembly__# include <asm/pio_struct.h># endif

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=18682)</div>

    --- Quote End ---

    yes, I see..Thank you so much.