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:
parent
3d8e0d7f43
commit
4664e63ad4
@ -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];
|
||||
|
@ -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))) {
|
||||
|
Loading…
Reference in New Issue
Block a user