View difference between Paste ID: msbg2N0D and BRANNVWa
SHOW: | | - or go back to the newest paste.
1
void delayus (uint32_t microseconds)
2
{
3
    uint32_t overflows;
4
    uint32_t partial;
5
6-
    overflows = microseconds/65535;
6+
    overflows = microseconds/65536;
7-
    partial = microseconds - overflow * 65535;
7+
    //partial = microseconds - overflow * 65536;  
8
    partial = microseconds % 65536;
9
	
10
}