Altera_Forum
Honored Contributor
16 years agoHelp with Nios ii
Hi
I'm a new user of the Nios II IDE. I'm currently trying to modify the SD card music player that came as one of the demos for my DE board. I'm trying to pause the system with the use of the sleep function. i'm using the follow code fragment. if (button_pressed) { count++; /// originally set to zero while (count%2==1) ////every odd pressed of the button will pause while every even / /////pressed will resume the execution of the code. { usleep(100); continue; //// should recheck the condition of the while loop } } However when the program enters the loop it stays there forever. :eek: Can some offer some help or suggestion?:confused: Thanks