more impl.
This commit is contained in:
@@ -6,9 +6,11 @@ extern void USB_Istr (void);
|
||||
|
||||
CH_IRQ_HANDLER (Vector90) {
|
||||
CH_IRQ_PROLOGUE();
|
||||
chSysLockFromIsr();
|
||||
|
||||
USB_Istr();
|
||||
|
||||
chSysUnlockFromIsr();
|
||||
CH_IRQ_EPILOGUE();
|
||||
}
|
||||
|
||||
@@ -17,9 +19,9 @@ void usb_lld_init (void) {
|
||||
NVICEnableVector (USB_LP_CAN1_RX0_IRQn,
|
||||
CORTEX_PRIORITY_MASK (STM32_USB_IRQ_PRIORITY));
|
||||
/*
|
||||
* Note that we also have other IRQs:
|
||||
* USB_HP_CAN1_TX_IRQn
|
||||
* USBWakeUp_IRQn
|
||||
* Note that we also have other IRQ(s):
|
||||
* USB_HP_CAN1_TX_IRQn (for double-buffered or isochronous)
|
||||
* USBWakeUp_IRQn (suspend/resume)
|
||||
*/
|
||||
RCC->APB1RSTR = RCC_APB1RSTR_USBRST;
|
||||
RCC->APB1RSTR = 0;
|
||||
|
||||
Reference in New Issue
Block a user