| 181 | } |
| 182 | |
| 183 | rt_err_t rt_pin_ctrl_confs_apply(struct rt_device *device, int index) |
| 184 | { |
| 185 | rt_err_t err; |
| 186 | |
| 187 | if (device && index >= 0) |
| 188 | { |
| 189 | err = -RT_ENOSYS; |
| 190 | |
| 191 | #ifdef RT_USING_OFW |
| 192 | if (device->ofw_node) |
| 193 | { |
| 194 | err = ofw_pin_ctrl_confs_apply(device->ofw_node, index); |
| 195 | } |
| 196 | #endif /* RT_USING_OFW */ |
| 197 | } |
| 198 | else |
| 199 | { |
| 200 | err = -RT_EINVAL; |
| 201 | } |
| 202 | |
| 203 | return err; |
| 204 | } |
| 205 | |
| 206 | rt_err_t rt_pin_ctrl_confs_apply_by_name(struct rt_device *device, const char *name) |
| 207 | { |
no test coverage detected