mirror of
https://github.com/andreili/klipper.git
synced 2025-08-23 19:34:06 +02:00
stm32h7: Always clear AHB1ENR at startup on stm32h7
Entirely clear the AHB1ENR register. There is no need to modify AHB1LPENR. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
da8e0a6e50
commit
5d1f773ffb
@ -86,11 +86,6 @@ DECL_CONSTANT_STR("RESERVE_PINS_crystal", "PH0,PH1");
|
||||
static void
|
||||
clock_setup(void)
|
||||
{
|
||||
#if !CONFIG_MACH_STM32H723
|
||||
// Ensure USB OTG ULPI is not enabled
|
||||
CLEAR_BIT(RCC->AHB1ENR, RCC_AHB1ENR_USB2OTGHSULPIEN);
|
||||
CLEAR_BIT(RCC->AHB1LPENR, RCC_AHB1LPENR_USB2OTGHSULPILPEN);
|
||||
#endif
|
||||
// Set this despite correct defaults.
|
||||
// "The software has to program the supply configuration in PWR control
|
||||
// register 3" (pg. 259)
|
||||
@ -239,6 +234,7 @@ armcm_main(void)
|
||||
RCC->APB2ENR = 0x00000000;
|
||||
RCC->APB3ENR = 0x00000000;
|
||||
RCC->APB4ENR = 0x00000000;
|
||||
RCC->AHB1ENR = 0x00000000;
|
||||
|
||||
SCB->VTOR = (uint32_t)VectorTable;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user