uC/AVR/PIO_Project/MainControlBoard/src/misc.c
void print_debug(const char *c)
{
    char tbuff[64];                                // allocate buffer
    sprintf(tbuff, c);                                      // print to buffer
    while(uart_tx_buffer_state(DEBUG_UART) < strlen(tbuff)) vTaskDelay(15 / portTICK_PERIOD_MS);         // wait until enough space is free in tx buffer
    uart_puts(DEBUG_UART, tbuff);                                    // simply call function
}
/**
 *  @brief transmits debug messages (const char*) via UART1
 * 
 *  @param c: char pointer with debug message
 * 
 * */
@brief transmits debug messages (const char*) via UART1

@param c: char pointer with debug message
@brief transmits debug messages ( const char * ) via UART1 @param c : char pointer with debug message
void print_debug(const char *c)
{
    char tbuff[64];                                
    sprintf(tbuff, c);                                      
    while(uart_tx_buffer_state(DEBUG_UART) < strlen(tbuff)) vTaskDelay(15 / portTICK_PERIOD_MS);         
    uart_puts(DEBUG_UART, tbuff);                                    
}
void print_debug ( const char * c ) { char tbuff [ 64 ] ; sprintf ( tbuff , c ) ; while ( uart_tx_buffer_state ( DEBUG_UART ) < strlen ( tbuff ) ) vTaskDelay ( 15 / portTICK_PERIOD_MS ) ; uart_puts ( DEBUG_UART , tbuff ) ; }
@brief transmits debug messages (const char*) via UART1
@brief transmits debug messages ( const char * ) via UART1
// allocate buffer // print to buffer // wait until enough space is free in tx buffer // simply call function