#include "system.h"
#include "test.h"
// ***** macro definition *****

// Driver instance
XGpioPs gpio;
XScuGic gic;
XAxiDma dma;
XUartPs uart;

u8 uartRecvBuf[70];

int main(void)
{
    LOG_BLANK_LINE;
    LOG_BLANK_LINE;
    Xil_DCacheDisable();
    xil_printf(INFO_MSG("Program Compile Date: %s"), __DATE__);
    int32_t status;

    // Init system
    status = InitSystem();
    CHECK_STATUS(status, ERROR_MSG("system init fail"));
    int32_t gain = 0;
    while (true)
    {
        // push stack !!! this can't be delete, and must be in the while loop
        xemacif_input(netif);
    }

    return 0;
}
