Microchip® Advanced Software Framework

console_serial.c File Reference

Serial Console functionalities.

Copyright (c) 2017-2018 Microchip Technology Inc. and its subsidiaries.

#include "asf.h"
#include "console_serial.h"
#include "conf_uart_serial.h"
#include "usart.h"
#include "platform.h"
#include "timer_hw.h"

Macros

#define CONF_UART   CONSOLE_UART
 
#define CONF_UART_BAUDRATE   (115200UL)
 
#define CONF_UART_CHAR_LENGTH   US_MR_CHRL_8_BIT
 
#define CONF_UART_PARITY   US_MR_PAR_NO
 
#define CONF_UART_STOP_BITS   US_MR_NBSTOP_1_BIT
 

Functions

uint8_t getchar_timeout (uint32_t timeout)
 
void serial_console_init (void)
 Configure console. More...
 

#define CONF_UART_CHAR_LENGTH   US_MR_CHRL_8_BIT
#define CONF_UART_STOP_BITS   US_MR_NBSTOP_1_BIT