Files
edgetx-gx12/radio/util/hw_defs/hal_pwm_sticks.jinja
T

12 lines
405 B
Django/Jinja

//
// WARNING: DO NOT EDIT THIS FILE
// This file has been generated from the target's JSON hardware description
//
#pragma once
{% set pwm_sticks = adc_inputs.inputs | selectattr('type', '==', 'STICK') | selectattr('pwm_channel', 'ne', none) | list %}
{% for gpio, inputs in pwm_sticks | groupby('gpio') %}
#define PWM_{{ gpio }}_PINS ({{ inputs | map(attribute='pin') | join(' | ') }})
{% endfor %}