Skip to content

Commit

Permalink
boards: samr21-xpro: uart config cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cgundogan committed Nov 23, 2015
1 parent 3a4b8d7 commit 6e51bb7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion boards/samr21-xpro/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
/** @} */
Expand Down
8 changes: 2 additions & 6 deletions boards/samr21-xpro/include/periph_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand All @@ -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]))
/** @} */

/**
Expand Down

0 comments on commit 6e51bb7

Please sign in to comment.