D | main.c | 5 * SPDX-License-Identifier: Apache-2.0 21 GPIO_DT_SPEC_GET(DT_ALIAS(led0), gpios), 22 GPIO_DT_SPEC_GET(DT_ALIAS(led1), gpios), 23 GPIO_DT_SPEC_GET(DT_ALIAS(led2), gpios), 26 static int coil_rd(uint16_t addr, bool *state) in coil_rd() argument 29 return -ENOTSUP; in coil_rd() 33 *state = true; in coil_rd() 35 *state = false; in coil_rd() 38 LOG_INF("Coil read, addr %u, %d", addr, (int)*state); in coil_rd() 43 static int coil_wr(uint16_t addr, bool state) in coil_wr() argument [all …]
|