1 # SPDX-FileCopyrightText: 2025 Bernhard Bablok
 
   3 # Copied and adapted from pico_u2if.py
 
   4 # Copyright: 2021 Melissa LeBlanc-Williams for Adafruit Industries
 
   6 # SPDX-License-Identifier: MIT
 
   7 """Pin definitions for the Raspberry Pi Pico running u2if firmware"""
 
   8 from adafruit_blinka.microcontroller.rp2040_u2if import pin
 
  42 # Pi names left side (top down)
 
  62 # right side (top down)
 
  81 # specials (INT: internal connection to N100-chip, EXT: on GPIO-pins)
 
  84 UART_RX_EXT = GP20  # GPIO14
 
  85 UART_RX_EXT = GP21  # GPIO15
 
  95 # Pi defaults (I2C0 is also mapped to the ID-pins GPIO0/GPIO1 aka GP16/GP17)
 
  96 SDA = SDA0 = GP28  # GPIO2
 
  97 SCL = SCL0 = GP29  # GPIO3
 
  99 # other choices have more conflicts
 
 103 # Pico-SPI0 (Radxa-X4 does not map Pi-SPI1)
 
 110 # Pi (SPI0) defaults (Radxa-X4 maps Pi-SPI0 to Pico-SPI1)
 
 111 SCLK = SCK = SCLK1 = SCK1 = GP10
 
 115 # access u2if via pin instance to open for specifc VID/PID
 
 116 # pylint:disable = protected-access
 
 117 pin.GP0._u2if_open_hid(0xCAFF, 0x4005)