task_console.c
/*****************************************************
 * Needed to get printf to work using polling
 *****************************************************/
Needed to get printf to work using polling
Needed to get printf to work using polling
int fputc(int c, FILE* stream)
{
    while(EUSCI_A0->STATW & EUSCI_A_STATW_BUSY){};
    EUSCI_A0->TXBUF = c;
    return 0;
}
int fputc ( int c , FILE * stream ) { while ( EUSCI_A0 -> STATW & EUSCI_A_STATW_BUSY ) { } ; EUSCI_A0 -> TXBUF = c ; return 0 ; }
Needed to get printf to work using polling
Needed to get printf to work using polling
// while UART is busy, wait //transmit the character