1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/soft_uart: fix type usage

This commit is contained in:
Benjamin Valentin 2021-11-13 15:10:22 +01:00
parent 3d8e0d7f43
commit 4664e63ad4
2 changed files with 2 additions and 2 deletions

View File

@ -287,7 +287,7 @@ static void soft_uart_write_byte(soft_uart_t uart, uint8_t data)
mutex_lock(&ctx->sync);
}
void soft_uart_write(uart_t uart, const uint8_t *data, size_t len)
void soft_uart_write(soft_uart_t uart, const uint8_t *data, size_t len)
{
const soft_uart_conf_t *cfg = &soft_uart_config[uart];
struct uart_ctx *ctx = &soft_uart_ctx[uart];

View File

@ -72,7 +72,7 @@ static int parse_dev(char *arg)
static void rx_cb(void *arg, uint8_t data)
{
uart_t dev = (uart_t)arg;
uart_t dev = (soft_uart_t)arg;
ringbuffer_add_one(&(ctx[dev].rx_buf), data);
if (data == '\n' || ringbuffer_full(&(ctx[dev].rx_buf))) {