Fixed OTG base address for STM32H7.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12016 110e8d01-0319-4d1e-a829-52ad28d1bb01
This commit is contained in:
Giovanni Di Sirio 2018-05-09 08:37:51 +00:00
parent d4481fd211
commit 85d08595ab
1 changed files with 6 additions and 1 deletions

View File

@ -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.