File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,10 @@ typedef struct {
62
62
bool external_phy ;
63
63
} tinyusb_config_t ;
64
64
65
+ #if __has_include ("hal/usb_hal.h" )
66
+
67
+ #include "hal/usb_hal.h"
68
+
65
69
static bool usb_otg_deinit (void * busptr ) {
66
70
// Once USB OTG is initialized, its GPIOs are assigned and it shall never be deinited
67
71
// except when S3 swithicng usb from cdc to jtag while resetting to bootrom
@@ -72,10 +76,6 @@ static bool usb_otg_deinit(void *busptr) {
72
76
#endif
73
77
}
74
78
75
- #if __has_include ("hal/usb_hal.h" )
76
-
77
- #include "hal/usb_hal.h"
78
-
79
79
static void configure_pins (usb_hal_context_t * usb ) {
80
80
for (const usb_iopin_dsc_t * iopin = usb_periph_iopins ; iopin -> pin != -1 ; ++ iopin ) {
81
81
if ((usb -> use_external_phy ) || (iopin -> ext_phy_only == 0 )) {
You can’t perform that action at this time.
0 commit comments