示例#1
0
文件: mri.c 项目: JaredCJR/mri
static void waitForGdbToConnect(void)
{
    for (;;)
    {
        waitForFirstCharFromHost();
        if (didHostSendGdbAckChar())
            return;
        Platform_CommWaitForReceiveDataToStop();
        Platform_CommPrepareToWaitForGdbConnection();
    }
}
示例#2
0
static void configureUartForExclusiveUseOfDebugger(UartParameters* pParameters)
{
    enablePowerToUart();
    setUartPeripheralClockTo1xCCLK();
    clearUartFractionalBaudDivisor();
    enableUartFifoAndDisableDma();
    setUartTo8N1();
    setUartBaudRate(pParameters);
    selectUartPins();
    enableUartToInterruptOnReceivedChar();
    Platform_CommPrepareToWaitForGdbConnection();
    configureNVICForUartInterrupt();
}