aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/stm32/stm32g0.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stm32/stm32g0.c b/src/stm32/stm32g0.c
index 7408612a..819a5edd 100644
--- a/src/stm32/stm32g0.c
+++ b/src/stm32/stm32g0.c
@@ -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)