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 <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2017-04-10 17:28:15 -04:00
parent ca6245e974
commit 77b94451de
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ gpio_pwm_setup(uint8_t pin, uint32_t cycle_time, uint8_t val)
if (READP(pwm_pins[chan]) != pin) if (READP(pwm_pins[chan]) != pin)
continue; continue;
const struct gpio_pwm_info *p = &pwm_regs[chan]; 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) { if (flags & GP_AFMT) {
switch (cycle_time) { switch (cycle_time) {
case 0 ... 8*510L - 1: cs = 1; break; case 0 ... 8*510L - 1: cs = 1; break;