Skip to content

Commit

Permalink
Modifying JTAG entry sequence on GPIO driver
Browse files Browse the repository at this point in the history
  • Loading branch information
Matheus Dal Mago committed Mar 2, 2018
1 parent 7c41acd commit 75e52cf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions drivers/jtaglib.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
*/

#include <stdlib.h>
#include <unistd.h>
#include "jtaglib.h"
#include "output.h"
#include "eem_defs.h"
Expand Down Expand Up @@ -412,21 +413,21 @@ unsigned int jtag_init(struct jtdev *p)
{
unsigned int jtag_id;

jtag_rst_clr(p);
jtag_rst_set(p);
jtag_tst_clr(p);
usleep(1000);
p->f->jtdev_power_on(p);

jtag_tdi_set(p);
jtag_tms_set(p);
jtag_tck_set(p);
jtag_tclk_set(p);

jtag_rst_set(p);
jtag_tst_clr(p);

jtag_tst_set(p);
jtag_rst_clr(p);
jtag_tst_clr(p);

jtag_tst_set(p);
jtag_rst_set(p);

p->f->jtdev_connect(p);
jtag_rst_set(p);
Expand Down
2 changes: 1 addition & 1 deletion drivers/jtdev_gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ static void jtgpio_power_off(struct jtdev *p)

static void jtgpio_connect(struct jtdev *p)
{
printf("JTAG_connct \n");
printf("JTAG_connect \n");
}

static void jtgpio_release(struct jtdev *p)
Expand Down

0 comments on commit 75e52cf

Please sign in to comment.