Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cc2501 commit 44c7b90Copy full SHA for 44c7b90
platforms/nuttx/src/bootloader/stm32h7/main.c
@@ -311,6 +311,7 @@ board_deinit(void)
311
312
#if INTERFACE_USB
313
px4_arch_configgpio(MK_GPIO_INPUT(GPIO_OTGFS_VBUS));
314
+ putreg32(RCC_AHB1RSTR_OTGFSRST, STM32_RCC_AHB1RSTR);
315
#endif
316
317
#if defined(BOARD_FORCE_BL_PIN_IN) && defined(BOARD_FORCE_BL_PIN_OUT)
@@ -342,7 +343,10 @@ board_deinit(void)
342
343
344
345
- /* disable the AHB peripheral clocks */
346
+
347
+ /* Clear any RSTR set above and disable the AHB peripheral clocks */
348
349
+ putreg32(0, STM32_RCC_AHB1RSTR);
350
putreg32(0, STM32_RCC_AHB1ENR);
351
}
352
0 commit comments