diff options
author | root <root@ka-ata-killa.ourano.james.local> | 2021-03-10 11:56:00 +0000 |
---|---|---|
committer | root <root@ka-ata-killa.ourano.james.local> | 2021-03-10 11:56:00 +0000 |
commit | 6a714dc0ca0211c5b132502759629943b1699353 (patch) | |
tree | 45a9912aaf88e21741ce3e53a7082a2f689908eb /boot | |
parent | 9da4b55529e3c9cb34be47ee23391c1dfd4dec5a (diff) | |
download | serial_over_dp-master.tar.gz serial_over_dp-master.tar.bz2 serial_over_dp-master.zip |
Diffstat (limited to 'boot')
-rw-r--r-- | boot/usbdfu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/boot/usbdfu.c b/boot/usbdfu.c index e547e4b..7cba7f9 100644 --- a/boot/usbdfu.c +++ b/boot/usbdfu.c @@ -265,14 +265,14 @@ static enum usbd_request_return_codes usbdfu_control_request (usbd_device *usbd_ static void usb_reset (void) { /*Force USB reset */ + gpio_set_mode (GPIOA, GPIO_MODE_OUTPUT_50_MHZ, GPIO_CNF_OUTPUT_PUSHPULL, GPIO11); gpio_set_mode (GPIOA, GPIO_MODE_OUTPUT_50_MHZ, GPIO_CNF_OUTPUT_PUSHPULL, GPIO12); - gpio_set_mode (GPIOA, GPIO_MODE_OUTPUT_50_MHZ, GPIO_CNF_OUTPUT_PUSHPULL, GPIO13); + gpio_clear (GPIOA, GPIO11); gpio_clear (GPIOA, GPIO12); - gpio_clear (GPIOA, GPIO13); delay_us (5000); + gpio_set_mode (GPIOA, GPIO_MODE_INPUT, GPIO_CNF_INPUT_FLOAT, GPIO11); gpio_set_mode (GPIOA, GPIO_MODE_INPUT, GPIO_CNF_INPUT_FLOAT, GPIO12); - gpio_set_mode (GPIOA, GPIO_MODE_INPUT, GPIO_CNF_INPUT_FLOAT, GPIO13); } |