boards: degu_evk: add chosen nodes for shell and console
Remove UART_CONSOLE_ON_DEV_NAME and UART_SHELL_ON_DEV_NAME options and add chosen nodes for shell and console. Enable USB device support because the board uses CDC ACM UART for console. Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
This commit is contained in:
parent
134488aea9
commit
6974c7cee3
3 changed files with 10 additions and 6 deletions
|
@ -22,12 +22,6 @@ config UART_INTERRUPT_DRIVEN
|
|||
config UART_LINE_CTRL
|
||||
default y
|
||||
|
||||
config UART_CONSOLE_ON_DEV_NAME
|
||||
default "CDC_ACM_0"
|
||||
|
||||
config UART_SHELL_ON_DEV_NAME
|
||||
default "CDC_ACM_0"
|
||||
|
||||
endif # USB_DEVICE_STACK
|
||||
|
||||
if DISK_DRIVER_FLASH
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
chosen {
|
||||
zephyr,sram = &sram0;
|
||||
zephyr,flash = &flash0;
|
||||
zephyr,console = °u_cdc_acm_uart;
|
||||
zephyr,shell-uart = °u_cdc_acm_uart;
|
||||
zephyr,code-partition = &slot0_partition;
|
||||
};
|
||||
|
||||
|
@ -141,4 +143,9 @@
|
|||
zephyr_udc0: &usbd {
|
||||
compatible = "nordic,nrf-usbd";
|
||||
status = "okay";
|
||||
|
||||
degu_cdc_acm_uart: degu_cdc_acm_uart {
|
||||
compatible = "zephyr,cdc-acm-uart";
|
||||
label = "CDC_ACM_0";
|
||||
};
|
||||
};
|
||||
|
|
|
@ -12,6 +12,9 @@ CONFIG_SERIAL=y
|
|||
CONFIG_CONSOLE=y
|
||||
CONFIG_UART_CONSOLE=y
|
||||
|
||||
# enable USB
|
||||
CONFIG_USB_DEVICE_STACK=y
|
||||
|
||||
# additional board options
|
||||
CONFIG_GPIO=y
|
||||
CONFIG_GPIO_AS_PINRESET=y
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue