Explorar el Código

[pipe] 补充注释

Meco Man hace 4 años
padre
commit
43ebe094e3
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      components/drivers/src/pipe.c

+ 2 - 2
components/drivers/src/pipe.c

@@ -439,7 +439,7 @@ const static struct rt_device_ops pipe_ops =
     rt_pipe_write,
     rt_pipe_write,
     rt_pipe_control,
     rt_pipe_control,
 };
 };
-#endif
+#endif /* RT_USING_DEVICE_OPS */
 
 
 rt_pipe_t *rt_pipe_create(const char *name, int bufsz)
 rt_pipe_t *rt_pipe_create(const char *name, int bufsz)
 {
 {
@@ -481,7 +481,7 @@ rt_pipe_t *rt_pipe_create(const char *name, int bufsz)
     }
     }
 #ifdef RT_USING_POSIX_DEVIO
 #ifdef RT_USING_POSIX_DEVIO
     dev->fops = (void*)&pipe_fops;
     dev->fops = (void*)&pipe_fops;
-#endif
+#endif /* RT_USING_POSIX_DEVIO */
 
 
     return pipe;
     return pipe;
 }
 }