Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 
avatar of Mo SAEED

Mo SAEED

Mo SAEED has asked 0 questions and find answers to 1 problems.

Stats

11
EtPoint
1
Vote count
0
questions
1
answers

About

#define u8DAY   ((unsigned char)0)
#define u8NIGHT ((unsigned char)1)
unsigned char u8DayStatus;

void main (void)
{
    while(1)
    {
        while(u8DayStatus == u8DAY)
        {
           static unsinged long u32CodingCounter;
           u32CodingCounter++;
        }
        u32CodingCounter=0;
        while(u8DayStatus == u8NIGHT)
        {
           static unsinged long u32SleepingCounter;
           u32CodingCounter++;
        }
        u32SleepingCounter=0;
    }
}

Mo SAEED questions