Skip to content

Commit bffbdce

Browse files
author
rogerclarkmelbourne
committed
Temporary fix to Nucleo F103RB to get around missing pin definitions (which should not really be needed), this is temporary fix, I need to sort out the Serial USB code and make a separate define for maple hardware etc
1 parent 72324b5 commit bffbdce

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • STM32F1/variants/nucleo_f103rb/board

STM32F1/variants/nucleo_f103rb/board/board.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,11 @@
102102
/**
103103
* Note: there is no USB in this board.
104104
*/
105+
// Roger Clark. These USB disconnect pin definitions have been added as a temporary fix in order that the this board compiles
106+
// following changes to add usb serial to other boards
107+
// I will remove them when the code in the core usb_serial.cpp has been tidied up so that they are no longer needed.
108+
#define BOARD_USB_DISC_DEV GPIOB
109+
#define BOARD_USB_DISC_BIT 10
105110

106111
/* Pin aliases: these give the GPIO port/bit for each pin as an
107112
* enum. These are optional, but recommended. They make it easier to

0 commit comments

Comments
 (0)