mirror of
https://github.com/andreili/katapult.git
synced 2025-08-23 11:24:06 +02:00
stm32g0.c: Disable UCPD on boot
The UCPD is not used with Katapult but it can result in unexpected behaviour on certain pins due to the internal pull resistors unless disabled. Signed-off-by: Luke Harrison looxonline@gmail.com
This commit is contained in:
parent
ec4df2e45a
commit
6a7ca81e4f
@ -145,6 +145,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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user