Co-authored-by: 3djc <lesitewebdejc@hotmail.com> Co-authored-by: Peter Feerick <peter.feerick@gmail.com> Co-authored-by: philmoz <phil.a.mitchell@gmail.com>
24 lines
728 B
Django/Jinja
24 lines
728 B
Django/Jinja
//
|
|
// WARNING: DO NOT EDIT THIS FILE
|
|
// This file has been generated from the target's JSON hardware description
|
|
//
|
|
|
|
{% set main_inputs = adc_inputs.inputs | selectattr('type', '==', 'STICK') | list %}
|
|
{% set flex_inputs = adc_inputs.inputs | selectattr('type', '==', 'FLEX') | list %}
|
|
|
|
struct legacy_input_t {
|
|
const char* legacy;
|
|
uint16_t src_raw;
|
|
};
|
|
|
|
static const legacy_input_t _legacy_inputs[] = {
|
|
{% for input in main_inputs %}
|
|
{% set li = legacy_inputs[input.name] %}
|
|
{ "{{ li.yaml }}", MIXSRC_FIRST_STICK + {{ loop.index0 }} },
|
|
{% endfor %}
|
|
{% for input in flex_inputs %}
|
|
{% set li = legacy_inputs[input.name] %}
|
|
{ "{{ li.yaml }}", MIXSRC_FIRST_POT + {{ loop.index0 }} },
|
|
{% endfor %}
|
|
};
|