Platform/ECM3532/DSP/hw/csp/ecm3532/src/eta_csp_io.c
/***************************************************************************/
/**
 *
 *  EtaCspIoDebugUartPutc - explicit call of Putc for the DSP DEBUG UART.
 *
 *  @param cChar - character to print
 *
 ******************************************************************************/
explicit call of Putc for the DSP DEBUG UART.
@param cChar - character to print
explicit call of Putc for the DSP DEBUG UART . @param cChar - character to print
void
EtaCspIoDebugUartPutc(const char cChar)
{
     Wait for the transmitter to finish before sending in all cases.
    while((REG_DSPCTRL_DSP_DSP_UART & BM_DSPCTRL_DSP_DSP_UART_BUSY) != 0)
    {
    }
     OK, send the character to the DSP UART. It is safe right now.
    REG_DSPCTRL_DSP_DSP_UART = cChar;
     Wait for the transmitter to finish before exiting.
     This is critical to being able to send characters on both the base
     level and in an ISR context in the same program.
    while((REG_DSPCTRL_DSP_DSP_UART & BM_DSPCTRL_DSP_DSP_UART_BUSY) != 0)
    {
    }
}
void EtaCspIoDebugUartPutc ( const char cChar ) { while ( ( REG_DSPCTRL_DSP_DSP_UART & BM_DSPCTRL_DSP_DSP_UART_BUSY ) != 0 ) { } REG_DSPCTRL_DSP_DSP_UART = cChar ; while ( ( REG_DSPCTRL_DSP_DSP_UART & BM_DSPCTRL_DSP_DSP_UART_BUSY ) != 0 ) { } }
EtaCspIoDebugUartPutc - explicit call of Putc for the DSP DEBUG UART.
EtaCspIoDebugUartPutc - explicit call of Putc for the DSP DEBUG UART .
// // Wait for the transmitter to finish before sending in all cases. // // // OK, send the character to the DSP UART. It is safe right now. // // // Wait for the transmitter to finish before exiting. // This is critical to being able to send characters on both the base // level and in an ISR context in the same program. //