Forum Discussion
Altera_Forum
Honored Contributor
15 years agoThanks for the quick reply !! Well, thats a example .c file didint knew that would be a problem. But i don't quite understand what you mean by putting it int main(), if I define alt_avalon_spi_command () somewhere else than in main(); the code will not be accepted as then it will not reconise functions as IOWR_ALTERA_AVALON_SPI_CONTROL(base); I dont fully understandt the alt_avalon_spi_command(), although i have read the software reference, could you maybe give me a example CTRL+C, CTRL+V of my code by what you meant by putting the code inside main()... I have tried it but it didn't work for me...