3
माइक्रोकंट्रोलर स्लीप रेस कंडीशन
निम्नलिखित कोड को चलाने वाले एक माइक्रोकंट्रोलर को देखते हुए: volatile bool has_flag = false; void interrupt(void) //called when an interrupt is received { clear_interrupt_flag(); //clear interrupt flag has_flag = true; //signal that we have an interrupt to process } int main() { while(1) { if(has_flag) //if we had an …