remote: Implemented support for target clock tristating
This commit is contained in:
parent
01110a206b
commit
84527d501b
|
@ -261,7 +261,6 @@ static void remote_packet_process_jtag(unsigned i, char *packet)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void remotePacketProcessGEN(unsigned i, char *packet)
|
static void remotePacketProcessGEN(unsigned i, char *packet)
|
||||||
|
|
||||||
{
|
{
|
||||||
(void)i;
|
(void)i;
|
||||||
uint32_t freq;
|
uint32_t freq;
|
||||||
|
@ -320,6 +319,11 @@ static void remotePacketProcessGEN(unsigned i, char *packet)
|
||||||
remote_respond_string(REMOTE_RESP_OK, PLATFORM_IDENT "" FIRMWARE_VERSION);
|
remote_respond_string(REMOTE_RESP_OK, PLATFORM_IDENT "" FIRMWARE_VERSION);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case REMOTE_TARGET_CLK_OE:
|
||||||
|
platform_target_clk_output_enable(packet[2] != '0');
|
||||||
|
remote_respond(REMOTE_RESP_OK, 0);
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
remote_respond(REMOTE_RESP_ERR, REMOTE_ERROR_UNRECOGNISED);
|
remote_respond(REMOTE_RESP_ERR, REMOTE_ERROR_UNRECOGNISED);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -67,6 +67,7 @@
|
||||||
#define REMOTE_TDITDO_NOTMS 'd'
|
#define REMOTE_TDITDO_NOTMS 'd'
|
||||||
#define REMOTE_CYCLE 'c'
|
#define REMOTE_CYCLE 'c'
|
||||||
#define REMOTE_IN_PAR 'I'
|
#define REMOTE_IN_PAR 'I'
|
||||||
|
#define REMOTE_TARGET_CLK_OE 'E'
|
||||||
#define REMOTE_FREQ_SET 'F'
|
#define REMOTE_FREQ_SET 'F'
|
||||||
#define REMOTE_FREQ_GET 'f'
|
#define REMOTE_FREQ_GET 'f'
|
||||||
#define REMOTE_IN 'i'
|
#define REMOTE_IN 'i'
|
||||||
|
@ -143,6 +144,11 @@
|
||||||
{ \
|
{ \
|
||||||
REMOTE_SOM, REMOTE_GEN_PACKET, REMOTE_PWR_GET, REMOTE_EOM, 0 \
|
REMOTE_SOM, REMOTE_GEN_PACKET, REMOTE_PWR_GET, REMOTE_EOM, 0 \
|
||||||
}
|
}
|
||||||
|
#define REMOTE_TARGET_CLK_OE_STR \
|
||||||
|
(char[]) \
|
||||||
|
{ \
|
||||||
|
REMOTE_SOM, REMOTE_GEN_PACKET, REMOTE_TARGET_CLK_OE, '%', 'c', REMOTE_EOM, 0 \
|
||||||
|
}
|
||||||
|
|
||||||
/* SWDP protocol elements */
|
/* SWDP protocol elements */
|
||||||
#define REMOTE_SWDP_PACKET 'S'
|
#define REMOTE_SWDP_PACKET 'S'
|
||||||
|
|
Loading…
Reference in New Issue