@@ -9,7 +9,8 @@
#ifndef COMPLETION_H_
#define COMPLETION_H_
-#include <rtthread.h>
+#include <rtdef.h>
+#include <rtconfig.h>
/**
* Completion
#ifndef DATAQUEUE_H__
#define DATAQUEUE_H__
#define RT_DATAQUEUE_EVENT_UNKNOWN 0x00
#define RT_DATAQUEUE_EVENT_POP 0x01
@@ -10,7 +10,8 @@
#ifndef PIPE_H__
#define PIPE_H__
* Pipe Device
@@ -11,6 +11,9 @@
#ifndef IPC_POLL_H__
#define IPC_POLL_H__
+
#ifdef __cplusplus
extern "C" {
#endif
#ifndef _RINGBLK_BUF_H_
#define _RINGBLK_BUF_H_
/*
* Introduction:
* The rbb is the ring buffer which is composed with many blocks. It is different from the ring buffer.
@@ -10,12 +10,13 @@
#ifndef RINGBUFFER_H__
#define RINGBUFFER_H__
-
/* ring buffer */
struct rt_ringbuffer
{
@@ -12,7 +12,8 @@
#ifndef WAITQUEUE_H__
#define WAITQUEUE_H__
#define RT_WQ_FLAG_CLEAN 0x00
#define RT_WQ_FLAG_WAKEUP 0x01
@@ -51,7 +52,6 @@ void rt_wqueue_wakeup(rt_wqueue_t *queue, void *key);
struct rt_wqueue_node name = { \
rt_current_thread, \
RT_LIST_OBJECT_INIT(((name).list)), \
- \
function, \
0 \
}
@@ -11,7 +11,8 @@
#ifndef WORKQUEUE_H__
#define WORKQUEUE_H__
@@ -10,7 +10,6 @@
*/
#include <rthw.h>
#include <rtdevice.h>
#define RT_COMPLETED 1
@@ -9,9 +9,8 @@
* 2016-10-31 armink fix some resume push and pop thread bugs
-#include <rtdevice.h>
+#include <rtdevice.h>
#define DATAQUEUE_MAGIC 0xbead0e0e
@@ -9,7 +9,6 @@
@@ -12,7 +12,6 @@
* 2021-08-14 Jackistang add comments for function interface.
#include <string.h>
@@ -11,10 +11,8 @@
#include <stdint.h>
-#include <rtservice.h>
* @brief This function will insert a node to the wait queue.
#ifdef RT_USING_HEAP