aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2018-05-09 08:37:51 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2018-05-09 08:37:51 +0000
commit85d08595ab2e14aa8e5fa682cbaf60f599c4245b (patch)
tree8b7601ee99733317986a867e67e306e17fe3337b /os/hal
parentd4481fd211ea38aba3b32ace750834e5783f05e9 (diff)
downloadChibiOS-85d08595ab2e14aa8e5fa682cbaf60f599c4245b.tar.gz
ChibiOS-85d08595ab2e14aa8e5fa682cbaf60f599c4245b.tar.bz2
ChibiOS-85d08595ab2e14aa8e5fa682cbaf60f599c4245b.zip
Fixed OTG base address for STM32H7.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12016 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/hal')
-rw-r--r--os/hal/ports/STM32/LLD/OTGv1/stm32_otg.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/os/hal/ports/STM32/LLD/OTGv1/stm32_otg.h b/os/hal/ports/STM32/LLD/OTGv1/stm32_otg.h
index feeb3906f..0ea731405 100644
--- a/os/hal/ports/STM32/LLD/OTGv1/stm32_otg.h
+++ b/os/hal/ports/STM32/LLD/OTGv1/stm32_otg.h
@@ -897,15 +897,20 @@ typedef struct {
#define PCGCCTL_STPPCLK (1U<<0) /**< Stop PCLK. */
/** @} */
+#if defined(STM32H7XX) || defined(__DOXYGEN__)
/**
* @brief OTG_FS registers block memory address.
*/
-#define OTG_FS_ADDR 0x50000000
+#define OTG_FS_ADDR 0x40080000
/**
* @brief OTG_HS registers block memory address.
*/
#define OTG_HS_ADDR 0x40040000
+#else
+#define OTG_FS_ADDR 0x50000000
+#define OTG_HS_ADDR 0x40040000
+#endif
/**
* @brief Accesses to the OTG_FS registers block.