USB: implement USB reset by setting the on-board pull-up on D+ low

This commit is contained in:
Kévin Redon
2018-06-17 22:31:21 +02:00
parent 2ab8f8e3fd
commit 9a921ac630
3 changed files with 18 additions and 7 deletions

View File

@@ -94,11 +94,10 @@
#define SIM_PWEN PIO_PA5
#define VCC_FWD PIO_PA26
//** USB **/
// USB pull-up control pin definition (PA16).
// Default: 1 (USB Pullup deactivated)
#define PIN_USB_PULLUP {1 << 16, PIOA, ID_PIOA, PIO_OUTPUT_1, PIO_DEFAULT}
/** Pin configuration to control USB pull-up on D+
* @details the USB pull-up on D+ is enable by default on the board but can be disabled by setting PA16 high
*/
#define PIN_USB_PULLUP {PIO_PA16, PIOA, ID_PIOA, PIO_OUTPUT_0, PIO_DEFAULT}
// Board has UDP controller
#define BOARD_USB_UDP