1.优化中断事件宏。

This commit is contained in:
MacRsh
2023-11-25 23:39:33 +08:00
parent 674b663b39
commit d5d8897e53
10 changed files with 78 additions and 72 deletions

View File

@@ -37,7 +37,7 @@ static int mr_adc_close(struct mr_dev *dev)
return ops->configure(adc, MR_DISABLE);
}
static ssize_t mr_adc_read(struct mr_dev *dev, int off, void *buf, size_t size, int sync_or_async)
static ssize_t mr_adc_read(struct mr_dev *dev, int off, void *buf, size_t size, int async)
{
struct mr_adc *adc = (struct mr_adc *)dev;
struct mr_adc_ops *ops = (struct mr_adc_ops *)dev->drv->ops;