diff --git a/cpu/sam0_common/include/periph_cpu_common.h b/cpu/sam0_common/include/periph_cpu_common.h index 495a031399..b23ff27c56 100644 --- a/cpu/sam0_common/include/periph_cpu_common.h +++ b/cpu/sam0_common/include/periph_cpu_common.h @@ -192,8 +192,8 @@ typedef enum { /** * @brief Size of the UART TX buffer for non-blocking mode. */ -#ifndef SAM0_UART_TXBUF_SIZE -#define SAM0_UART_TXBUF_SIZE (64) +#ifndef UART_TXBUF_SIZE +#define UART_TXBUF_SIZE (64) #endif /** diff --git a/cpu/sam0_common/periph/uart.c b/cpu/sam0_common/periph/uart.c index 41ebccec1d..624f872ab3 100644 --- a/cpu/sam0_common/periph/uart.c +++ b/cpu/sam0_common/periph/uart.c @@ -41,7 +41,7 @@ #ifdef MODULE_PERIPH_UART_NONBLOCKING #include "tsrb.h" static tsrb_t uart_tx_rb[UART_NUMOF]; -static uint8_t uart_tx_rb_buf[UART_NUMOF][SAM0_UART_TXBUF_SIZE]; +static uint8_t uart_tx_rb_buf[UART_NUMOF][UART_TXBUF_SIZE]; #endif static uart_isr_ctx_t uart_ctx[UART_NUMOF]; @@ -68,7 +68,7 @@ int uart_init(uart_t uart, uint32_t baudrate, uart_rx_cb_t rx_cb, void *arg) #ifdef MODULE_PERIPH_UART_NONBLOCKING /* set up the TX buffer */ - tsrb_init(&uart_tx_rb[uart], uart_tx_rb_buf[uart], SAM0_UART_TXBUF_SIZE); + tsrb_init(&uart_tx_rb[uart], uart_tx_rb_buf[uart], UART_TXBUF_SIZE); #endif /* configure pins */ diff --git a/cpu/stm32/include/periph_cpu.h b/cpu/stm32/include/periph_cpu.h index 2b3f6e60a3..c9bc9f1007 100644 --- a/cpu/stm32/include/periph_cpu.h +++ b/cpu/stm32/include/periph_cpu.h @@ -550,8 +550,8 @@ typedef enum { /** * @brief Size of the UART TX buffer for non-blocking mode. */ -#ifndef STM32_UART_TXBUF_SIZE -#define STM32_UART_TXBUF_SIZE (64) +#ifndef UART_TXBUF_SIZE +#define UART_TXBUF_SIZE (64) #endif #ifndef DOXYGEN diff --git a/cpu/stm32/periph/uart.c b/cpu/stm32/periph/uart.c index 36b207ad87..34aabfa7d9 100644 --- a/cpu/stm32/periph/uart.c +++ b/cpu/stm32/periph/uart.c @@ -61,7 +61,7 @@ * @brief Allocate for tx ring buffers */ static tsrb_t uart_tx_rb[UART_NUMOF]; -static uint8_t uart_tx_rb_buf[UART_NUMOF][STM32_UART_TXBUF_SIZE]; +static uint8_t uart_tx_rb_buf[UART_NUMOF][UART_TXBUF_SIZE]; #endif /** @@ -168,7 +168,7 @@ int uart_init(uart_t uart, uint32_t baudrate, uart_rx_cb_t rx_cb, void *arg) #ifdef MODULE_PERIPH_UART_NONBLOCKING /* set up the TX buffer */ - tsrb_init(&uart_tx_rb[uart], uart_tx_rb_buf[uart], STM32_UART_TXBUF_SIZE); + tsrb_init(&uart_tx_rb[uart], uart_tx_rb_buf[uart], UART_TXBUF_SIZE); #endif uart_init_pins(uart, rx_cb);