mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers/slipdev: improve default UART selection
This commit is contained in:
parent
2b9e82851b
commit
6ec3f54b3c
@ -34,9 +34,13 @@ extern "C" {
|
|||||||
*/
|
*/
|
||||||
#ifndef SLIPDEV_PARAM_UART
|
#ifndef SLIPDEV_PARAM_UART
|
||||||
# ifndef MODULE_SLIPDEV_STDIO
|
# 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 */
|
# else /* MODULE_SLIPDEV_STDIO */
|
||||||
# define SLIPDEV_PARAM_UART (STDIO_UART_DEV)
|
# define SLIPDEV_PARAM_UART STDIO_UART_DEV
|
||||||
# endif /* MODULE_SLIPDEV_STDIO */
|
# endif /* MODULE_SLIPDEV_STDIO */
|
||||||
#endif /* SLIPDEV_PARAM_UART */
|
#endif /* SLIPDEV_PARAM_UART */
|
||||||
#ifndef SLIPDEV_PARAM_BAUDRATE
|
#ifndef SLIPDEV_PARAM_BAUDRATE
|
||||||
|
Loading…
Reference in New Issue
Block a user