We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello, I have a problem with this code:
void test(void) { unsigned long time_start, time_diff; unsigned int x=2; time_start = timer_value; while (x<5) { time_diff = timer_value; if (time_diff-time_start >= 2ul) x=5; // printf("%X\n", time_diff-time_start); } }