machine: add I2C pin comments

Similar to PWM, I2C can only be used on some pins. To automatically
generate this information per board, we need to add extra comments that
can then be interpreted by doc-gen for the tinygo.org website.
This commit is contained in:
Ayke van Laethem
2025-07-10 08:39:24 +02:00
committed by Ron Evans
parent e454ad1b61
commit b3da00ac1f
7 changed files with 84 additions and 80 deletions
+18 -18
View File
@@ -5,24 +5,24 @@ package machine
// RP2350B has additional pins.
const (
GPIO30 Pin = 30 // peripherals: PWM7 channel A
GPIO31 Pin = 31 // peripherals: PWM7 channel B
GPIO32 Pin = 32 // peripherals: PWM8 channel A
GPIO33 Pin = 33 // peripherals: PWM8 channel B
GPIO34 Pin = 34 // peripherals: PWM9 channel A
GPIO35 Pin = 35 // peripherals: PWM9 channel B
GPIO36 Pin = 36 // peripherals: PWM10 channel A
GPIO37 Pin = 37 // peripherals: PWM10 channel B
GPIO38 Pin = 38 // peripherals: PWM11 channel A
GPIO39 Pin = 39 // peripherals: PWM11 channel B
GPIO40 Pin = 40 // peripherals: PWM8 channel A
GPIO41 Pin = 41 // peripherals: PWM8 channel B
GPIO42 Pin = 42 // peripherals: PWM9 channel A
GPIO43 Pin = 43 // peripherals: PWM9 channel B
GPIO44 Pin = 44 // peripherals: PWM10 channel A
GPIO45 Pin = 45 // peripherals: PWM10 channel B
GPIO46 Pin = 46 // peripherals: PWM11 channel A
GPIO47 Pin = 47 // peripherals: PWM11 channel B
GPIO30 Pin = 30 // peripherals: PWM7 channel A, I2C1 SDA
GPIO31 Pin = 31 // peripherals: PWM7 channel B, I2C1 SCL
GPIO32 Pin = 32 // peripherals: PWM8 channel A, I2C0 SDA
GPIO33 Pin = 33 // peripherals: PWM8 channel B, I2C0 SCL
GPIO34 Pin = 34 // peripherals: PWM9 channel A, I2C1 SDA
GPIO35 Pin = 35 // peripherals: PWM9 channel B, I2C1 SCL
GPIO36 Pin = 36 // peripherals: PWM10 channel A, I2C0 SDA
GPIO37 Pin = 37 // peripherals: PWM10 channel B, I2C0 SCL
GPIO38 Pin = 38 // peripherals: PWM11 channel A, I2C1 SDA
GPIO39 Pin = 39 // peripherals: PWM11 channel B, I2C1 SCL
GPIO40 Pin = 40 // peripherals: PWM8 channel A, I2C0 SDA
GPIO41 Pin = 41 // peripherals: PWM8 channel B, I2C0 SCL
GPIO42 Pin = 42 // peripherals: PWM9 channel A, I2C1 SDA
GPIO43 Pin = 43 // peripherals: PWM9 channel B, I2C1 SCL
GPIO44 Pin = 44 // peripherals: PWM10 channel A, I2C0 SDA
GPIO45 Pin = 45 // peripherals: PWM10 channel B, I2C0 SCL
GPIO46 Pin = 46 // peripherals: PWM11 channel A, I2C1 SDA
GPIO47 Pin = 47 // peripherals: PWM11 channel B, I2C1 SCL
)
// Analog pins on 2350b.