Skip to content

Commit

Permalink
Update board.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
saloid authored Sep 22, 2019
1 parent f35abf3 commit d04f9c8
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions STM32F1/variants/generic_gd32f103c/board.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,16 +124,6 @@ extern const uint8 boardUsedPins[BOARD_NR_USED_PINS] __FLASH__ = {
* Maps to which hardware serial port on the microprocessor
*/

#ifdef SERIAL_USB
DEFINE_HWSERIAL(Serial1, 1);

DEFINE_HWSERIAL(Serial2, 2);

DEFINE_HWSERIAL(Serial3, 3);
#else
DEFINE_HWSERIAL(Serial, 1);

DEFINE_HWSERIAL(Serial1, 2);

DEFINE_HWSERIAL(Serial2, 3);
#endif
DEFINE_HWSERIAL(Serial1, 1);
DEFINE_HWSERIAL(Serial2, 2);
DEFINE_HWSERIAL(Serial3, 3);

0 comments on commit d04f9c8

Please sign in to comment.