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[] = {
5353 NULL , // Must end in NULL.
5454};
5555
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+ }
5665// 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) {
6060 common_hal_usb_host_port_construct (& pin_USB_OTG2_DP , & pin_USB_OTG2_DN );
6161}
6262
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+
6373// 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