Skip to content

Commit

Permalink
microcontrollers: auto-generate a list of available pins
Browse files Browse the repository at this point in the history
This can simply be updated using `make` in the doc-gen directory.
  • Loading branch information
aykevl authored and deadprogram committed Jul 26, 2022
1 parent 5d1099f commit 0710c6d
Show file tree
Hide file tree
Showing 76 changed files with 2,796 additions and 8 deletions.
75 changes: 75 additions & 0 deletions content/docs/reference/microcontrollers/arduino-mega1280.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,81 @@ Note: the AVR backend of LLVM is still experimental so you may encounter bugs.
| PWM | YES | YES |
| USBDevice | NO | NO |

## Pins

| Pin | Hardware pin | Alternative names |
| ----------------- | ------------ | ----------------- |
| `A0` | `PF0` | `ADC0` |
| `A1` | `PF1` | `ADC1` |
| `A2` | `PF2` | `ADC2` |
| `A3` | `PF3` | `ADC3` |
| `A4` | `PF4` | `ADC4` |
| `A5` | `PF5` | `ADC5` |
| `A6` | `PF6` | `ADC6` |
| `A7` | `PF7` | `ADC7` |
| `A8` | `PK0` | `ADC8` |
| `A9` | `PK1` | `ADC9` |
| `A10` | `PK2` | `ADC10` |
| `A11` | `PK3` | `ADC11` |
| `A12` | `PK4` | `ADC12` |
| `A13` | `PK5` | `ADC13` |
| `A14` | `PK6` | `ADC14` |
| `A15` | `PK7` | `ADC15` |
| `D0` | `PE0` | |
| `D1` | `PE1` | |
| `D2` | `PE4` | |
| `D3` | `PE5` | |
| `D4` | `PG5` | |
| `D5` | `PE3` | |
| `D6` | `PH3` | |
| `D7` | `PH4` | |
| `D8` | `PH5` | |
| `D9` | `PH6` | |
| `D10` | `PB4` | |
| `D11` | `PB5` | |
| `D12` | `PB6` | |
| `D13` | `PB7` | `LED` |
| `D14` | `PJ1` | |
| `D15` | `PJ0` | |
| `D16` | `PH1` | |
| `D17` | `PH0` | |
| `D18` | `PD3` | |
| `D19` | `PD2` | |
| `D20` | `PD1` | |
| `D21` | `PD0` | |
| `D22` | `PA0` | |
| `D23` | `PA1` | |
| `D24` | `PA2` | |
| `D25` | `PA3` | |
| `D26` | `PA4` | |
| `D27` | `PA5` | |
| `D28` | `PA6` | |
| `D29` | `PA7` | |
| `D30` | `PC7` | |
| `D31` | `PC6` | |
| `D32` | `PC5` | |
| `D33` | `PC4` | |
| `D34` | `PC3` | |
| `D35` | `PC2` | |
| `D36` | `PC1` | |
| `D37` | `PC0` | |
| `D38` | `PD7` | |
| `D39` | `PG2` | |
| `D40` | `PG1` | |
| `D41` | `PG0` | |
| `D42` | `PL7` | |
| `D43` | `PL6` | |
| `D44` | `PL5` | |
| `D45` | `PL4` | |
| `D46` | `PL3` | |
| `D47` | `PL2` | |
| `D48` | `PL1` | |
| `D49` | `PL0` | |
| `D50` | `PB3` | |
| `D51` | `PB2` | |
| `D52` | `PB1` | |
| `D53` | `PB0` | |

## Machine Package Docs

[Documentation for the machine package for the Arduino Mega 1280](../machine/arduino-mega1280)
Expand Down
75 changes: 75 additions & 0 deletions content/docs/reference/microcontrollers/arduino-mega2560.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,81 @@ Note: the AVR backend of LLVM is still experimental so you may encounter bugs.
| PWM | YES | Not yet |
| USBDevice | NO | NO |

## Pins

