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

drivers/slipdev: improve default UART selection

This commit is contained in:
Benjamin Valentin 2023-10-26 15:55:06 +02:00
parent 2b9e82851b
commit 6ec3f54b3c

View File

@ -34,9 +34,13 @@ extern "C" {
*/
#ifndef SLIPDEV_PARAM_UART
# ifndef MODULE_SLIPDEV_STDIO
# define SLIPDEV_PARAM_UART (UART_DEV(0))
# ifdef MODULE_USBUS_CDC_ACM
# define SLIPDEV_PARAM_UART UART_DEV(0)
# else
# define SLIPDEV_PARAM_UART UART_DEV(1)
# endif
# else /* MODULE_SLIPDEV_STDIO */
# define SLIPDEV_PARAM_UART (STDIO_UART_DEV)
# define SLIPDEV_PARAM_UART STDIO_UART_DEV
# endif /* MODULE_SLIPDEV_STDIO */
#endif /* SLIPDEV_PARAM_UART */
#ifndef SLIPDEV_PARAM_BAUDRATE