소스 검색

Fix SKR Pro / GTR i2c pins

Fixes #17297

Co-Authored-By: NAPCAL <napcal@users.noreply.github.com>
Scott Lahteine 4 년 전
부모
커밋
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

Loading…
취소
저장