mirror of
https://github.com/andreili/klipper.git
synced 2025-08-24 03:44:06 +02:00
stm32g0: Disable internal pull-down resistors on UCPDx CCx pins, because klipper never uses UCPD (#6462)
Signed-off-by: Alan.Ma from BigTreeTech <tech@biqu3d.com>
This commit is contained in:
parent
d785b396a7
commit
daf875e6e4
@ -162,6 +162,8 @@ bootloader_request(void)
|
|||||||
void
|
void
|
||||||
armcm_main(void)
|
armcm_main(void)
|
||||||
{
|
{
|
||||||
|
// Disable internal pull-down resistors on UCPDx CCx pins
|
||||||
|
SYSCFG->CFGR1 |= (SYSCFG_CFGR1_UCPD1_STROBE | SYSCFG_CFGR1_UCPD2_STROBE);
|
||||||
SCB->VTOR = (uint32_t)VectorTable;
|
SCB->VTOR = (uint32_t)VectorTable;
|
||||||
|
|
||||||
// Reset clock registers (in case bootloader has changed them)
|
// Reset clock registers (in case bootloader has changed them)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user