1.新增pwm。

2.优化其余设备。
This commit is contained in:
MacRsh
2023-12-25 15:48:49 +08:00
parent 0b29f94ebe
commit 868d7cc9ce
17 changed files with 637 additions and 180 deletions

View File

@@ -110,7 +110,7 @@ static int mr_adc_ioctl(struct mr_dev *dev, int off, int cmd, void *args)
{
struct mr_adc_config config = *((struct mr_adc_config *)args);
return adc_channel_set_state(adc, off, config.channel_state);
return adc_channel_set_state(adc, off, config.state);
}
return MR_EINVAL;
}
@@ -126,7 +126,7 @@ static int mr_adc_ioctl(struct mr_dev *dev, int off, int cmd, void *args)
{
return ret;
}
config->channel_state = ret;
config->state = ret;
return MR_EOK;
}
}