Skip to content

Commit

Permalink
Update layout, regenerate with boardgen
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba2k2 committed Dec 16, 2024
1 parent 6be0194 commit 8dd0f45
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 18 deletions.
7 changes: 6 additions & 1 deletion boards/_base/pcb/afw121t.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"pcb": {
"templates": ["99iot-21p", "pcb-blue-light", "rf-type1"],
"templates": [
"99iot-21p",
"pcb-blue-light",
"rf-type1"
],
"scale": 16,
"vars": {
"TRACE_COLOR": "#FAFD9D"
},
Expand Down
12 changes: 6 additions & 6 deletions boards/templates/99iot-21p.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"id": "left_b",
"name": "r_pins_vert",
"repeat": 7,
"pos": "0,11.4",
"pos": "0,12.8",
"vars": {
"PINDIR": "left"
}
Expand All @@ -50,7 +50,7 @@
"id": "right_b",
"name": "r_pins_vert",
"repeat": 10,
"pos": "18,8.77",
"pos": "18,9.2",
"vars": {
"PINDIR": "right"
}
Expand All @@ -60,7 +60,7 @@
"id": "right_t",
"name": "r_pins_vert",
"repeat": 1,
"pos": "18,6.57",
"pos": "18,7",
"vars": {
"PINDIR": "right"
}
Expand Down Expand Up @@ -89,7 +89,7 @@
"id": "left_b",
"name": "r_pins_vert",
"repeat": 7,
"pos": "0,11.4",
"pos": "0,12.8",
"vars": {
"PINDIR": "left"
}
Expand All @@ -99,7 +99,7 @@
"id": "right_b",
"name": "r_pins_vert",
"repeat": 10,
"pos": "18,8.77",
"pos": "18,9.2",
"vars": {
"PINDIR": "right"
}
Expand All @@ -109,7 +109,7 @@
"id": "right_t",
"name": "r_pins_vert",
"repeat": 1,
"pos": "18,6.57",
"pos": "18,7",
"vars": {
"PINDIR": "right"
}
Expand Down
22 changes: 11 additions & 11 deletions boards/variants/afw121t.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,27 @@
// clang-format off
PinInfo lt_arduino_pin_info_list[PINS_COUNT] = {
// D0: PA14, PWM0, SWCLK
{PA_14, , PIN_NONE, 0},
{PA_14, PIN_GPIO | PIN_IRQ | PIN_PWM | PIN_SWD, PIN_NONE, 0},
// D1: PA15, PWM1, SWDIO
{PA_15, , PIN_NONE, 0},
{PA_15, PIN_GPIO | PIN_IRQ | PIN_PWM | PIN_SWD, PIN_NONE, 0},
// D2: PA00, PWM2
{PA_0, , PIN_NONE, 0},
{PA_0, PIN_GPIO | PIN_IRQ | PIN_PWM, PIN_NONE, 0},
// D3: PA12, PWM3
{PA_12, , PIN_NONE, 0},
{PA_12, PIN_GPIO | PIN_IRQ | PIN_PWM, PIN_NONE, 0},
// D4: PA29, UART2_RX, I2C0_SCL, PWM4
{PA_29, , PIN_NONE, 0},
{PA_29, PIN_GPIO | PIN_IRQ | PIN_PWM | PIN_I2C | PIN_UART, PIN_NONE, 0},
// D5: PA05, PWM4, WAKE1
{PA_5, , PIN_NONE, 0},
{PA_5, PIN_GPIO | PIN_IRQ | PIN_PWM, PIN_NONE, 0},
// D6: PA18, UART0_RX, SPI0_SCK, SPI1_SCK, I2C1_SCL, SD_D2, TMR4_TRIG, I2S0_MCK, WAKE0
{PA_18, , PIN_NONE, 0},
{PA_18, PIN_GPIO | PIN_IRQ | PIN_I2C | PIN_I2S | PIN_SPI | PIN_UART, PIN_NONE, 0},
// D7: PA19, ADC1, UART0_CTS, SPI0_CS, SPI1_CS, I2C0_SDA, SD_D3, TMR5_TRIG, I2S0_TX
{PA_19, , PIN_NONE, 0},
{PA_19, PIN_GPIO | PIN_IRQ | PIN_I2C | PIN_I2S | PIN_SPI | PIN_UART, PIN_NONE, 0},
// D8: PA22, UART0_RTS, SPI0_MISO, SPI1_MISO, I2C0_SCL, SD_D0, PWM5, I2S0_WS, WAKE2
{PA_22, , PIN_NONE, 0},
{PA_22, PIN_GPIO | PIN_IRQ | PIN_PWM | PIN_I2C | PIN_I2S | PIN_SPI | PIN_UART, PIN_NONE, 0},
// D9: PA23, UART0_TX, SPI0_MOSI, SPI1_MOSI, I2C1_SDA, SD_D1, PWM0, WAKE3
{PA_23, , PIN_NONE, 0},
{PA_23, PIN_GPIO | PIN_IRQ | PIN_PWM | PIN_I2C | PIN_SPI | PIN_UART, PIN_NONE, 0},
// D10: PA30, UART2_TX, I2C0_SDA, PWM4
{PA_30, , PIN_NONE, 0},
{PA_30, PIN_GPIO | PIN_IRQ | PIN_PWM | PIN_I2C | PIN_UART, PIN_NONE, 0},
};

PinInfo *lt_arduino_pin_gpio_map[] = {
Expand Down

0 comments on commit 8dd0f45

Please sign in to comment.