| Pin | Hardware pin | Alternative names |
| ----------------- | ------------ | ----------------- |
| `A0` | `PF0` | `ADC0` |
| `A1` | `PF1` | `ADC1` |
| `A2` | `PF2` | `ADC2` |
| `A3` | `PF3` | `ADC3` |
| `A4` | `PF4` | `ADC4` |
| `A5` | `PF5` | `ADC5` |
| `A6` | `PF6` | `ADC6` |
| `A7` | `PF7` | `ADC7` |
| `A8` | `PK0` | `ADC8` |
| `A9` | `PK1` | `ADC9` |
| `A10` | `PK2` | `ADC10` |
| `A11` | `PK3` | `ADC11` |
| `A12` | `PK4` | `ADC12` |
| `A13` | `PK5` | `ADC13` |
| `A14` | `PK6` | `ADC14` |
| `A15` | `PK7` | `ADC15` |
| `D0` | `PE0` | `UART_RX_PIN`, `UART0_RX_PIN` |
| `D1` | `PE1` | `UART_TX_PIN`, `UART0_TX_PIN` |
| `D2` | `PE4` | |
| `D3` | `PE5` | |
| `D4` | `PG5` | |
| `D5` | `PE3` | |
| `D6` | `PH3` | |
| `D7` | `PH4` | |
| `D8` | `PH5` | |
| `D9` | `PH6` | |
| `D10` | `PB4` | |
| `D11` | `PB5` | |
| `D12` | `PB6` | |
| `D13` | `PB7` | `LED` |
| `D14` | `PJ1` | `UART3_TX_PIN` |
| `D15` | `PJ0` | `UART3_RX_PIN` |
| `D16` | `PH1` | `UART2_TX_PIN` |
| `D17` | `PH0` | `UART2_RX_PIN` |
| `D18` | `PD3` | `UART1_TX_PIN` |
| `D19` | `PD2` | `UART1_RX_PIN` |
| `D20` | `PD1` | |
| `D21` | `PD0` | |
| `D22` | `PA0` | |
| `D23` | `PA1` | |
| `D24` | `PA2` | |
| `D25` | `PA3` | |
| `D26` | `PA4` | |
| `D27` | `PA5` | |
| `D28` | `PA6` | |
| `D29` | `PA7` | |
| `D30` | `PC7` | |
| `D31` | `PC6` | |
| `D32` | `PC5` | |
| `D33` | `PC4` | |
| `D34` | `PC3` | |
| `D35` | `PC2` | |
| `D36` | `PC1` | |
| `D37` | `PC0` | |
| `D38` | `PD7` | |
| `D39` | `PG2` | |
| `D40` | `PG1` | |
| `D41` | `PG0` | |
| `D42` | `PL7` | |
| `D43` | `PL6` | |
| `D44` | `PL5` | |
| `D45` | `PL4` | |
| `D46` | `PL3` | |
| `D47` | `PL2` | |
| `D48` | `PL1` | |
| `D49` | `PL0` | |
| `D50` | `PB3` | |
| `D51` | `PB2` | |
| `D52` | `PB1` | |
| `D53` | `PB0` | |

## Machine Package Docs

