Skip to content

Commit

Permalink
drivers/slipdev: improve default UART selection
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco committed Oct 26, 2023
1 parent 2b9e828 commit 6ec3f54
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions drivers/slipdev/include/slipdev_params.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6ec3f54

Please sign in to comment.