forked from kofal.net/zmk
feat(bluetooth): Initial nRF52 BSIM based test support.
Co-authored-by: Cem Aksoylar <caksoylar@users.noreply.github.com>
This commit is contained in:
committed by
Pete Johanson
parent
da15564d0e
commit
693530c2f1
@@ -4,6 +4,7 @@
|
||||
|
||||
/ {
|
||||
chosen {
|
||||
zephyr,console = &uart0;
|
||||
zmk,kscan = &kscan;
|
||||
};
|
||||
|
||||
@@ -15,4 +16,13 @@
|
||||
columns = <2>;
|
||||
exit-after;
|
||||
};
|
||||
|
||||
uart0: uart {
|
||||
status = "okay";
|
||||
compatible = "zephyr,native-posix-uart";
|
||||
/* Dummy current-speed entry to comply with serial
|
||||
* DTS binding
|
||||
*/
|
||||
current-speed = <0>;
|
||||
};
|
||||
};
|
||||
|
||||
4
app/boards/nrf52_bsim.conf
Normal file
4
app/boards/nrf52_bsim.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
CONFIG_ZMK_BLE=y
|
||||
CONFIG_LOG=y
|
||||
CONFIG_LOG_BACKEND_SHOW_COLOR=n
|
||||
CONFIG_ZMK_LOG_LEVEL_DBG=y
|
||||
17
app/boards/nrf52_bsim.overlay
Normal file
17
app/boards/nrf52_bsim.overlay
Normal file
@@ -0,0 +1,17 @@
|
||||
#include <behaviors.dtsi>
|
||||
#include <dt-bindings/zmk/keys.h>
|
||||
#include <dt-bindings/zmk/kscan_mock.h>
|
||||
|
||||
/ {
|
||||
chosen {
|
||||
zmk,kscan = &kscan;
|
||||
};
|
||||
|
||||
kscan: kscan {
|
||||
compatible = "zmk,kscan-mock";
|
||||
label = "KSCAN_MOCK";
|
||||
|
||||
rows = <2>;
|
||||
columns = <2>;
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user