fix: Actually add the zmk-usb-logging snippet.

* D'oh.
This commit is contained in:
Peter Johanson 2024-06-24 10:48:21 -06:00 committed by Pete Johanson
parent 7be955ff72
commit 7cdf1e42ea
3 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1,4 @@
name: zmk-usb-logging
append:
EXTRA_CONF_FILE: zmk-usb-logging.conf
EXTRA_DTC_OVERLAY_FILE: zmk-usb-logging.overlay

View file

@ -0,0 +1,2 @@
CONFIG_ZMK_USB_LOGGING=y

View file

@ -0,0 +1,18 @@
/*
* Copyright (c) 2024 The ZMK Contributors
*
* SPDX-License-Identifier: MIT
*/
/ {
chosen {
zephyr,console = &snippet_zmk_usb_logging_uart;
zephyr,shell-uart = &snippet_zmk_usb_logging_uart;
};
};
&zephyr_udc0 {
snippet_zmk_usb_logging_uart: snippet_zmk_usb_logging_uart {
compatible = "zephyr,cdc-acm-uart";
};
};