File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -53,4 +53,13 @@ const mcu_pin_obj_t *mimxrt10xx_reset_forbidden_pins[] = {
53
53
NULL , // Must end in NULL.
54
54
};
55
55
56
+ bool mimxrt10xx_board_reset_pin_number (const mcu_pin_obj_t * pin ) {
57
+ #if CIRCUITPY_USB_HOST
58
+ if (pin == & pin_GPIO_EMC_40 ) {
59
+ // Don't reset the USB_HOST_POWER pin, because it will need to be enabled in boot.py.
60
+ return true;
61
+ }
62
+ #endif
63
+ return false;
64
+ }
56
65
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
Original file line number Diff line number Diff line change @@ -60,4 +60,14 @@ void board_init(void) {
60
60
common_hal_usb_host_port_construct (& pin_USB_OTG2_DP , & pin_USB_OTG2_DN );
61
61
}
62
62
63
+ bool mimxrt10xx_board_reset_pin_number (const mcu_pin_obj_t * pin ) {
64
+ #if CIRCUITPY_USB_HOST
65
+ if (pin == & pin_GPIO_EMC_40 ) {
66
+ // Don't reset the USB_HOST_POWER pin, because it will need to be enabled in boot.py.
67
+ return true;
68
+ }
69
+ #endif
70
+ return false;
71
+ }
72
+
63
73
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
You can’t perform that action at this time.
0 commit comments