zephyr/samples/subsys/modbus/rtu_server/sample.yaml
Johann Fischer a1bfd8336e samples: rtu_server: add support for CDC ACM UART
Allow to use RTU server sample on any board that has supported
USB device controller. Although it is only a point to point
connection and does not represent a bus, it can, apart from
testing the server implementation, also be used practically
for example to control relays or to read ADC values via
USB connection without implementing custom USB class or driver.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2022-07-13 11:36:59 +02:00

22 lines
895 B
YAML

sample:
name: Modbus RTU Server Sample
tests:
sample.modbus.rtu_server:
build_only: true
platform_allow: nrf52840dk_nrf52840 frdm_k64f
tags: uart modbus
filter: dt_enabled_alias_with_parent_compat("led0", "gpio-leds") and
dt_enabled_alias_with_parent_compat("led1", "gpio-leds") and
dt_enabled_alias_with_parent_compat("led2", "gpio-leds")
depends_on: gpio arduino_serial
sample.modbus.rtu_server.cdc_acm:
build_only: true
platform_allow: nrf52840dk_nrf52840 frdm_k64f
tags: usb modbus
filter: dt_enabled_alias_with_parent_compat("led0", "gpio-leds") and
dt_enabled_alias_with_parent_compat("led1", "gpio-leds") and
dt_enabled_alias_with_parent_compat("led2", "gpio-leds")
extra_args: OVERLAY_CONFIG="overlay-cdc-acm.conf"
DTC_OVERLAY_FILE="cdc-acm.overlay"
depends_on: usb_device