blob: 580a9a84a0fbfbe7895fd8b6f3243b4e12ef7db0 [file] [log] [blame]
void InitTimers ();
void InitTimersSafe (); //doesn't init timers responsible for time keeping functions
void pwmWrite (uint8_t pin, uint8_t val);
void pwmWriteHR (uint8_t pin, uint16_t val); //accepts a 16 bit value and maps it down to the timer for maximum resolution
bool SetPinFrequency (int8_t pin, uint32_t frequency);
bool SetPinFrequencySafe(int8_t pin, uint32_t frequency); //does not set timers responsible for time keeping functions
float GetPinResolution(uint8_t pin); //gets the PWM resolution of a pin in base 2, 0 is returned if the pin is not connected to a timer