fix: Add nop instruction for timing purpose

Adding a nop instruction in the no_delay TMS sequence routine fixes timing on the f4discovery platform
This commit is contained in:
ylm 2022-07-29 21:30:57 -04:00 committed by Rachel Mant
parent 4d64edad7a
commit 84ffdd3b21
1 changed files with 1 additions and 0 deletions

View File

@ -108,6 +108,7 @@ static void jtagtap_tms_seq_no_delay(uint32_t tms_states, size_t ticks)
gpio_set_val(TMS_PORT, TMS_PIN, state);
gpio_set(TCK_PORT, TCK_PIN);
tms_states >>= 1;
__asm__("nop");
ticks--;
gpio_clear(TCK_PORT, TCK_PIN);
}