Skip to content

Commit 5a11086

Browse files
committed
stmhal: Allow extint.c to compile without USB HS support.
1 parent d15fe5a commit 5a11086

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

stmhal/extint.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,10 @@ typedef struct {
102102
STATIC uint32_t pyb_extint_mode[EXTI_NUM_VECTORS];
103103

104104
#if !defined(ETH)
105-
#define ETH_WKUP_IRQn 62 // The 405 doesn't have ETH, but we want a value to put in our table
105+
#define ETH_WKUP_IRQn 62 // Some MCUs don't have ETH, but we want a value to put in our table
106+
#endif
107+
#if !defined(OTG_HS_WKUP_IRQn)
108+
#define OTG_HS_WKUP_IRQn 76 // Some MCUs don't have HS, but we want a value to put in our table
106109
#endif
107110

108111
STATIC const uint8_t nvic_irq_channel[EXTI_NUM_VECTORS] = {

0 commit comments

Comments
 (0)