Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ const pin_map_t pin_map_table[]=
{D11, BSP_IO_PORT_05_PIN_12, "pwm0", 0}, /* PWM */
{D12, BSP_IO_PORT_05_PIN_11},
{D13, BSP_IO_PORT_02_PIN_04},
{D14, BSP_IO_PORT_02_PIN_03, "i2c0"}, /* I2C-SDA (Soft Wire) */
{D15, BSP_IO_PORT_02_PIN_02, "i2c0"}, /* I2C-SCL (Soft Wire) */
{D14, BSP_IO_PORT_02_PIN_03, "swi2c0"}, /* I2C-SDA (Soft Wire) */
{D15, BSP_IO_PORT_02_PIN_02, "swi2c0"}, /* I2C-SCL (Soft Wire) */
{A0, BSP_IO_PORT_00_PIN_00, "adc0", 0}, /* ADC */
{A1, BSP_IO_PORT_00_PIN_01, "adc0", 1}, /* ADC */
{A2, BSP_IO_PORT_00_PIN_02, "adc0", 2}, /* ADC */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@

#define F_CPU 120000000L /* CPU:120MHz */

/* i2c0 : P203-SDA P202-SCL */
#define RTDUINO_DEFAULT_IIC_BUS_NAME "i2c0"
/* swi2c0 : P203-SDA P202-SCL */
#define RTDUINO_DEFAULT_IIC_BUS_NAME "swi2c0"

/* Serial4(uart4) : P205-TX P206-RX */
#define RTDUINO_SERIAL2_DEVICE_NAME "uart4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ const pin_map_t pin_map_table[]=
{D11, GET_PIN(A,7), "pwm17", 1}, /* PWM */
{D12, GET_PIN(A,6)},
{D13, GET_PIN(A,5)}, /* LED_BUILTIN */
{D14, GET_PIN(B,9), "i2c1"}, /* I2C-SDA (Wire) */
{D15, GET_PIN(B,8), "i2c1"}, /* I2C-SCL (Wire) */
{D14, GET_PIN(B,9), "swi2c1"}, /* I2C-SDA (Wire) */
{D15, GET_PIN(B,8), "swi2c1"}, /* I2C-SCL (Wire) */
{D16, GET_PIN(C,13)}, /* USER KEY */
{A0, GET_PIN(A,0), "adc1", 0}, /* ADC */
{A1, GET_PIN(A,1), "adc1", 1}, /* ADC */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@

#define LED_BUILTIN D13 /* Default Built-in LED */

/* i2c1 - PB9-SDA PB8-SCL */
#define RTDUINO_DEFAULT_IIC_BUS_NAME "i2c1"
/* swi2c1 - PB9-SDA PB8-SCL */
#define RTDUINO_DEFAULT_IIC_BUS_NAME "swi2c1"

#define SS D10
#define RTDUINO_DEFAULT_SPI_BUS_NAME "spi1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ const pin_map_t pin_map_table[]=
{D11, GET_PIN(A,0)},
{D12, GET_PIN(B,0), "pwm3", 3}, /* PWM */
{D13, GET_PIN(B,1), "pwm3", 4}, /* PWM */
{D14, GET_PIN(B,9), "i2c1"}, /* I2C-SDA (Wire) */
{D15, GET_PIN(B,8), "i2c1"}, /* I2C-SCL (Wire) */
{D14, GET_PIN(B,9), "swi2c1"}, /* I2C-SDA (Wire) */
{D15, GET_PIN(B,8), "swi2c1"}, /* I2C-SCL (Wire) */
{D16, GET_PIN(A,12), "usb"}, /* SerialUSB */
{D17, GET_PIN(A,11), "usb"}, /* SerialUSB */
{D18, GET_PIN(A,10), "uart1"}, /* Serial-Rx */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@

#define LED_BUILTIN D8 /* Default Built-in LED */

/* i2c1 : PB9-SDA PB8-SCL */
#define RTDUINO_DEFAULT_IIC_BUS_NAME "i2c1"
/* swi2c1 : PB9-SDA PB8-SCL */
#define RTDUINO_DEFAULT_IIC_BUS_NAME "swi2c1"

