Forum Discussion
Altera_Forum
Honored Contributor
20 years agoAn easier way to do this is to just include altera_avalon_pio.h, and add the compiler flags:
-I'$(SOPC_KIT_NIOS2)'/components/altera_avalon_pio/inc -I$(PREFIX)/include/cyg/hal. That way you can continue to use the same macros you would have used in the Altera HAL or MicroC/OS-II. I thought that's what you had previously said you were doing. Also, I just noticed that you were adding: -I'$(SOPC_KIT_NIOS2)'/components/altera_avalon_lcd_16207/inc -I$(PREFIX)/include/cyg/hal to get the LCD working. This should not be necessary.