Fixed OSPI reset handling.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@16211 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2023-04-09 06:27:07 +00:00
parent 4a968c60bc
commit 31de937df3
1 changed files with 8 additions and 5 deletions

View File

@ -159,14 +159,17 @@ void hal_lld_init(void) {
latest writes could be lost.*/
__rccResetAHB1(~RCC_AHB1RSTR_DONOTTOUCH);
__rccResetAHB2(~0);
__rccResetAHB3(~(RCC_AHB3RSTR_FMCRST |
__rccResetAHB3(~(RCC_AHB3RSTR_FMCRST |
#if defined(STM32_QSPI_NO_RESET)
RCC_AHB3RSTR_QSPIRST |
RCC_AHB3RSTR_QSPIRST |
#endif
#if defined(STM32_OSPI_NO_RESET)
RCC_AHB3RSTR_OSPIRST |
#if defined(STM32_OSPI1_NO_RESET)
RCC_AHB3RSTR_OSPI1RST |
#endif
0x80000000U)); /* Was RCC_AHB3RSTR_CPURST in Rev-V.*/
#if defined(STM32_OSPI2_NO_RESET)
RCC_AHB3RSTR_OSPI2RST |
#endif
0x80000000U) /* Was RCC_AHB3RSTR_CPURST in Rev-V.*/
__rccResetAHB4(~(RCC_APB4RSTR_SYSCFGRST | STM32_GPIO_EN_MASK));
__rccResetAPB1L(~0);
__rccResetAPB1H(~0);