Skip to content

Commit

Permalink
Add workaround for PA9/PA10 pin remapping
Browse files Browse the repository at this point in the history
This sets an explicit mode for PA11/PA12 (aux and RTS/DE) to disable the
remapping again. See stm32duino/Arduino_Core_STM32#1180
  • Loading branch information
matthijskooijman committed Apr 1, 2021
1 parent 476af80 commit 8f027d2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ void setup() {
DebugSerial.begin(1000000);
DebugSerial.println("Starting");
#endif
RS485.begin(115200);
// Configure PA11/PA12 to disable remapping of PA9/PA10
// https://github.com/stm32duino/Arduino_Core_STM32/issues/1180
pinMode(PA11, INPUT);
pinMode(PA12, INPUT);

pinMode(STATUS_PIN, OUTPUT);
}
Expand Down

0 comments on commit 8f027d2

Please sign in to comment.