Browse Source

AP_HAL_ChibiOS: add new HAL_PWM_COUNT define

zr-v5.1
Tom Pittenger 4 years ago committed by Tom Pittenger
parent
commit
da74d755d0
  1. 1
      libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py

1
libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py

@ -1374,6 +1374,7 @@ def write_PWM_config(f): @@ -1374,6 +1374,7 @@ def write_PWM_config(f):
if p.type not in pwm_timers:
pwm_timers.append(p.type)
f.write('#define HAL_PWM_COUNT %u\n' % len(pwm_out))
if not pwm_out and not alarm:
print("No PWM output defined")
f.write('''

Loading…
Cancel
Save