diff options
author | Travis Robinson <libusbdotnet@gmail.com> | 2018-05-28 21:22:52 +0300 |
---|---|---|
committer | Dmitry <dmitrystu@gmail.com> | 2018-06-03 19:24:59 +0300 |
commit | 7528ec83cc414432b0cd7760e293eac5c866198d (patch) | |
tree | 9c320bb62351fab44d8ad976cff8811597d6e5cd | |
parent | 7918a4e3fd42fa3f41ba454d0824384d6638ed2a (diff) |
Updates for STM32F103xE
I think this is a typo in memmap.inc. I'm using a 103RE and the define is capitalized.
-rw-r--r-- | demo/cdc_loop.c | 3 | ||||
-rw-r--r-- | src/memmap.inc | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/demo/cdc_loop.c b/demo/cdc_loop.c index 649659d..cd76abc 100644 --- a/demo/cdc_loop.c +++ b/demo/cdc_loop.c @@ -297,6 +297,9 @@ static void cdc_init_usbd(void) { #elif defined(STM32F103x6) #define USB_HANDLER USB_LP_CAN1_RX0_IRQHandler #define USB_NVIC_IRQ USB_LP_CAN1_RX0_IRQn +#elif defined(STM32F103xE) + #define USB_HANDLER USB_LP_CAN1_RX0_IRQHandler + #define USB_NVIC_IRQ USB_LP_CAN1_RX0_IRQn #elif defined(STM32F429xx) #define USB_HANDLER OTG_FS_IRQHandler #define USB_NVIC_IRQ OTG_FS_IRQn diff --git a/src/memmap.inc b/src/memmap.inc index 26b5a47..dc6f345 100644 --- a/src/memmap.inc +++ b/src/memmap.inc @@ -71,7 +71,7 @@ #endif #elif defined(STM32F102x6) || defined(STM32F102xB) || \ defined(STM32F103x6) || defined(STM32F103xB) || \ - defined(stm32F103xE) || defined(STM32F103xG) + defined(STM32F103xE) || defined(STM32F103xG) #define USB_EPBASE 0x40005C00 #define USB_REGBASE 0x40005C40 #define USB_CNTR 0x00 |