@ -143,7 +143,7 @@ static int adc_open(FAR struct file *filep)
@@ -143,7 +143,7 @@ static int adc_open(FAR struct file *filep)
dev->ad_recv.af_head=0;
dev->ad_recv.af_tail=0;
/* Finally, Enable the CAN RX interrupt */
/* Finally, Enable the ADC RX interrupt */
dev->ad_ops->ao_rxint(dev,true);
@ -151,9 +151,11 @@ static int adc_open(FAR struct file *filep)
@@ -151,9 +151,11 @@ static int adc_open(FAR struct file *filep)
dev->ad_ocount=tmp;
}
irqrestore(flags);
}
}
sem_post(&dev->ad_closesem);
}
returnret;
@ -370,6 +372,10 @@ static int adc_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
@@ -370,6 +372,10 @@ static int adc_ioctl(FAR struct file *filep, int cmd, unsigned long arg)