uC/AVR/PIO_Project/MainControlBoard/lib/uart/uart.c
void uart_puts(uint8_t uart_if, char* s)
{

    if(uart_if > (N_UARTS-1)){
        return;                         // uart > 3 doesn't exist!
    }
    
    uint8_t n = 0;          // variable to keep track on bytes, so it desn't exceed BUFFER_SIZE (safety feature)
    
    while(*s != '\0'){
        uart_putc(uart_if, *s);
        n++; 
        s++;

        if(n > BUFFER_SIZE)
            return;
    }

}
/**
 *  @brief transmit a byte string via a selected uart port in interrupt mode
 *  
 *  @param uart_if: select uart interface (1 - 4)
 *  @param s: char array with zero termination
 * 
 * */
@brief transmit a byte string via a selected uart port in interrupt mode

@param uart_if: select uart interface (1 - 4)
@param s: char array with zero termination
@brief transmit a byte string via a selected uart port in interrupt mode @param uart_if : select uart interface ( 1 - 4 ) @param s : char array with zero termination
void uart_puts(uint8_t uart_if, char* s)
{
    if(uart_if > (N_UARTS-1)){
        return;                         
    }
    uint8_t n = 0;          
    while(*s != '\0'){
        uart_putc(uart_if, *s);
        n++; 
        s++;
        if(n > BUFFER_SIZE)
            return;
    }
}
void uart_puts ( uint8_t uart_if , char * s ) { if ( uart_if > ( N_UARTS - 1 ) ) { return ; } uint8_t n = 0 ; while ( * s != ' \0 ' ) { uart_putc ( uart_if , * s ) ; n ++ ; s ++ ; if ( n > BUFFER_SIZE ) return ; } }
@brief transmit a byte string via a selected uart port in interrupt mode
@brief transmit a byte string via a selected uart port in interrupt mode
// uart > 3 doesn't exist! // variable to keep track on bytes, so it desn't exceed BUFFER_SIZE (safety feature)