|
@@ -6,6 +6,7 @@
|
|
|
* Change Logs:
|
|
|
* Date Author Notes
|
|
|
* 2023-02-22 ChuShicheng first version
|
|
|
+ * 2023-02-23 Wangyuqiang second version
|
|
|
*/
|
|
|
|
|
|
#include <Arduino.h>
|
|
@@ -21,26 +22,28 @@
|
|
|
*/
|
|
|
const pin_map_t pin_map_table[]=
|
|
|
{
|
|
|
- {D0, 50},
|
|
|
- {D1, 49, "pwm1", 3}, /* PWM */
|
|
|
- {D2, 57, "uart1"}, /* Serial-RX */
|
|
|
- {D3, 28, "uart1"}, /* Serial-TX */
|
|
|
- {D4, 39, "pwm2", 1}, /* PWM */
|
|
|
- {D5, 40, "pwm2", 2}, /* PWM */
|
|
|
- {D6, 37}, /* LED_BUILTIN */
|
|
|
- {D7, 43, "pwm1", 0}, /* PWM */
|
|
|
- {D8, 41},
|
|
|
- {D9, 38, "pwm2", 0}, /* PWM */
|
|
|
- {D10, 34},
|
|
|
- {D11, 27},
|
|
|
- {D12, 36},
|
|
|
- {D13, 35},
|
|
|
- {D14, 54, "pwm3", 2}, /* PWM */
|
|
|
- {D15, 53},
|
|
|
- {D16, 15, "i2c1"}, /* I2C-SCL (Wire) */
|
|
|
- {D17, 14, "i2c1"}, /* I2C-SDA (Wire) */
|
|
|
- {A0, 17, "adc0", 8}, /* ADC */
|
|
|
- {A1, 24, "adc0", 0}, /* ADC */
|
|
|
- {A2, RT_NULL, "adc0", 26}, /* ADC, On-Chip: internal temperature sensor, ADC_CHANNEL_TEMPSENSOR */
|
|
|
- {A3, RT_NULL, "adc0", 13}, /* ADC, On-Chip: internal reference voltage, ADC_CHANNEL_VREFINT */
|
|
|
+ {D0, GET_PINS(1,24), "uart1"}, /* Serial2-RX */
|
|
|
+ {D1, GET_PINS(0,27), "uart1"}, /* Serial2-TX */
|
|
|
+ {D2, GET_PINS(0,15)},
|
|
|
+ {D3, GET_PINS(1,6)},
|
|
|
+ {D4, GET_PINS(1,7), "pwm2", 2}, /* PWM */
|
|
|
+ {D5, GET_PINS(1,4), "pwm2", 1}, /* PWM */
|
|
|
+ {D6, GET_PINS(1,10)},
|
|
|
+ {D7, GET_PINS(1,9), "pwm1", 0}, /* PWM */
|
|
|
+ {D8, GET_PINS(1,8)},
|
|
|
+ {D9, GET_PINS(1,5)},
|
|
|
+ {D10, GET_PINS(1,1)},
|
|
|
+ {D11, GET_PINS(0,26)},
|
|
|
+ {D12, GET_PINS(1,3), "pwm0", 3}, /* PWM */
|
|
|
+ {D13, GET_PINS(1,2)},
|
|
|
+ {D14, GET_PINS(1,21), "i2c4"}, /* I2C-SDA (Wire) */
|
|
|
+ {D15, GET_PINS(1,20), "i2c4"}, /* I2C-SCL (Wire) */
|
|
|
+ {A0, GET_PINS(0,16), "adc0", 8}, /* ADC */
|
|
|
+ {A1, GET_PINS(0,23), "adc0", 0}, /* ADC */
|
|
|
+ {A2, RT_NULL},
|
|
|
+ {A3, GET_PINS(1,31)},
|
|
|
+ {A4, GET_PINS(0,13), "i2c1"}, /* I2C-SDA (Wire) */
|
|
|
+ {A5, GET_PINS(1,14), "i2c1"}, /* I2C-SCL (Wire) */
|
|
|
+ {A6, RT_NULL, "adc0", 13}, /* ADC, On-Chip: internal reference voltage, ADC_CHANNEL_VREFINT */
|
|
|
+ {A7, RT_NULL, "adc0", 26}, /* ADC, On-Chip: internal temperature sensor, ADC_CHANNEL_TEMPSENSOR */
|
|
|
};
|