[DeviceDriver] update RT_USING_DEVICE_OPS.

1. fixed audio_pipe.c compile error.
2. update pwm driver: support RT_USING_DEVICE_OPS.
This commit is contained in:
aozima
2018-11-24 17:29:50 +08:00
parent 37dc32a896
commit 669eb13ed9
2 changed files with 24 additions and 9 deletions
+1 -1
View File
@@ -188,7 +188,7 @@ static rt_err_t rt_pipe_control(rt_device_t dev, int cmd, void *args)
}
#ifdef RT_USING_DEVICE_OPS
const static struct rt_device_ops audio_pipe_ops
const static struct rt_device_ops audio_pipe_ops =
{
RT_NULL,
RT_NULL,