summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWojciech Klimek <[email protected]>2024-03-31 23:11:49 +0200
committerWojciech Klimek <[email protected]>2024-03-31 23:11:49 +0200
commit943a2a6db335d98843b73246fcce9aead0d38886 (patch)
treee04820bf410fdc557595f0f1a5a7e9c4ec730c30 /src
parent82dfe95655c7b7564363a2d5cb2f5e32d431b223 (diff)
Support for STM32H503 MCU
- added support for STM32H503RB on H503RB-NUCLEO board - modified H5 family.c file to allow portability between H503 and H565/H573 - redefined USB_DRD_BASE to USB_DRD_FS_BASE if STM32H503xx is used
Diffstat (limited to 'src')
-rw-r--r--src/portable/st/stm32_fsdev/dcd_stm32_fsdev.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.h b/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.h
index 5de25765d..8cedee5d1 100644
--- a/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.h
+++ b/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.h
@@ -115,6 +115,11 @@
#elif CFG_TUSB_MCU == OPT_MCU_STM32H5
#include "stm32h5xx.h"
#define FSDEV_BUS_32BIT
+
+ #ifdef STM32H503xx
+ #define USB_DRD_BASE USB_DRD_FS_BASE
+ #endif
+
#define FSDEV_PMA_SIZE (2048u)
#undef USB_PMAADDR
#define USB_PMAADDR USB_DRD_PMAADDR