Просмотр исходного кода

Fix SKR Pro / GTR i2c pins

Fixes #17297

Co-Authored-By: NAPCAL <napcal@users.noreply.github.com>
Scott Lahteine 4 лет назад
Родитель
Сommit
5d1498f2cb
1 измененных файлов: 7 добавлений и 2 удалений
  1. 7
    2
      buildroot/share/PlatformIO/variants/BIGTREE_SKR_PRO_1v1/variant.h

+ 7
- 2
buildroot/share/PlatformIO/variants/BIGTREE_SKR_PRO_1v1/variant.h Просмотреть файл

@@ -245,8 +245,13 @@ extern "C" {
245 245
 #define PIN_SPI_SS              PB12
246 246
 
247 247
 // I2C Definitions
248
-#define PIN_WIRE_SDA            PB7
249
-#define PIN_WIRE_SCL            PB6
248
+#if STM32F4X_PIN_NUM >= 176
249
+  #define PIN_WIRE_SDA          PH5
250
+  #define PIN_WIRE_SCL          PH4
251
+#else
252
+  #define PIN_WIRE_SDA          PB7
253
+  #define PIN_WIRE_SCL          PB6
254
+#endif
250 255
 
251 256
 // Timer Definitions
252 257
 //Do not use timer used by PWM pins when possible. See PinMap_PWM in PeripheralPins.c

Загрузка…
Отмена
Сохранить