We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 420dbaf commit a049755Copy full SHA for a049755
ports/atmel-samd/boards/capablerobot_usbhub/board.c
@@ -27,8 +27,16 @@
27
#include "boards/board.h"
28
#include "mpconfigboard.h"
29
#include "hal/include/hal_gpio.h"
30
+#include "common-hal/microcontroller/Pin.h"
31
32
void board_init(void) {
33
+ // Don't reset:
34
+ // - USB Host Enable Pin
35
+ // - reset pin of the USB Hub
36
+ //
37
+ // If either are reset, USB devices will disconnect when the MCU restarts
38
+ never_reset_pin_number(PIN_PA07);
39
+ never_reset_pin_number(PIN_PB08);
40
}
41
42
bool board_requests_safe_mode(void) {
0 commit comments