c code for nios II