2019-02-24 20:15:39 +00:00
/*
* Code generated from Atmel Start .
*
* This file will be overwritten when reconfiguring your Atmel Start project .
* Please copy examples or other code you want to keep to a separate file or main . c
* to avoid loosing it when reconfiguring .
*/
# include "atmel_start.h"
# include "stdio_start.h"
2019-11-27 17:10:39 +00:00
# ifdef ENABLE_DBG_UART7
2019-04-03 19:00:09 +00:00
static void UART_debug_rx_cb ( const struct usart_async_rings_descriptor * const io_descr )
2019-02-24 20:15:39 +00:00
{
}
void stdio_redirect_init ( void )
{
2019-04-03 19:00:09 +00:00
usart_async_rings_register_callback ( & UART_debug , USART_ASYNC_RXC_CB , UART_debug_rx_cb ) ; // if no callback function is registered receive won't work, even if the callback does nothing
usart_async_rings_enable ( & UART_debug ) ;
2019-02-24 20:15:39 +00:00
stdio_io_init ( & UART_debug . io ) ;
}
2019-11-27 17:10:39 +00:00
# endif