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:
BIGTREETECH 2024-01-22 09:23:12 +08:00 committed by GitHub
parent d785b396a7
commit daf875e6e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -162,6 +162,8 @@ bootloader_request(void)
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;
// Reset clock registers (in case bootloader has changed them)