} else { | } else { | ||||
count = 0xFFFFFFFD; | count = 0xFFFFFFFD; | ||||
} | } | ||||
if (frequency < 1) frequency = 1; // minimum is 1 Hz | |||||
usec = (float)500000.0 / (float)frequency; | usec = (float)500000.0 / (float)frequency; | ||||
config = portConfigRegister(pin); | config = portConfigRegister(pin); | ||||