mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 06:23:53 +01:00
boards: samr21-xpro: uart config cleanup
This commit is contained in:
parent
3a4b8d7931
commit
6e51bb741f
@ -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]))
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user