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

This commit is contained in:
Kévin Redon authored and Harald Welte committed 2018-06-29 20:07:31 +02:00
1 parent 4136c242a8
commit f5869d4a59
3 files changed
+18 -7

No files matched your search

@@ -85,11 +85,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