/* spi2 : PB13-SCK PB14-MISO PB15-MOSI */
#define SS D7 /* Chip select pin of default spi */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ const pin_map_t pin_map_table[]=
{D11, GET_PIN(A,7), "pwm1", -1}, /* PWM */
{D12, GET_PIN(A,6)},
{D13, GET_PIN(A,5)}, /* LED_BUILTIN */
{D14, GET_PIN(B,9), "i2c1"}, /* I2C-SDA (Wire) */
{D15, GET_PIN(B,8), "i2c1"}, /* I2C-SCL (Wire) */
{D14, GET_PIN(B,9), "swi2c1"}, /* I2C-SDA (Wire) */
{D15, GET_PIN(B,8), "swi2c1"}, /* I2C-SCL (Wire) */
{D16, GET_PIN(C,13)}, /* USER KEY */
{A0, GET_PIN(A,0), "adc1", 0}, /* ADC */
{A1, GET_PIN(A,1), "adc1", 1}, /* ADC */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@

#define LED_BUILTIN D13 /* Default Built-in LED */

/* i2c1 - PB9-SDA PB8-SCL */
#define RTDUINO_DEFAULT_IIC_BUS_NAME "i2c1"
/* swi2c1 - PB9-SDA PB8-SCL */
#define RTDUINO_DEFAULT_IIC_BUS_NAME "swi2c1"

