mirror of
https://github.com/esphome/esphome.git
synced 2025-04-06 02:40:29 +01:00
19 lines
546 B
Python
19 lines
546 B
Python
from esphome.components.zephyr import zephyr_add_prj_conf, zephyr_add_overlay
|
|
|
|
|
|
def zephyr_add_cdc_acm(config):
|
|
zephyr_add_prj_conf("USB_DEVICE_STACK", True)
|
|
zephyr_add_prj_conf("USB_CDC_ACM", True)
|
|
# prevent device to go to susspend, without this communication stop working in python
|
|
# there should be a way to solve it
|
|
zephyr_add_prj_conf("USB_DEVICE_REMOTE_WAKEUP", False)
|
|
zephyr_add_overlay(
|
|
"""
|
|
&zephyr_udc0 {
|
|
cdc_acm_uart0: cdc_acm_uart0 {
|
|
compatible = "zephyr,cdc-acm-uart";
|
|
};
|
|
};
|
|
"""
|
|
)
|