From b412ef4b249d100442bbf31bbcfb0280eff36bd6 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Mon, 10 Apr 2017 18:38:54 +0200 Subject: [PATCH] trezorhal: usbd - fix typo --- micropython/trezorhal/usbd_conf.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/micropython/trezorhal/usbd_conf.c b/micropython/trezorhal/usbd_conf.c index d26318c7eb..d2179b8844 100644 --- a/micropython/trezorhal/usbd_conf.c +++ b/micropython/trezorhal/usbd_conf.c @@ -56,6 +56,9 @@ #define IRQ_PRI_OTG_FS 6 #define IRQ_SUBPRI_OTG_FS 0 +#define IRQ_PRI_OTG_HS 6 +#define IRQ_SUBPRI_OTG_HS 0 + /* Private typedef -----------------------------------------------------------*/ /* Private define ------------------------------------------------------------*/ /* Private macro -------------------------------------------------------------*/ @@ -226,7 +229,7 @@ void HAL_PCD_MspInit(PCD_HandleTypeDef *hpcd) #endif // !USE_USB_HS_IN_FS /* Set USBHS Interrupt to the lowest priority */ - HAL_NVIC_SetPriority(OTG_FS_IRQn, IRQ_PRI_OTG_FS, IRQ_SUBPRI_OTG_FS); + HAL_NVIC_SetPriority(OTG_HS_IRQn, IRQ_PRI_OTG_HS, IRQ_SUBPRI_OTG_HS); /* Enable USBHS Interrupt */ HAL_NVIC_EnableIRQ(OTG_HS_IRQn);