diff --git a/micropython/trezorhal/usbd_conf.c b/micropython/trezorhal/usbd_conf.c index a820fd9047..d3770d791f 100644 --- a/micropython/trezorhal/usbd_conf.c +++ b/micropython/trezorhal/usbd_conf.c @@ -32,10 +32,11 @@ /* Includes ------------------------------------------------------------------*/ #include STM32_HAL_H #include "usbd_core.h" -#include "py/obj.h" -#include "irq.h" #include "usb.h" +#define IRQ_PRI_OTG_FS 6 +#define IRQ_SUBPRI_OTG_FS 0 + /* Private typedef -----------------------------------------------------------*/ /* Private define ------------------------------------------------------------*/ /* Private macro -------------------------------------------------------------*/ diff --git a/micropython/trezorhal/usbd_conf.h b/micropython/trezorhal/usbd_conf.h index 668a5558dc..6fd23bf7b1 100644 --- a/micropython/trezorhal/usbd_conf.h +++ b/micropython/trezorhal/usbd_conf.h @@ -39,8 +39,6 @@ #include #include -#include "py/mpconfig.h" - /* Exported types ------------------------------------------------------------*/ /* Exported constants --------------------------------------------------------*/ /* Common Config */