调整 中断优先级

This commit is contained in:
shanggl 2022-10-03 20:11:07 +08:00
parent b2a471a866
commit b151f41df5
1 changed files with 2 additions and 2 deletions

View File

@ -242,8 +242,8 @@ uint8_t mscStart(void)
/* select usb 48m clcok source */ /* select usb 48m clcok source */
msc_usb_clock48m_select(USB_CLK_HEXT); msc_usb_clock48m_select(USB_CLK_HEXT);
/* enable otgfs irq */ /* enable otgfs irq 使用NVIC_PRIO_USB(2,0) 优先级否则会打断SPI dma 传输*/
nvic_irq_enable(OTG_IRQ, 0, 0); nvic_irq_enable(OTG_IRQ, NVIC_PRIORITY_BASE(NVIC_PRIO_USB), NVIC_PRIORITY_SUB(NVIC_PRIO_USB));
usbd_init(&otg_core_struct, usbd_init(&otg_core_struct,
USB_FULL_SPEED_CORE_ID, USB_FULL_SPEED_CORE_ID,