#define SS D10
#define RTDUINO_DEFAULT_SPI_BUS_NAME "spi1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
const pin_map_t pin_map_table[]=
{
{D0, GET_PIN(C,13)}, /* LED_BUILTIN */
{D1, GET_PIN(C,14), "i2c1"}, /* I2C-SDA (Wire) */
{D2, GET_PIN(C,15), "i2c1"}, /* I2C-SCL (Wire) */
{D1, GET_PIN(C,14), "swi2c1"}, /* I2C-SDA (Wire) */
{D2, GET_PIN(C,15), "swi2c1"}, /* I2C-SCL (Wire) */
{D3, GET_PIN(A,2), "uart2"}, /* Serial2-TX */
{D4, GET_PIN(A,3), "uart2"}, /* Serial2-RX */
{D5, GET_PIN(B,2)},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@

#define LED_BUILTIN D0 /* Default Built-in LED */

/* i2c1 : PC14-SDA PC15-SCL */
#define RTDUINO_DEFAULT_IIC_BUS_NAME "i2c1"
/* swi2c1 : PC14-SDA PC15-SCL */
#define RTDUINO_DEFAULT_IIC_BUS_NAME "swi2c1"

/* Serial2 : PA2-TX PA3-RX */
#define RTDUINO_SERIAL2_DEVICE_NAME "uart2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ const pin_map_t pin_map_table[]=
{D2, GET_PIN(A,9), "uart1"}, /* Serial-TX */
{D3, GET_PIN(G,9), "uart6"}, /* Serial-RX */
{D4, GET_PIN(G,14), "uart6"}, /* Serial-TX */
{D5, GET_PIN(F,1), "i2c1"}, /* I2C-SCL (Wire) */
{D6, GET_PIN(F,0), "i2c1"}, /* I2C-SDA (Wire) */
{D5, GET_PIN(F,1), "swi2c1"}, /* I2C-SCL (Wire) */
{D6, GET_PIN(F,0), "swi2c1"}, /* I2C-SDA (Wire) */
{D7, GET_PIN(E,9), "pwm1", 1}, /* PWM */
{D8, GET_PIN(E,11), "pwm1", 2}, /* PWM */
{D9, GET_PIN(E,13), "pwm1", 3}, /* PWM */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

#define LED_BUILTIN D0 /* Default Built-in LED */

/* i2c1 : PF0-SDA PF1-SCL */
#define RTDUINO_DEFAULT_IIC_BUS_NAME "i2c1"
/* swi2c1 : PF0-SDA PF1-SCL */
#define RTDUINO_DEFAULT_IIC_BUS_NAME "swi2c1"

#endif /* Pins_Arduino_h */
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ const pin_map_t pin_map_table[]=
{D22, GET_PIN(G, 5), "sspi1"}, /* SOFT-SPI-SCK */
{D23, GET_PIN(G, 3), "sspi1"}, /* SOFT-SPI-MISO */
{D24, GET_PIN(G, 1), "sspi1"}, /* SOFT-SPI-MOSI */
{D25, GET_PIN(G, 7), "i2c4"}, /* I2C-SCL (Wire) */
{D26, GET_PIN(D, 7), "i2c4"}, /* I2C-SDA (Wire) */
{D27, GET_PIN(B, 6), "i2c5"}, /* I2C-SCL (Wire) */
{D28, GET_PIN(B, 7), "i2c5"}, /* I2C-SDA (Wire) */
{D25, GET_PIN(G, 7), "swi2c4"}, /* I2C-SCL (Wire) */
{D26, GET_PIN(D, 7), "swi2c4"}, /* I2C-SDA (Wire) */
{D27, GET_PIN(B, 6), "swi2c5"}, /* I2C-SCL (Wire) */
{D28, GET_PIN(B, 7), "swi2c5"}, /* I2C-SDA (Wire) */
{D29, GET_PIN(G, 6)}, /* SPI-SS */
{D30, GET_PIN(G, 4)},
{D31, GET_PIN(A, 2), "uart2"}, /* Serial2-TX */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@

#define LED_BUILTIN D33 /* Default Built-in LED */

/* i2c4 : PD.7-SDA PG.7-SCL */
#define RTDUINO_DEFAULT_IIC_BUS_NAME "i2c4"
/* swi2c4 : PD.7-SDA PG.7-SCL */
#define RTDUINO_DEFAULT_IIC_BUS_NAME "swi2c4"

#define SS D32 /* Chip select pin of default spi */
/* sspi1 : PG.5-SCK PG.3-MISO PG.1-MOSI */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ const pin_map_t pin_map_table[]=
{D11, GET_PIN(A,7), "pwm1", -1}, /* PWM */
{D12, GET_PIN(A,6)},
{D13, GET_PIN(A,5)}, /* LED_BUILTIN */
{D14, GET_PIN(B,9), "i2c1"}, /* I2C-SDA (Wire) */
{D15, GET_PIN(B,8), "i2c1"}, /* I2C-SCL (Wire) */
{D14, GET_PIN(B,9), "swi2c1"}, /* I2C-SDA (Wire) */
{D15, GET_PIN(B,8), "swi2c1"}, /* I2C-SCL (Wire) */
{D16, GET_PIN(C,13)}, /* USER KEY */
{A0, GET_PIN(A,0), "adc1", 0}, /* ADC */
{A1, GET_PIN(A,1), "adc1", 1}, /* ADC */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

#define LED_BUILTIN D13 /* Default Built-in LED */

/* i2c1 - PB9-SDA PB8-SCL */
#define RTDUINO_DEFAULT_IIC_BUS_NAME "i2c1"
/* swi2c1 - PB9-SDA PB8-SCL */
#define RTDUINO_DEFAULT_IIC_BUS_NAME "swi2c1"

#endif /* Pins_Arduino_h */
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ const pin_map_t pin_map_table[]=
{D11, GET_PIN(A,7), "pwm1", -1}, /* PWM */
{D12, GET_PIN(A,6)},
{D13, GET_PIN(A,5)}, /* LED_BUILTIN */
{D14, GET_PIN(B,9), "i2c1"}, /* I2C-SDA (Wire) */
{D15, GET_PIN(B,8), "i2c1"}, /* I2C-SCL (Wire) */
{D14, GET_PIN(B,9), "swi2c1"}, /* I2C-SDA (Wire) */
{D15, GET_PIN(B,8), "swi2c1"}, /* I2C-SCL (Wire) */
{D16, GET_PIN(C,13)},
{A0, GET_PIN(A,0), "adc1", 0}, /* ADC */
{A1, GET_PIN(A,1), "adc1", 1}, /* ADC */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@

#define LED_BUILTIN D13 /* Default Built-in LED */

/* i2c1 : PB9-SDA PB8-SCL */
#define RTDUINO_DEFAULT_IIC_BUS_NAME "i2c1"
/* swi2c1 : PB9-SDA PB8-SCL */
#define RTDUINO_DEFAULT_IIC_BUS_NAME "swi2c1"

#define SS D10
#define RTDUINO_DEFAULT_SPI_BUS_NAME "spi1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ const pin_map_t pin_map_table[]=
{D2, GET_PIN(C,15)},
{D3, GET_PIN(A,2), "uart2"}, /* Serial-TX */
{D4, GET_PIN(A,3), "uart2"}, /* Serial-RX */
{D5, GET_PIN(B,2), "i2c1"}, /* I2C-SDA (Wire) */
{D6, GET_PIN(B,10), "i2c1"}, /* I2C-SCL (Wire) */
{D5, GET_PIN(B,2), "swi2c1"}, /* I2C-SDA (Wire) */
{D6, GET_PIN(B,10), "swi2c1"}, /* I2C-SCL (Wire) */
{D7, GET_PIN(B,9), "pwm4", 4}, /* PWM */
{D8, GET_PIN(B,8), "pwm4", 3}, /* PWM */
{D9, GET_PIN(B,7), "pwm4", 2}, /* PWM */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
#define SS D14 /* Chip select pin of default spi */
#define RTDUINO_DEFAULT_SPI_BUS_NAME "spi1"

/* i2c1 : PB2-SDA PB10-SCL */
#define RTDUINO_DEFAULT_IIC_BUS_NAME "i2c1"
/* swi2c1 : PB2-SDA PB10-SCL */
#define RTDUINO_DEFAULT_IIC_BUS_NAME "swi2c1"

/* Serial2 - PA2-TX PA3-RX */
#define RTDUINO_SERIAL2_DEVICE_NAME "uart2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ const pin_map_t pin_map_table[]=
{D11, GET_PIN(A,7), "pwm14", 1}, /* PWM */
{D12, GET_PIN(A,6)},
{D13, GET_PIN(A,5)},
{D14, GET_PIN(B,9), "i2c1"}, /* I2C-SDA (Wire) */
{D15, GET_PIN(B,8), "i2c1"}, /* I2C-SCL (Wire) */
{D14, GET_PIN(B,9), "swi2c1"}, /* I2C-SDA (Wire) */
{D15, GET_PIN(B,8), "swi2c1"}, /* I2C-SCL (Wire) */
{D16, GET_PIN(C,13)}, /* USER KEY */
{D17, GET_PIN(B,0)}, /* LED_BUILTIN, USER LED1 */
{D18, GET_PIN(B,7)}, /* USER LED2 */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@

#define LED_BUILTIN D17 /* Default Built-in LED */

/* i2c1 : PB9-SDA PB8-SCL */
#define RTDUINO_DEFAULT_IIC_BUS_NAME "i2c1"
/* swi2c1 : PB9-SDA PB8-SCL */
#define RTDUINO_DEFAULT_IIC_BUS_NAME "swi2c1"

#define SS D10
#define RTDUINO_DEFAULT_SPI_BUS_NAME "spi1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ const pin_map_t pin_map_table[]=
{D25, GET_PIN(I,2), "pwm8", 4}, /* PWM */
{D26, GET_PIN(F,1)},
{D27, GET_PIN(F,0)},
{D28, GET_PIN(E,4), "i2c1"}, /* I2C-SCL (Wire) */
{D29, GET_PIN(E,5), "i2c1"}, /* I2C-SDA (Wire) */
{D28, GET_PIN(E,4), "swi2c1"}, /* I2C-SCL (Wire) */
{D29, GET_PIN(E,5), "swi2c1"}, /* I2C-SDA (Wire) */
{D30, GET_PIN(E,6)},
{D31, GET_PIN(E,12)},
{D32, GET_PIN(C,2)},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@

#define LED_BUILTIN D0 /* Default Built-in LED */

/* i2c1 : PE5-SDA PE4-SCL */
#define RTDUINO_DEFAULT_IIC_BUS_NAME "i2c1"
/* swi2c1 : PE5-SDA PE4-SCL */
#define RTDUINO_DEFAULT_IIC_BUS_NAME "swi2c1"

#endif /* Pins_Arduino_h */
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ const pin_map_t pin_map_table[]=
{D11, GET_PIN(B,15), "pwm12", 2}, /* PWM */
{D12, GET_PIN(B,14)},
{D13, GET_PIN(D,3)}, /* LED_BUILTIN */
{D14, GET_PIN(B,9), "i2c1"}, /* I2C-SDA (Wire) */
{D15, GET_PIN(B,8), "i2c1"}, /* I2C-SCL (Wire) */
{D14, GET_PIN(B,9), "swi2c1"}, /* I2C-SDA (Wire) */
{D15, GET_PIN(B,8), "swi2c1"}, /* I2C-SCL (Wire) */
{D16, GET_PIN(A,0)}, /* user button */
{D17, GET_PIN(G,6)}, /* user LED */
{D18, GET_PIN(D,4)}, /* user LED */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@

#define LED_BUILTIN D13 /* Default Built-in LED */

/* i2c1 : PB9-SDA PB8-SCL */
#define RTDUINO_DEFAULT_IIC_BUS_NAME "i2c1"
/* swi2c1 : PB9-SDA PB8-SCL */
#define RTDUINO_DEFAULT_IIC_BUS_NAME "swi2c1"

#define SS D10
#define RTDUINO_DEFAULT_SPI_BUS_NAME "spi2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ const pin_map_t pin_map_table[]=
{D11, GET_PIN(A,7), "pwm3", 2}, /* PWM */
{D12, GET_PIN(A,6)},
{D13, GET_PIN(A,5)}, /* LED_BUILTIN */
{D14, GET_PIN(B,9), "i2c1"}, /* I2C-SDA (Wire) */
{D15, GET_PIN(B,8), "i2c1"}, /* I2C-SCL (Wire) */
{D14, GET_PIN(B,9), "swi2c1"}, /* I2C-SDA (Wire) */
{D15, GET_PIN(B,8), "swi2c1"}, /* I2C-SCL (Wire) */
{D16, GET_PIN(C,13)},
{A0, GET_PIN(A,0), "adc1", 1}, /* ADC */
{A1, GET_PIN(A,1), "adc1", 2}, /* ADC */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@

#define LED_BUILTIN D13 /* Default Built-in LED */

/* i2c1 : PB9-SDA PB8-SCL */
#define RTDUINO_DEFAULT_IIC_BUS_NAME "i2c1"
/* swi2c1 : PB9-SDA PB8-SCL */
#define RTDUINO_DEFAULT_IIC_BUS_NAME "swi2c1"

#define SS D10
#define RTDUINO_DEFAULT_SPI_BUS_NAME "spi1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ const pin_map_t pin_map_table[]=
{D11, GET_PIN(A, 7), "pwm3", 2}, /* PWM */
{D12, GET_PIN(A, 6)},
{D13, GET_PIN(A, 5)},
{D14, GET_PIN(B, 7), "i2c1"}, /* I2C-SDA (Wire) */
{D15, GET_PIN(B, 6), "i2c1"}, /* I2C-SCL (Wire) */
{D14, GET_PIN(B, 7), "swi2c1"}, /* I2C-SDA (Wire) */
{D15, GET_PIN(B, 6), "swi2c1"}, /* I2C-SCL (Wire) */
{A0, GET_PIN(A, 0), "adc1", 0}, /* ADC */
{A1, GET_PIN(A, 1), "adc1", 1}, /* ADC */
{A2, GET_PIN(A, 2), "adc1", 14}, /* ADC */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@

#define LED_BUILTIN D13 /* Default Built-in LED */

/* i2c1 : PB.7-SDA PB.6-SCL */
#define RTDUINO_DEFAULT_IIC_BUS_NAME "i2c1"
/* swi2c1 : PB.7-SDA PB.6-SCL */
#define RTDUINO_DEFAULT_IIC_BUS_NAME "swi2c1"

/* Serial2(uart1) : PB.14-TX PB.15-RX */
#define RTDUINO_SERIAL2_DEVICE_NAME "uart1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ const pin_map_t pin_map_table[]=
{D11, GET_PIN(B, 5), "pwm3", 2}, /* PWM */
{D12, GET_PIN(G, 9)},
{D13, GET_PIN(A, 5)}, /* LED_BUILTIN */
{D14, GET_PIN(B, 9), "i2c1"}, /* I2C-SDA (Wire) */
{D15, GET_PIN(B, 8), "i2c1"}, /* I2C-SCL (Wire) */
{D14, GET_PIN(B, 9), "swi2c1"}, /* I2C-SDA (Wire) */
{D15, GET_PIN(B, 8), "swi2c1"}, /* I2C-SCL (Wire) */
{A0, GET_PIN(A, 6), "adc2", 3}, /* ADC */
{A1, GET_PIN(C, 0), "adc2", 10}, /* ADC */
{A2, GET_PIN(C, 3), "adc2", 13}, /* ADC */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@

#define LED_BUILTIN D0 /* Default Built-in LED */

/* i2c1 : PB.9-SDA PB.8-SCL */
#define RTDUINO_DEFAULT_IIC_BUS_NAME "i2c1"
/* swi2c1 : PB.9-SDA PB.8-SCL */
#define RTDUINO_DEFAULT_IIC_BUS_NAME "swi2c1"

/* Serial2(lpuart1) : PB.6-TX PB.7-RX */
#define RTDUINO_SERIAL2_DEVICE_NAME "lpuart1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ const pin_map_t pin_map_table[]=
{D2, GET_PIN(A,0)},
{D3, GET_PIN(B,9)},
{D4, GET_PIN(B,8), "pwm16", 1}, /* PWM */
{D5, GET_PIN(B,6), "i2c1"}, /* I2C-SCL (Wire) */
{D6, GET_PIN(B,7), "i2c1"}, /* I2C-SDA (Wire) */
{D5, GET_PIN(B,6), "swi2c1"}, /* I2C-SCL (Wire) */
{D6, GET_PIN(B,7), "swi2c1"}, /* I2C-SDA (Wire) */
{D7, GET_PIN(A,6), "spi1"}, /* SPI-MISO */
{D8, GET_PIN(A,12), "spi1"}, /* SPI-MOSI */
{D9, GET_PIN(C,9)},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@

#define F_CPU 80000000L /* CPU:80MHz */

/* i2c1 : PB7-SDA PB6-SCL */
#define RTDUINO_DEFAULT_IIC_BUS_NAME "i2c1"
/* swi2c1 : PB7-SDA PB6-SCL */
#define RTDUINO_DEFAULT_IIC_BUS_NAME "swi2c1"

/* spi1 : PA1-SCK PA6-MISO PA12-MOSI */
#define SS D1 /* Chip select pin of default spi */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ const pin_map_t pin_map_table[]=
{D29, GET_PIN(B,13), "spi2"}, /* SPI-SCK */
{D30, GET_PIN(B,14), "spi2"}, /* SPI-MISO */
{D31, GET_PIN(B,15), "spi2"}, /* SPI-MOSI */
{D32, GET_PIN(C,7), "i2c1"}, /* I2C-SDA (Wire) */
{D33, GET_PIN(C,6), "i2c1"}, /* I2C-SCL (Wire) */
{D32, GET_PIN(C,7), "swi2c1"}, /* I2C-SDA (Wire) */
{D33, GET_PIN(C,6), "swi2c1"}, /* I2C-SCL (Wire) */
{D34, GET_PIN(A,2), "uart2"}, /* Serial2-Tx */
{D35, GET_PIN(A,3), "uart2"}, /* Serial2-Rx */
{D36, GET_PIN(D,7)}, /* BSP: LCD CS */
Expand Down
Loading
Loading