I'm a beginner in the Nios II System. When I learn the examples provided by Nios II IDE, I always see this type's function : IOWR_ALTERA_AVALON_PIO_DATA(LED_PIO_BASE, count); The function appears in the example "count_binary".
But I can't find out the detailed information about this type function , only find these three messages: #define IOWR_ALTERA_AVALON_PIO_DATA(base, data) IOWR(base, 0, data)
#define IOWR(BASE, REGNUM, DATA) \ __builtin_stwio (__IO_CALC_ADDRESS_NATIVE ((BASE), (REGNUM)), (DATA))
#define __IO_CALC_ADDRESS_NATIVE(BASE, REGNUM) \ ((void *)(((alt_u8*)BASE) + ((REGNUM) * (SYSTEM_BUS_WIDTH/8))))
But I still don't understand the meanning of this function. Please tell me how can I find out the detailed information about these types' function?