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