Skip to content

Commit f90b535

Browse files
committed
Fix f103 usb interrupts
The USB OTG interrupt is not applicable for our hardware
1 parent 8a0c9ef commit f90b535

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/stm32f103/bluepill/config.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323

2424
#define CAN_RX_AVAILABLE 0
2525
#define CAN_TX_AVAILABLE 0
26-
#define USB_NVIC_LINE NVIC_OTG_FS_IRQ
27-
#define USB_IRQ_NAME otg_fs_isr
26+
#define USB_NVIC_LINE NVIC_USB_LP_CAN_RX0_IRQ
27+
#define USB_IRQ_NAME usb_lp_can_rx0_isr
2828

2929
#define VCDC_AVAILABLE 0
3030
#define VCDC_TX_BUFFER_SIZE 128

src/stm32f103/stlinkv2-1/config.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
#define CONFIG_H_INCLUDED
2121

2222
#define PRODUCT_NAME "DAP103"
23-
#define USB_NVIC_LINE NVIC_OTG_FS_IRQ
24-
#define USB_IRQ_NAME otg_fs_isr
23+
#define USB_NVIC_LINE NVIC_USB_LP_CAN_RX0_IRQ
24+
#define USB_IRQ_NAME usb_lp_can_rx0_isr
2525

2626
#define CAN_RX_AVAILABLE 0
2727
#define CAN_TX_AVAILABLE 0

src/stm32f103/stlinkv2-dongle/config.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
#define CONFIG_H_INCLUDED
2121

2222
#define PRODUCT_NAME "DAP103"
23-
#define USB_NVIC_LINE NVIC_OTG_FS_IRQ
24-
#define USB_IRQ_NAME otg_fs_isr
23+
#define USB_NVIC_LINE NVIC_USB_LP_CAN_RX0_IRQ
24+
#define USB_IRQ_NAME usb_lp_can_rx0_isr
2525

2626
#define CAN_RX_AVAILABLE 0
2727
#define CAN_TX_AVAILABLE 0

0 commit comments

Comments
 (0)