Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

How 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 main :

int main()

{

// ISR registration ...

for(;;);

}

I don't want to use the for(;;) ...

btw - what is the meanning of "Program never exits" ?

thank you ...

16 Replies