zephyr/samples/subsys/modbus/rtu_server/app.overlay
Johann Fischer b0518d6100 modbus: get interface index according to interface name
Add function to get Modbus RTU interface index according
to interface name. This can be used to clearly identify
interfaces in the application.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2021-03-19 15:50:21 +01:00

17 lines
290 B
Plaintext

/*
* Copyright (c) 2020 Phytec Messtechnik GmbH
*
* SPDX-License-Identifier: Apache-2.0
*/
&arduino_serial {
status = "okay";
modbus0 {
compatible = "zephyr,modbus-serial";
label = "MODBUS0";
status = "okay";
de-gpios = <&arduino_header 15 GPIO_ACTIVE_LOW>; /* D9 */
};
};