forked from zmkfirmware/zmk
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(studio): Add
studio-rpc-usb-uart
snippet.
* Add an easy snippet for enabling USB UART added to the `zephyr_udc0` standard node.
- Loading branch information
1 parent
49b2f9b
commit 46ff3c0
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
name: studio-rpc-usb-uart | ||
append: | ||
EXTRA_DTC_OVERLAY_FILE: studio-rpc-usb-uart.overlay | ||
EXTRA_CONF_FILE: studio-rpc-usb-uart.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
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 |
13 changes: 13 additions & 0 deletions
13
app/snippets/studio-rpc-usb-uart/studio-rpc-usb-uart.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
/ { | ||
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"; | ||
}; | ||
}; | ||
|