remote: Packets may be larger than 256 bytes.

This commit is contained in:
Uwe Bonnes 2021-09-19 16:47:33 +02:00 committed by UweBonnes
parent 88cce08ce4
commit db1f13db25
2 changed files with 6 additions and 6 deletions

View File

@ -133,7 +133,7 @@ static ADIv5_DP_t remote_dp = {
};
void remotePacketProcessSWD(uint8_t i, char *packet)
static void remotePacketProcessSWD(unsigned i, char *packet)
{
uint8_t ticks;
uint32_t param;
@ -184,7 +184,7 @@ void remotePacketProcessSWD(uint8_t i, char *packet)
}
}
void remotePacketProcessJTAG(uint8_t i, char *packet)
static void remotePacketProcessJTAG(unsigned i, char *packet)
{
uint32_t MS;
uint64_t DO;
@ -267,7 +267,7 @@ void remotePacketProcessJTAG(uint8_t i, char *packet)
}
}
void remotePacketProcessGEN(uint8_t i, char *packet)
static void remotePacketProcessGEN(unsigned i, char *packet)
{
(void)i;
@ -324,7 +324,7 @@ void remotePacketProcessGEN(uint8_t i, char *packet)
}
}
void remotePacketProcessHL(uint8_t i, char *packet)
static void remotePacketProcessHL(unsigned i, char *packet)
{
(void)i;
@ -428,7 +428,7 @@ void remotePacketProcessHL(uint8_t i, char *packet)
}
void remotePacketProcess(uint8_t i, char *packet)
void remotePacketProcess(unsigned i, char *packet)
{
switch (packet[0]) {
case REMOTE_SWDP_PACKET:

View File

@ -178,6 +178,6 @@
'%','0', '2', 'x', '%','0','2','x', HEX_U32(address), HEX_U32(count), 0}
uint64_t remotehston(uint32_t limit, char *s);
void remotePacketProcess(uint8_t i, char *packet);
void remotePacketProcess(unsigned int i, char *packet);
#endif