Skip to content

Commit

Permalink
Initial (untested in hardware) HS2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
azonenberg committed Aug 27, 2018
1 parent c89392f commit 6d0da0d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
14 changes: 14 additions & 0 deletions FTDIJtagInterface.cpp
Expand Up @@ -453,6 +453,20 @@ void FTDIJtagInterface::SharedCtorInit(uint32_t type, const string& layout)
SetGpioValueDeferred(3, true);
}

//Digilent HS2
//per https://sourceforge.net/p/xc3sprog/bugs/16/#1013/4c91/1c07
//"HS1/HS2 DISABLE buffer by default, if D7 (HS1) or D7..D5(HS2) are not 1, then output drivers are not enabled"
else if(layout == "hs2")
{
//GPIOL3...L1 are active HIGH output enable
SetGpioDirectionDeferred(3, true);
SetGpioDirectionDeferred(2, true);
SetGpioDirectionDeferred(1, true);
SetGpioValueDeferred(3, true);
SetGpioValueDeferred(2, true);
SetGpioValueDeferred(1, true);
}

//JTAGKey (or compatible bus blaster etc)
else if(layout == "jtagkey")
{
Expand Down
3 changes: 2 additions & 1 deletion FTDIJtagInterface.h
Expand Up @@ -2,7 +2,7 @@
* *
* ANTIKERNEL v0.1 *
* *
* Copyright (c) 2012-2016 Andrew D. Zonenberg *
* Copyright (c) 2012-2018 Andrew D. Zonenberg *
* All rights reserved. *
* *
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the *
Expand Down Expand Up @@ -67,6 +67,7 @@
Name | Example hardware | Pin configuration
-----|------------------|--------------------
hs1 | Digilent JTAG-HS1, Digilent JTAG-SMT2, azonenberg's usb-jtag-mini | ADBUS7 is active-high output enable
hs2 | Digilent JTAG-HS2 | ADBUS7...5 are active-high output enable
jtagkey | Amontec JTAGkey, Bus Blaster w/ JTAGkey compatible buffer | ADBUS4 is active-low output enable, ACBUS0 is TRST_N, ACBUS2 is active-low output enable for TRST_N
\ingroup interfaces
Expand Down

0 comments on commit 6d0da0d

Please sign in to comment.