OpenCores
URL https://opencores.org/ocsvn/adv_debug_sys/adv_debug_sys/trunk

Subversion Repositories adv_debug_sys

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /adv_debug_sys
    from Rev 21 to Rev 22
    Reverse comparison

Rev 21 → Rev 22

/trunk/Software/adv_jtag_bridge/cable_parallel.c
150,9 → 150,20
{
uint8_t in;
int retval;
uint8_t out = 0;
 
retval = cable_parallel_inout(value, &in);
/* First convert the bits in value byte to the ones that the cable wants */
if(value & TCLK_BIT)
out |= 0x04; /* D2 pin 4 */
if(value & TRST_BIT)
out |= 0x08; /* D3 pin 5 */
if(value & TDI_BIT)
out |= 0x10; /* D4 pin 6 */
if(value & TMS_BIT)
out |= 0x20; /* D3 pin 5 */
 
retval = cable_parallel_inout(out, &in);
 
if(in & 0x20) /* S5 pin 12*/
*inval = 1;
else

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.