Main Function

Explanation

This is how a main() function should look like.

int main(void){
    /* Initialize the system    */
    iniconf();
 
    /* Initialize goblal variables    */
    count = 0;
    ticks = 0;
    tone = 0;
 
    while(1){
        delay(50);
        PORTB = (PORTB & 0x0f) | 0xf0; //SETUPNIB;
        delay(50);
        PORTB = (PORTB & 0x0f);        //RESETUPNIB;
    }
}
page_revision: 0, last_edited: 1209612656|%e %b %Y, %H:%M %Z (%O ago)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License