Merge pull request #2121 from dogandog/patch-3

Update rtdef.h
This commit is contained in:
Bernard Xiong 2018-12-26 13:03:08 +08:00 committed by GitHub
commit fd36c064d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 17 deletions

View File

@ -45,7 +45,7 @@ extern "C" {
* @addtogroup BasicDef
*/
/*@{*/
/**@{*/
/* RT-Thread version information */
#define RT_VERSION 4L /**< major version number */
@ -88,7 +88,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset */
#define RT_TRUE 1 /**< boolean true */
#define RT_FALSE 0 /**< boolean fails */
/*@}*/
/**@}*/
/* maximum value of base type */
#define RT_UINT8_MAX 0xff /**< Maxium number of UINT8 */
@ -259,7 +259,7 @@ typedef int (*init_fn_t)(void);
* @addtogroup Error
*/
/*@{*/
/**@{*/
/* RT-Thread error code definitions */
#define RT_EOK 0 /**< There is no error */
@ -274,7 +274,7 @@ typedef int (*init_fn_t)(void);
#define RT_EINTR 9 /**< Interrupted system call */
#define RT_EINVAL 10 /**< Invalid argument */
/*@}*/
/**@}*/
/**
* @ingroup BasicDef
@ -325,7 +325,7 @@ typedef struct rt_slist_node rt_slist_t; /**< Type for single lis
* @addtogroup KernelObject
*/
/*@{*/
/**@{*/
/*
* kernel object macros
@ -402,13 +402,13 @@ struct rt_object_information
#define RT_OBJECT_HOOK_CALL(func, argv)
#endif
/*@}*/
/**@}*/
/**
* @addtogroup Clock
*/
/*@{*/
/**@{*/
/**
* clock & timer macros
@ -452,7 +452,7 @@ struct rt_timer
};
typedef struct rt_timer *rt_timer_t;
/*@}*/
/**@}*/
/**
* @addtogroup Signal
@ -465,13 +465,13 @@ typedef siginfo_t rt_siginfo_t;
#define RT_SIG_MAX 32
#endif
/*@}*/
/**@}*/
/**
* @addtogroup Thread
*/
/*@{*/
/**@{*/
/*
* Thread
@ -613,13 +613,13 @@ struct rt_thread
};
typedef struct rt_thread *rt_thread_t;
/*@}*/
/**@}*/
/**
* @addtogroup IPC
*/
/*@{*/
/**@{*/
/**
* IPC flags and control command definitions
@ -737,13 +737,13 @@ struct rt_messagequeue
typedef struct rt_messagequeue *rt_mq_t;
#endif
/*@}*/
/**@}*/
/**
* @addtogroup MM
*/
/*@{*/
/**@{*/
/*
* memory management
@ -811,14 +811,14 @@ struct rt_mempool
typedef struct rt_mempool *rt_mp_t;
#endif
/*@}*/
/**@}*/
#ifdef RT_USING_DEVICE
/**
* @addtogroup Device
*/
/*@{*/
/**@{*/
/**
* device (I/O) class type
@ -1063,7 +1063,7 @@ struct rt_device_graphic_ops
};
#define rt_graphix_ops(device) ((struct rt_device_graphic_ops *)(device->user_data))
/*@}*/
/**@}*/
#endif
/* definitions for libc */