}
void
UARTSend(uint32_t ui32UARTBase, const uint8_t *pui8Buffer, uint32_t ui32Count)
{
//
// Loop while there are more characters to send.
//
while(ui32Count--)
{
//
// Write the next character to the UART.
//
MAP_UARTCharPut(ui32UARTBase, *pui8Buffer++);
}
}
// í¨1yUART·¢Ëíò»¸ö×Ö·û
void uartPutc(const char c)
{
UARTCharPut(UART3_BASE, c);
}
//
// Wait for the UART module to complete transmitting.
//
while(MAP_UARTBusy(UART3_BASE))
{
}
// UARTSend(UART3_BASE, (uint8_t *)"\n\rReceiving : ",
// strlen("\n\rReceiving : "));
//
// Read data from the UART's receive FIFO and store it.
//
for(ui32index = 0 ; ui32index < 4 ; ui32index++)
{
//
// Get the data received by the UART at its receive FIFO
//
ui8DataRx[ui32index] = UARTCharGet(UART3_BASE);
}
}
void
UARTSend(uint32_t ui32UARTBase, const uint8_t *pui8Buffer, uint32_t ui32Count)
{
//
// Loop while there are more characters to send.
//
while(ui32Count--)
{
//
// Write the next character to the UART.
//
MAP_UARTCharPut(ui32UARTBase, *pui8Buffer++);
}
}
// í¨1yUART·¢Ëíò»¸ö×Ö·û
void uartPutc(const char c)
{
UARTCharPut(UART3_BASE, c);
}