Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com> Co-authored-by: Peter Feerick <5500713+pfeerick@users.noreply.github.com>
12 lines
405 B
Django/Jinja
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 %}
|