From 1f837c45724419a8cfb6d228f0c0d67f9c05e54f Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Tue, 4 Apr 2017 01:12:22 +0200 Subject: [PATCH] trezorhal: remove dependency on py/ --- micropython/trezorhal/usbd_conf.c | 5 +++-- micropython/trezorhal/usbd_conf.h | 2 -- 2 files changed, 3 insertions(+), 4 deletions(-) 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 */