equal
deleted
inserted
replaced
426 EC_CONFIG_ERR(sc, "Invalid sync manager index %u!\n", sync_index); |
426 EC_CONFIG_ERR(sc, "Invalid sync manager index %u!\n", sync_index); |
427 return -ENOENT; |
427 return -ENOENT; |
428 } |
428 } |
429 |
429 |
430 if (dir != EC_DIR_OUTPUT && dir != EC_DIR_INPUT) { |
430 if (dir != EC_DIR_OUTPUT && dir != EC_DIR_INPUT) { |
431 EC_CONFIG_ERR(sc, "Invalid direction %u!\n", (u32) dir); |
431 EC_CONFIG_ERR(sc, "Invalid direction %u!\n", (unsigned int) dir); |
432 return -EINVAL; |
432 return -EINVAL; |
433 } |
433 } |
434 |
434 |
435 sync_config = &sc->sync_configs[sync_index]; |
435 sync_config = &sc->sync_configs[sync_index]; |
436 sync_config->dir = dir; |
436 sync_config->dir = dir; |
741 { |
741 { |
742 uint8_t data[1]; |
742 uint8_t data[1]; |
743 |
743 |
744 EC_CONFIG_DBG(sc, 1, "%s(sc = 0x%p, index = 0x%04X, " |
744 EC_CONFIG_DBG(sc, 1, "%s(sc = 0x%p, index = 0x%04X, " |
745 "subindex = 0x%02X, value = %u)\n", |
745 "subindex = 0x%02X, value = %u)\n", |
746 __func__, sc, index, subindex, (u32) value); |
746 __func__, sc, index, subindex, (unsigned int) value); |
747 |
747 |
748 EC_WRITE_U8(data, value); |
748 EC_WRITE_U8(data, value); |
749 return ecrt_slave_config_sdo(sc, index, subindex, data, 1); |
749 return ecrt_slave_config_sdo(sc, index, subindex, data, 1); |
750 } |
750 } |
751 |
751 |