We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33e07fc commit 80c9c18Copy full SHA for 80c9c18
source/family/ambiq/ama3b1kk/target_reset.c
@@ -69,7 +69,7 @@ uint8_t swd_set_state_ama3b1kk(target_state_t state)
69
// Enable debug and halt the core (DHCSR <- 0xA05F0003)
70
while (swd_write_word(DBG_HCSR, DBGKEY | C_DEBUGEN | C_HALT) == 0) {
71
if (--ap_retries <= 0) {
72
- return 0;
+ return 0;
73
}
74
// Target is in invalid state?
75
swd_set_target_reset(1);
@@ -170,7 +170,6 @@ uint8_t swd_set_state_ama3b1kk(target_state_t state)
170
if (!swd_write_word(DBG_HCSR, DBGKEY | C_DEBUGEN)) {
171
return 0;
172
173
-
174
break;
175
176
default:
0 commit comments