Forum Discussion
Altera_Forum
Honored Contributor
16 years agoNIOS-II Software Writing
I have write the Nios-II Code (Below) with the help of ready made examples. please someone clarify the bold underline portion of the code what acutely they are doing.or from where i can get the h...
Altera_Forum
Honored Contributor
16 years agoSentences that have# prefix are called pre-proccessor directives. If you have included in your SoPC Builder system a LCD controller, the system.h file defines LCD_DISPLAY_BASE macro , so code below conditional compile sentence is included, if macro is not defined, code is not included.
# ifdef LCD_DISPLAY_BASE staticvoid lcd_init( FILE *lcd ) { fprintf(lcd, "%c%s Video Coding ", ESC, ESC_TOP_LEFT); # endif staticvoid initial_message() { printf("* Hello from Nios II! *\n"); } # endif