TRST only exists on hardware version 0
This commit is contained in:
parent
42e41edfa1
commit
c1b1d45155
|
@ -42,10 +42,12 @@ int jtagtap_init(void)
|
||||||
void jtagtap_reset(void)
|
void jtagtap_reset(void)
|
||||||
{
|
{
|
||||||
#ifdef TRST_PORT
|
#ifdef TRST_PORT
|
||||||
volatile int i;
|
if (platform_hwversion() == 0) {
|
||||||
gpio_clear(TRST_PORT, TRST_PIN);
|
volatile int i;
|
||||||
for(i = 0; i < 10000; i++) asm("nop");
|
gpio_clear(TRST_PORT, TRST_PIN);
|
||||||
gpio_set(TRST_PORT, TRST_PIN);
|
for(i = 0; i < 10000; i++) asm("nop");
|
||||||
|
gpio_set(TRST_PORT, TRST_PIN);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
jtagtap_soft_reset();
|
jtagtap_soft_reset();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue