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

This commit is contained in:
rogerclarkmelbourne 2015-05-23 08:05:32 +10:00
parent 72324b5bd1
commit bffbdce50f
1 changed files with 5 additions and 0 deletions

View File

@ -102,6 +102,11 @@
/**
* Note: there is no USB in this board.
*/
// Roger Clark. These USB disconnect pin definitions have been added as a temporary fix in order that the this board compiles
// following changes to add usb serial to other boards
// I will remove them when the code in the core usb_serial.cpp has been tidied up so that they are no longer needed.
#define BOARD_USB_DISC_DEV GPIOB
#define BOARD_USB_DISC_BIT 10
/* Pin aliases: these give the GPIO port/bit for each pin as an
* enum. These are optional, but recommended. They make it easier to