From 77b94451ded0d720599b88635a311f509b7980a6 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 10 Apr 2017 17:28:15 -0400 Subject: [PATCH] avr: Fix irqstatus_t typo in gpio_pwm_setup The flags and cs variables should be uint8_t not irqstatus_t. Signed-off-by: Kevin O'Connor --- src/avr/gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/avr/gpio.c b/src/avr/gpio.c index 69114f05..7a9c5c7c 100644 --- a/src/avr/gpio.c +++ b/src/avr/gpio.c @@ -210,7 +210,7 @@ gpio_pwm_setup(uint8_t pin, uint32_t cycle_time, uint8_t val) if (READP(pwm_pins[chan]) != pin) continue; const struct gpio_pwm_info *p = &pwm_regs[chan]; - irqstatus_t flags = READP(p->flags), cs; + uint8_t flags = READP(p->flags), cs; if (flags & GP_AFMT) { switch (cycle_time) { case 0 ... 8*510L - 1: cs = 1; break;