application: decrease SWD frequency for periodic clock

This commit is contained in:
King Kévin 2021-03-22 11:58:02 +01:00
parent 61d3f84403
commit 2427dab57b
1 changed files with 1 additions and 1 deletions

View File

@ -1187,7 +1187,7 @@ void main(void)
if (!swd_set_pins(GPIO_PORT(PB10), GPIO_PIN(PB10), GPIO_PORT(PB2), GPIO_PIN(PB2))) {
puts("unknown pins\n");
} else {
swd_setup(100000); // setup SWD clock to 100 KHz, slow enough for any target and loose connection
swd_setup(50000); // setup SWD clock to 50 KHz, slow enough for any target and loose connection
puts("OK\n");
}