[drivers/ipc] fix the recursive including if legacy enabled

This commit is contained in:
Meco Man
2023-07-28 22:17:40 -04:00
parent 32e50cd68b
commit bfe9fd3c13
14 changed files with 20 additions and 16 deletions
+2 -1
View File
@@ -9,7 +9,8 @@
#ifndef COMPLETION_H_
#define COMPLETION_H_
#include <rtthread.h>
#include <rtdef.h>
#include <rtconfig.h>
/**
* Completion
+2 -1
View File
@@ -9,7 +9,8 @@
#ifndef DATAQUEUE_H__
#define DATAQUEUE_H__
#include <rtthread.h>
#include <rtdef.h>
#include <rtconfig.h>
#define RT_DATAQUEUE_EVENT_UNKNOWN 0x00
#define RT_DATAQUEUE_EVENT_POP 0x01
+2 -1
View File
@@ -10,7 +10,8 @@
#ifndef PIPE_H__
#define PIPE_H__
#include <rtthread.h>
#include <rtdef.h>
#include <rtconfig.h>
/**
* Pipe Device
+3
View File
@@ -11,6 +11,9 @@
#ifndef IPC_POLL_H__
#define IPC_POLL_H__
#include <rtdef.h>
#include <rtconfig.h>
#ifdef __cplusplus
extern "C" {
#endif
@@ -11,6 +11,9 @@
#ifndef _RINGBLK_BUF_H_
#define _RINGBLK_BUF_H_
#include <rtdef.h>
#include <rtconfig.h>
/*
* Introduction:
* The rbb is the ring buffer which is composed with many blocks. It is different from the ring buffer.
+3 -2
View File
@@ -10,12 +10,13 @@
#ifndef RINGBUFFER_H__
#define RINGBUFFER_H__
#include <rtdef.h>
#include <rtconfig.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <rtthread.h>
/* ring buffer */
struct rt_ringbuffer
{
+2 -2
View File
@@ -12,7 +12,8 @@
#ifndef WAITQUEUE_H__
#define WAITQUEUE_H__
#include <rtthread.h>
#include <rtdef.h>
#include <rtconfig.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 \
}
+2 -1
View File
@@ -11,7 +11,8 @@
#ifndef WORKQUEUE_H__
#define WORKQUEUE_H__
#include <rtthread.h>
#include <rtdef.h>
#include <rtconfig.h>
#ifdef __cplusplus
extern "C" {