mirror of
https://github.com/zmkfirmware/zmk.git
synced 2026-03-19 20:45:18 -05:00
feat(studio): Add studio-rpc-usb-uart snippet.
* Add an easy snippet for enabling USB UART added to the `zephyr_udc0` standard node.
This commit is contained in:
committed by
Pete Johanson
parent
feda96eb40
commit
b1bcc3e418
7
app/snippets/studio-rpc-usb-uart/snippet.yml
Normal file
7
app/snippets/studio-rpc-usb-uart/snippet.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
# Copyright (c) 2024 The ZMK Contributors
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
name: studio-rpc-usb-uart
|
||||
append:
|
||||
EXTRA_DTC_OVERLAY_FILE: studio-rpc-usb-uart.overlay
|
||||
EXTRA_CONF_FILE: studio-rpc-usb-uart.conf
|
||||
@@ -0,0 +1,9 @@
|
||||
# Copyright (c) 2024 The ZMK Contributors
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
CONFIG_ZMK_USB=y
|
||||
CONFIG_USB_DEVICE_STACK=y
|
||||
CONFIG_USB_CDC_ACM=y
|
||||
CONFIG_SERIAL=y
|
||||
CONFIG_UART_INTERRUPT_DRIVEN=y
|
||||
CONFIG_UART_LINE_CTRL=y
|
||||
18
app/snippets/studio-rpc-usb-uart/studio-rpc-usb-uart.overlay
Normal file
18
app/snippets/studio-rpc-usb-uart/studio-rpc-usb-uart.overlay
Normal file
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
* Copyright (c) 2024 The ZMK Contributors
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
/ {
|
||||
chosen {
|
||||
zmk,studio-rpc-uart = &snippet_studio_rpc_usb_uart;
|
||||
};
|
||||
};
|
||||
|
||||
&zephyr_udc0 {
|
||||
snippet_studio_rpc_usb_uart: snippet_studio_rpc_usb_uart {
|
||||
compatible = "zephyr,cdc-acm-uart";
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user