add shell configuration for the native_posix board
This commit is contained in:
parent
255f9b7350
commit
87c6a32ef4
2 changed files with 21 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
|||
/ {
|
||||
chosen {
|
||||
zmk,kscan = &kscan;
|
||||
zephyr,shell-uart = &uart0;
|
||||
};
|
||||
|
||||
kscan: kscan {
|
||||
|
@ -17,3 +18,7 @@
|
|||
events = <>;
|
||||
};
|
||||
};
|
||||
|
||||
&uart0 {
|
||||
status = "okay";
|
||||
};
|
16
app/boards/native_posix_shell_test_extra.conf
Normal file
16
app/boards/native_posix_shell_test_extra.conf
Normal file
|
@ -0,0 +1,16 @@
|
|||
CONFIG_SERIAL=y
|
||||
CONFIG_UART_NATIVE_POSIX=y
|
||||
#CONFIG_NATIVE_UART_0_ON_OWN_PTY=y
|
||||
CONFIG_NATIVE_UART_0_ON_STDINOUT=y
|
||||
|
||||
CONFIG_SHELL=y
|
||||
CONFIG_SHELL_BACKEND_SERIAL=y
|
||||
CONFIG_ZMK_SHELL_KEY_POSITIONS=y
|
||||
CONFIG_SHELL_BACKEND_SERIAL_RX_RING_BUFFER_SIZE=1024
|
||||
|
||||
CONFIG_SHELL_PROMPT_UART="zmk> "
|
||||
|
||||
#CONFIG_SHELL_BACKEND_SERIAL_INTERRUPT_DRIVEN=n
|
||||
#CONFIG_UART_INTERRUPT_DRIVEN=n
|
||||
#CONFIG_UART_LINE_CTRL=n
|
||||
#CONFIG_SHELL_BACKEND_SERIAL_CHECK_DTR=n
|
Loading…
Add table
Reference in a new issue