/******************************************************************************* * Function Name: SCB_1_UartPutString ****************************************************************************//** * * Places a NULL terminated string in the transmit buffer to be sent at the * next available bus time. * This function is blocking and waits until there is a space available to put * requested data in transmit buffer. * * \param string: pointer to the null terminated string array to be placed in the * transmit buffer. * *******************************************************************************/ void SCB_1_UartPutString(const char8 string[]) { uint32 bufIndex; bufIndex = 0u; /* Blocks the control flow until all data has been sent */ while(string[bufIndex] != ((char8) 0)) { SCB_1_UartPutChar((uint32) string[bufIndex]); bufIndex++; } }
static void iputc(char8 ch) { /*This function has to be replaced by user*/ SCB_1_UartPutChar(ch); }
/******************************************************************************* * Function Name: SCB_1_UartPutCRLF ****************************************************************************//** * * Places byte of data followed by a carriage return (0x0D) and line feed * (0x0A) in the transmit buffer. * This function is blocking and waits until there is a space available to put * all requested data in transmit buffer. * * \param txDataByte: the data to be transmitted. * *******************************************************************************/ void SCB_1_UartPutCRLF(uint32 txDataByte) { SCB_1_UartPutChar(txDataByte); /* Blocks control flow until all data has been sent */ SCB_1_UartPutChar(0x0Du); /* Blocks control flow until all data has been sent */ SCB_1_UartPutChar(0x0Au); /* Blocks control flow until all data has been sent */ }