sense srst
git-svn-id: svn://svn.berlios.de/openocd/trunk@1154 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
parent
6707cf5b9a
commit
1360ae4487
|
@ -102,9 +102,15 @@ static bool readSRST()
|
||||||
return srstAsserted;
|
return srstAsserted;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int zy1000_srst_asserted(int *srst_asserted)
|
||||||
|
{
|
||||||
|
*srst_asserted=readSRST();
|
||||||
|
return ERROR_OK;
|
||||||
|
}
|
||||||
|
|
||||||
static int zy1000_power_dropout(int *dropout)
|
static int zy1000_power_dropout(int *dropout)
|
||||||
{
|
{
|
||||||
*dropout=readPowerDropout(); /* by default we can't detect power dropout */
|
*dropout=readPowerDropout();
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -120,6 +126,7 @@ jtag_interface_t zy1000_interface =
|
||||||
.khz = zy1000_khz,
|
.khz = zy1000_khz,
|
||||||
.speed_div = zy1000_speed_div,
|
.speed_div = zy1000_speed_div,
|
||||||
.power_dropout = zy1000_power_dropout,
|
.power_dropout = zy1000_power_dropout,
|
||||||
|
.srst_asserted = zy1000_srst_asserted,
|
||||||
};
|
};
|
||||||
|
|
||||||
bitbang_interface_t zy1000_bitbang =
|
bitbang_interface_t zy1000_bitbang =
|
||||||
|
|
Loading…
Reference in New Issue