pwm.h typo: int16_t -> uint16_t (closes #109)

This commit is contained in:
Luke Wren 2021-02-11 11:52:02 +00:00 committed by graham sanderson
parent 539270feca
commit eb4023e263

View File

@ -279,7 +279,7 @@ static inline void pwm_set_gpio_level(uint gpio, uint16_t level) {
* \param slice_num PWM slice number
* \return Current value of PWM counter
*/
static inline int16_t pwm_get_counter(uint slice_num) {
static inline uint16_t pwm_get_counter(uint slice_num) {
valid_params_if(PWM, slice_num >= 0 && slice_num < NUM_PWM_SLICES);
return (pwm_hw->slice[slice_num].ctr);
}