16 lines
504 B
Django/Jinja
16 lines
504 B
Django/Jinja
//
|
|
// WARNING: DO NOT EDIT THIS FILE
|
|
// This file has been generated from the target's JSON hardware description
|
|
//
|
|
|
|
{% set pwm_inputs = adc_inputs.inputs | selectattr('type', '==', 'STICK') | selectattr('pwm_channel', 'ne', none) | list %}
|
|
static const stick_pwm_input_t _PWM_inputs[] = {
|
|
{% for input in pwm_inputs %}
|
|
{
|
|
// ADC_INPUT_{{ input.type }}, {{ input.name }}
|
|
{{ input.pwm_channel }}, // channel
|
|
{{ '1 // inverted' if input.inverted else '0 // normal' }}
|
|
},
|
|
{% endfor %}
|
|
};
|