Skip to content

Commit

Permalink
fix: Actually add the zmk-usb-logging snippet.
Browse files Browse the repository at this point in the history
* D'oh.
  • Loading branch information
petejohanson committed Jun 24, 2024
1 parent 7be955f commit 7cdf1e4
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/snippets/zmk-usb-logging/snippet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
name: zmk-usb-logging
append:
EXTRA_CONF_FILE: zmk-usb-logging.conf
EXTRA_DTC_OVERLAY_FILE: zmk-usb-logging.overlay
2 changes: 2 additions & 0 deletions app/snippets/zmk-usb-logging/zmk-usb-logging.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CONFIG_ZMK_USB_LOGGING=y

18 changes: 18 additions & 0 deletions app/snippets/zmk-usb-logging/zmk-usb-logging.overlay
Original file line number Diff line number Diff line change
@@ -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";
};
};

0 comments on commit 7cdf1e4

Please sign in to comment.