[Documentation for the machine package for the Arduino Mega 2560](../machine/arduino-mega2560)
Expand Down
29 changes: 29 additions & 0 deletions content/docs/reference/microcontrollers/arduino-mkr1000.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,35 @@ The [Arduino MKR1000](https://store.arduino.cc/arduino-mkr1000-wifi) is a very s
| PWM | YES | YES |
| USBDevice | YES | YES |

## Pins

| Pin | Hardware pin | Alternative names |
| ----------------- | ------------ | ----------------- |
| `D0` | `PA22` | |
| `D1` | `PA23` | |
| `D2` | `PA10` | `I2S_SCK_PIN` |
| `D3` | `PA11` | |
| `D4` | `PB10` | |
| `D5` | `PB11` | |
| `D6` | `PA20` | `LED` |
| `D7` | `PA21` | |
| `D8` | `PA16` | `SPI0_SDO_PIN` |
| `D9` | `PA17` | `SPI0_SCK_PIN` |
| `D10` | `PA19` | `SPI0_SDI_PIN` |
| `D11` | `PA08` | `SDA_PIN` |
| `D12` | `PA09` | `SCL_PIN` |
| `D13` | `PB23` | `RX0`, `UART_RX_PIN` |
| `D14` | `PB22` | `TX1`, `UART_TX_PIN` |
| `A0` | `PA02` | |
| `A1` | `PB02` | |
| `A2` | `PB03` | |
| `A3` | `PA04` | |
| `A4` | `PA05` | |
| `A5` | `PA06` | |
| `A6` | `PA07` | `I2S_SD_PIN` |
| `USBCDC_DM_PIN` | `PA24` | |
| `USBCDC_DP_PIN` | `PA25` | |

## Machine Package Docs

[Documentation for the machine package for the Arduino MKR1000](../machine/arduino-mkr1000)
Expand Down
36 changes: 36 additions & 0 deletions content/docs/reference/microcontrollers/arduino-mkrwifi1010.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,42 @@ The [Arduino MKR WiFi 1010](https://store.arduino.cc/usa/mkr-wifi-1010) is a ver
| PWM | YES | YES |
| USBDevice | YES | YES |

## Pins

| Pin | Hardware pin | Alternative names |
| ----------------- | ------------ | ----------------- |
| `D0` | `PA22` | `NINA_TX` |
| `D1` | `PA23` | `NINA_RX` |
| `D2` | `PA10` | `I2S_SCK_PIN` |
| `D3` | `PA11` | |
| `D4` | `PB10` | |
| `D5` | `PB11` | |
| `D6` | `PA20` | `LED` |
| `D7` | `PA21` | |
| `D8` | `PA16` | `SPI0_SDO_PIN` |
| `D9` | `PA17` | `SPI0_SCK_PIN` |
| `D10` | `PA19` | `SPI0_SDI_PIN` |
| `D11` | `PA08` | `SDA_PIN` |
| `D12` | `PA09` | `SCL_PIN` |
| `D13` | `PB23` | `RX0`, `UART_RX_PIN` |
| `D14` | `PB22` | `TX1`, `UART_TX_PIN` |
| `A0` | `PA02` | |
| `A1` | `PB02` | |
| `A2` | `PB03` | |
| `A3` | `PA04` | |
| `A4` | `PA05` | |
| `A5` | `PA06` | |
| `A6` | `PA07` | `I2S_SD_PIN` |
| `USBCDC_DM_PIN` | `PA24` | |
| `USBCDC_DP_PIN` | `PA25` | |
| `NINA_SDO` | `PA12` | |
| `NINA_SDI` | `PA13` | |
| `NINA_CS` | `PA14` | |
| `NINA_SCK` | `PA15` | |
| `NINA_GPIO0` | `PA27` | |
| `NINA_RESETN` | `PB08` | |
| `NINA_ACK` | `PA28` | |

## Machine Package Docs

[Documentation for the machine package for the Arduino MKR WiFi 1010](../machine/arduino-mkrwifi1010)
Expand Down
25 changes: 25 additions & 0 deletions content/docs/reference/microcontrollers/arduino-nano.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,31 @@ Note: the AVR backend of LLVM is still experimental so you may encounter bugs.
| PWM | YES | YES |
| USBDevice | NO | NO |

## Pins

| Pin | Hardware pin | Alternative names |
| ----------------- | ------------ | ----------------- |
| `D0` | `PD0` | `UART_RX_PIN` |
| `D1` | `PD1` | `UART_TX_PIN` |
| `D2` | `PD2` | |
| `D3` | `PD3` | |
| `D4` | `PD4` | |
| `D5` | `PD5` | |
| `D6` | `PD6` | |
| `D7` | `PD7` | |
| `D8` | `PB0` | |
| `D9` | `PB1` | |
| `D10` | `PB2` | |
| `D11` | `PB3` | |
| `D12` | `PB4` | |
| `D13` | `PB5` | `LED` |
| `ADC0` | `PC0` | |
| `ADC1` | `PC1` | |
| `ADC2` | `PC2` | |
| `ADC3` | `PC3` | |
| `ADC4` | `PC4` | |
| `ADC5` | `PC5` | |

## Machine Package Docs

[Documentation for the machine package for the Arduino Nano](../machine/arduino-nano)
Expand Down
38 changes: 38 additions & 0 deletions content/docs/reference/microcontrollers/arduino-nano33.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,44 @@ Peripherals:
| PWM | YES | YES |
| USBDevice | YES | YES |

## Pins

| Pin | Hardware pin | Alternative names |
| ----------------- | ------------ | ----------------- |
| `RX0` | `PB23` | |
| `TX1` | `PB22` | |
| `D2` | `PB10` | |
| `D3` | `PB11` | |
| `D4` | `PA07` | |
| `D5` | `PA05` | |
| `D6` | `PA04` | |
| `D7` | `PA06` | |
| `D8` | `PA18` | |
| `D9` | `PA20` | |
| `D10` | `PA21` | |
| `D11` | `PA16` | `SPI0_SDO_PIN` |
| `D12` | `PA19` | `SPI0_SDI_PIN` |
| `D13` | `PA17` | `LED`, `SPI0_SCK_PIN` |
| `A0` | `PA02` | |
| `A1` | `PB02` | |
| `A2` | `PA11` | |
| `A3` | `PA10` | `I2S_SCK_PIN` |
| `A4` | `PB08` | `SDA_PIN` |
| `A5` | `PB09` | `SCL_PIN` |
| `A6` | `PA09` | |
| `A7` | `PB03` | |
| `USBCDC_DM_PIN` | `PA24` | |
| `USBCDC_DP_PIN` | `PA25` | |
| `UART_TX_PIN` | `PA22` | `NINA_TX` |
| `UART_RX_PIN` | `PA23` | `NINA_RX` |
| `NINA_SDO` | `PA12` | |
| `NINA_SDI` | `PA13` | |
| `NINA_CS` | `PA14` | |
| `NINA_SCK` | `PA15` | |
| `NINA_GPIO0` | `PA27` | |
| `NINA_RESETN` | `PA08` | `I2S_SD_PIN` |
| `NINA_ACK` | `PA28` | |

## Machine Package Docs

[Documentation for the machine package for the Arduino Nano33 IoT](../machine/arduino-nano33)
Expand Down
37 changes: 37 additions & 0 deletions content/docs/reference/microcontrollers/arduino-zero.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,43 @@ The [Arduino Zero](https://store.arduino.cc/arduino-zero) is a very small ARM de
| PWM | YES | YES |
| USBDevice | YES | YES |

## Pins

| Pin | Hardware pin | Alternative names |
| ----------------- | ------------ | ----------------- |
| `D0` | `PA11` | `I2S_WS_PIN`, `UART_RX_PIN` |
| `D1` | `PA10` | `I2S_SCK_PIN`, `UART_TX_PIN` |
| `D2` | `PA14` | |
| `D3` | `PA09` | |
| `D4` | `PA08` | |
| `D5` | `PA15` | |
| `D6` | `PA20` | |
| `D7` | `PA21` | |
| `D8` | `PA06` | |
| `D9` | `PA07` | `I2S_SD_PIN` |
| `D10` | `PA18` | |
| `D11` | `PA16` | `SPI0_SDO_PIN` |
| `D12` | `PA19` | `SPI0_SDI_PIN` |
| `D13` | `PA17` | `LED`, `LED1`, `SPI0_SCK_PIN` |
| `AREF` | `PA03` | |
| `ADC0` | `PA02` | |
| `ADC1` | `PB08` | |
| `ADC2` | `PB09` | |
| `ADC3` | `PA04` | |
| `ADC4` | `PA05` | |
| `ADC5` | `PB02` | |
| `LED2` | `PA27` | |
| `LED3` | `PB03` | |
| `SPI1_SDO_PIN` | `PB10` | |
| `SPI1_SDI_PIN` | `PA12` | |
| `SPI1_SCK_PIN` | `PB11` | |
| `SDA_PIN` | `PA22` | |
| `SCL_PIN` | `PA23` | |
| `USBCDC_DM_PIN` | `PA24` | |
| `USBCDC_DP_PIN` | `PA25` | |
| `XIN32` | `PA00` | |
| `XOUT32` | `PA01` | |

## Machine Package Docs

[Documentation for the machine package for the Arduino Zero](../machine/arduino-zero)
Expand Down
Loading

0 comments on commit 0710c6d

Please sign in to comment.