Skip to content
Snippets Groups Projects
Commit 851695cd authored by Cenk Gündoğan's avatar Cenk Gündoğan
Browse files

Merge pull request #4329 from cgundogan/pr/samr21-xpro/uart_cleanup

boards: samr21-xpro: uart config cleanup
parents 58de2cf1 6e51bb74
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,7 @@ extern "C" {
* @name Define UART device and baudrate for stdio
* @{
*/
#define STDIO UART_0
#define STDIO UART_DEV(0)
#define STDIO_BAUDRATE (115200U)
#define STDIO_RX_BUFSIZE (64U)
/** @} */
......
......@@ -103,12 +103,6 @@ extern "C" {
* @name UART configuration
* @{
*/
/* deprecated UART enable defines (to be removed) */
#define UART_NUMOF (2U)
#define UART_0_EN 1
#define UART_1_EN 1
/* UART device configuration */
static const uart_conf_t uart_config[] = {
/* device, RX pin, TX pin, mux */
{&SERCOM0->USART, GPIO_PIN(PA,5), GPIO_PIN(PA,4), GPIO_MUX_D},
......@@ -118,6 +112,8 @@ static const uart_conf_t uart_config[] = {
/* interrupt function name mapping */
#define UART_0_ISR isr_sercom0
#define UART_1_ISR isr_sercom5
#define UART_NUMOF (sizeof(uart_config) / sizeof(uart_config[0]))
/** @} */
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment