mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-16 21:28:33 +03:00
USB: implement USB reset by setting the on-board pull-up on D+ low
This commit is contained in:
committed by
Harald Welte
parent
4136c242a8
commit
f5869d4a59
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user