# Auto-generated by generate_boards.py — do not edit manually
# To regenerate: python esphome/components/rp2/generate_boards.py <arduino-pico-path>

# arduino-pico maps pins >= {{ cyw43_gpio_offset }} to CYW43 wireless chip GPIOs
CYW43_GPIO_OFFSET = {{ cyw43_gpio_offset }}
CYW43_MAX_GPIO = {{ cyw43_max_gpio }}
DEFAULT_MAX_PIN = {{ default_max_pin }}

RP2_BASE_PINS = {}

RP2_BOARD_PINS = {
{%- for name, pins in board_pins %}
    {{ name | repr }}: {{ pins | format_pins }},
{%- endfor %}
}

# RP2350 boards carry a {{ rp2350_die_key | repr }} key holding the die letter:
# 'A' for the RP2350A (GPIO 0-29, 5 ADC channels), 'B' for the RP2350B
# (GPIO 0-47, 9 ADC channels), and None when the die is a build-time menu
# choice and so is not known here. The key is absent on non-RP2350 boards.
BOARDS = {
{%- for name, info in boards %}
    {{ name | repr }}: {
    {%- for key, value in info.items() %}
        {{ key | repr }}: {{ value | repr }},
    {%- endfor %}
    },
{%- endfor %}
}

# Deprecated: use RP2_BASE_PINS / RP2_BOARD_PINS instead. Kept as back-compat
# aliases so external custom components / tooling that imported the legacy
# names via the ``rp2040`` package alias keep working.
# Scheduled for removal in 2027.7.0.
RP2040_BASE_PINS = RP2_BASE_PINS
RP2040_BOARD_PINS = RP2_BOARD_PINS
