Skip to content

Commit

Permalink
Add Tamarin
Browse files Browse the repository at this point in the history
  • Loading branch information
nezza committed May 21, 2024
1 parent 3b09963 commit 0896f2e
Show file tree
Hide file tree
Showing 7 changed files with 550 additions and 2 deletions.
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ m4_define([ADAPTER_OPT], [m4_translit(ADAPTER_ARG($1), [_], [-])])

m4_define([USB1_ADAPTERS],
[[[ftdi], [MPSSE mode of FTDI based devices], [FTDI]],
[[tamarin], [Tamarin Cable], [TAMARIN]],
[[stlink], [ST-Link Programmer], [HLADAPTER_STLINK]],
[[ti_icdi], [TI ICDI JTAG Programmer], [HLADAPTER_ICDI]],
[[ulink], [Keil ULINK JTAG Programmer], [ULINK]],
Expand Down
5 changes: 5 additions & 0 deletions src/jtag/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,11 @@ static int adapter_system_reset(int req_srst)

/* Maybe change SRST signal state */
if (jtag_srst != req_srst) {
if(adapter_driver->reset == NULL) {
LOG_ERROR("adapter_driver->reset is NULL");
return ERROR_FAIL;
}

retval = adapter_driver->reset(0, req_srst);
if (retval != ERROR_OK) {
LOG_ERROR("SRST error");
Expand Down
3 changes: 3 additions & 0 deletions src/jtag/drivers/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ endif
if FTDI
DRIVERFILES += %D%/ftdi.c %D%/mpsse.c
endif
if TAMARIN
DRIVERFILES += %D%/tamarin.c
endif
if LINUXGPIOD
DRIVERFILES += %D%/linuxgpiod.c
endif
Expand Down
Loading

0 comments on commit 0896f2e

Please sign in to comment.