diff options
author | Damien George <damien.p.george@gmail.com> | 2015-04-18 16:17:14 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-04-18 21:40:59 +0100 |
commit | 5a11086d64cfc824958fbf382251c83d83d4e6ee (patch) | |
tree | 9c7beed5b6864e6c13493d3910e63f57dfbe9bdb | |
parent | d15fe5a6b32c669eb7eade36a0558917ff034d37 (diff) | |
download | micropython-5a11086d64cfc824958fbf382251c83d83d4e6ee.tar.gz micropython-5a11086d64cfc824958fbf382251c83d83d4e6ee.zip |
stmhal: Allow extint.c to compile without USB HS support.
-rw-r--r-- | stmhal/extint.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/stmhal/extint.c b/stmhal/extint.c index cda393ed8a..4c45e57246 100644 --- a/stmhal/extint.c +++ b/stmhal/extint.c @@ -102,7 +102,10 @@ typedef struct { STATIC uint32_t pyb_extint_mode[EXTI_NUM_VECTORS]; #if !defined(ETH) -#define ETH_WKUP_IRQn 62 // The 405 doesn't have ETH, but we want a value to put in our table +#define ETH_WKUP_IRQn 62 // Some MCUs don't have ETH, but we want a value to put in our table +#endif +#if !defined(OTG_HS_WKUP_IRQn) +#define OTG_HS_WKUP_IRQn 76 // Some MCUs don't have HS, but we want a value to put in our table #endif STATIC const uint8_t nvic_irq_channel[EXTI_NUM_VECTORS] = { |