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 agoWhy don't you want to use for(;;) or while(1) ?
I'm not sure about what the CPU is doing after exiting main. It should either be stuck in an infinite loop, if it exists, or start to execute random code, which could be a bad thing. The ISRs still run though, as long as they aren't disabled.