Forum Discussion
Altera_Forum
Honored Contributor
15 years agoHow to set Idle state ?
Hello, I'm a new user so be gentle :) I need to create an Idle state, I have ISR called by the clock every 1 ms, and I need to get rid of the for(;;) loop in the main function this is my...
Altera_Forum
Honored Contributor
15 years agoI think that by "sleep" mode, donq meant a low power mode where the CPU would shut down until the next interrupt. This doesn't exist on Nios II.
The usleep function keeps the CPU busy by executing the same instruction again and again until the required delay is achieved. It should be renamed uwake ;)