diff --git a/bsp/stm32/stm32f103-blue-pill/applications/arduino_pinout/README.md b/bsp/stm32/stm32f103-blue-pill/applications/arduino_pinout/README.md index 8daef19459..c810d1af99 100644 --- a/bsp/stm32/stm32f103-blue-pill/applications/arduino_pinout/README.md +++ b/bsp/stm32/stm32f103-blue-pill/applications/arduino_pinout/README.md @@ -18,7 +18,7 @@ Hardware Drivers Config ---> ## 2 Arduino Pinout -![blue-pill-f103-pinout](blue-pill-f103-pinout.png) +![blue-pill-f103-pinout](blue-pill-f103-pinout.jpg) | Arduino Pin | STM32 Pin | 5V Tolerate | 备注 | | ----------- | --------- | ----------- | ----------------------------------------------------------------------------------------------------------- | @@ -38,8 +38,8 @@ Hardware Drivers Config ---> | 13 (D13) | PB1 | No | PWM3-CH4. Token over by RT-Thread PWM device by default | | 14 (D14) | PB9 | Yes | I2C-SDA. Token over by RT-Thread I2C device by default | | 15 (D15) | PB8 | Yes | I2C-SCL. Token over by RT-Thread I2C device by default | -| 16 (D16) | PA12 | Yes | USB-DP. Token over by RT-Thread [TinyUSB](https://github.com/RT-Thread-packages/tinyusb) device by default. | -| 17 (D17) | PA11 | Yes | USB-DM. Token over by RT-Thread [TinyUSB](https://github.com/RT-Thread-packages/tinyusb) device by default. | +| 16 (D16) | PA12 | Yes | USB-DP. Token over by [TinyUSB](https://github.com/RT-Thread-packages/tinyusb) software package by default. | +| 17 (D17) | PA11 | Yes | USB-DM. Token over by [TinyUSB](https://github.com/RT-Thread-packages/tinyusb) software package by default. | | 18 (D18) | PA10 | Yes | UART1-RX. Token over by RT-Thread UART device by default | | 19 (D19) | PA9 | Yes | UART1-TX. Token over by RT-Thread UART device by default | | 20 (D20) | PA2 | No | UART2-TX. Token over by RT-Thread UART device by default | diff --git a/bsp/stm32/stm32f103-blue-pill/applications/arduino_pinout/README_zh.md b/bsp/stm32/stm32f103-blue-pill/applications/arduino_pinout/README_zh.md index c630238eff..7039a6e2a6 100644 --- a/bsp/stm32/stm32f103-blue-pill/applications/arduino_pinout/README_zh.md +++ b/bsp/stm32/stm32f103-blue-pill/applications/arduino_pinout/README_zh.md @@ -18,7 +18,7 @@ Hardware Drivers Config ---> ## 2 Arduino引脚排布 -![blue-pill-f103-pinout](blue-pill-f103-pinout.png) +![blue-pill-f103-pinout](blue-pill-f103-pinout.jpg) | Arduino引脚编号 | STM32引脚编号 | 5V容忍 | 备注 | | ----------- | --------- | ---- | ------------------------------------------------------------------------- | diff --git a/bsp/stm32/stm32f103-blue-pill/applications/arduino_pinout/blue-pill-f103-pinout.jpg b/bsp/stm32/stm32f103-blue-pill/applications/arduino_pinout/blue-pill-f103-pinout.jpg new file mode 100644 index 0000000000..597b8d3c0f Binary files /dev/null and b/bsp/stm32/stm32f103-blue-pill/applications/arduino_pinout/blue-pill-f103-pinout.jpg differ diff --git a/bsp/stm32/stm32f103-blue-pill/applications/arduino_pinout/blue-pill-f103-pinout.png b/bsp/stm32/stm32f103-blue-pill/applications/arduino_pinout/blue-pill-f103-pinout.png deleted file mode 100644 index e62131a9ff..0000000000 Binary files a/bsp/stm32/stm32f103-blue-pill/applications/arduino_pinout/blue-pill-f103-pinout.png and /dev/null differ diff --git a/bsp/stm32/stm32f103-blue-pill/applications/arduino_pinout/pins_arduino.c b/bsp/stm32/stm32f103-blue-pill/applications/arduino_pinout/pins_arduino.c index 34d531ee59..ad5999180f 100644 --- a/bsp/stm32/stm32f103-blue-pill/applications/arduino_pinout/pins_arduino.c +++ b/bsp/stm32/stm32f103-blue-pill/applications/arduino_pinout/pins_arduino.c @@ -12,12 +12,12 @@ #include "pins_arduino.h" /* - {Arduino Pin, RT-Thread Pin [, Device Name, Channel]} - [] means optional - Digital pins must NOT give the device name and channel. - Analog pins MUST give the device name and channel(ADC, PWM or DAC). - Arduino Pin must keep in sequence. -*/ + * {Arduino Pin, RT-Thread Pin [, Device Name, Channel]} + * [] means optional + * Digital pins must NOT give the device name and channel. + * Analog pins MUST give the device name and channel(ADC, PWM or DAC). + * Arduino Pin must keep in sequence. + */ const pin_map_t pin_map_table[]= { {D0, GET_PIN(B,7)},