Moved echo.c -> echo.c.bak
Removed lwip support from BSP Added Command_Parser(), CPLD_exec() and CPLD_Write()
This commit is contained in:
@@ -28,7 +28,6 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include "xparameters.h"
|
||||
#include "netif/xadapter.h"
|
||||
#include "platform.h"
|
||||
#include "platform_config.h"
|
||||
#if defined (__arm__) || defined(__aarch64__)
|
||||
@@ -68,7 +67,6 @@ int main()
|
||||
|
||||
xil_printf("[I] Board Init Complete!\r\n[I] Waiting for Command...\r\n");
|
||||
/* receive and process Instructions */
|
||||
int len = 0;
|
||||
while (1)
|
||||
{
|
||||
int Status = -255;
|
||||
@@ -77,34 +75,11 @@ int main()
|
||||
{
|
||||
xil_printf("[E] UART Receive ERROR!!! Check PrintOut Ahead\r\n");
|
||||
}
|
||||
switch (recvbuffer[0])
|
||||
else if (Status > 0)
|
||||
{
|
||||
case 0xA0:
|
||||
{
|
||||
xil_printf("[D] Matched Command Reset\r\n");
|
||||
rst_CPLD(CPLD_U1,4);
|
||||
rst_CPLD(CPLD_U2,4);
|
||||
rst_CPLD(CPLD_U3,4);
|
||||
xil_printf("[I] CPLD RST Done\r\n");
|
||||
break;
|
||||
}
|
||||
case 0xA1: //PMU Cal
|
||||
{
|
||||
break;
|
||||
}
|
||||
case 0xA2: //Freq Cal
|
||||
{
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
{
|
||||
xil_printf("[E] Command Header No Match! \r\n[D] Received Command Header:0x%02X Check Command!\r\n",recvbuffer[0]);
|
||||
break;
|
||||
}
|
||||
|
||||
Command_Parser(recvbuffer);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/* never reached */
|
||||
|
||||
Reference in New Issue
Block a user