#ifdef RT_USING_MAILBOX/** * mailbox structure*/structrt_mailbox {structrt_ipc_object parent;/**< inherit from ipc_object*/ //继承自IPC对象rt_uint32_t*msg_pool;/**< start address of message buffer*/ //消息缓冲地址rt_uint16_t size;/**< size of message pool*/ //可存放的消息最...
#ifdef RT_USING_MAILBOX/** * mailbox structure*/structrt_mailbox {structrt_ipc_object parent;/**< inherit from ipc_object*/ //继承自IPC对象rt_uint32_t*msg_pool;/**< start address of message buffer*/ //消息缓冲地址rt_uint16_t size;/**< size of message pool*/ //可存放的消息最...
#ifdef RT_USING_MAILBOX /** * mailbox structure */ struct rt_mailbox { struct rt_ipc_object parent; /**< inherit from ipc_object */ rt_ubase_t *msg_pool; /**< 邮箱缓冲区的开始地址 */ rt_uint16_t size; /**< 邮箱缓冲区的大小 */ rt_uint16_t entry; /**< 邮箱中邮件的数...
#ifdef RT_USING_SEMAPHORE RT_Object_Class_Semaphore, // 信号量 #endif #ifdef RT_USING_MUTEX RT_Object_Class_Mutex, // 互斥锁 #endif #ifdef RT_USING_EVENT RT_Object_Class_Event, // 事件 #endif #ifdef RT_USING_MAILBOX RT_Object_Class_MailBox, // 邮箱 #endif #ifdef RT_USING_MESSAGEQ...
(rt_mb_detach);#ifdef RT_USING_HEAP/*** This function will create a mailbox object from system resource** @param name the name of mailbox* @param size the size of mailbox* @param flag the flag of mailbox** @return the created mailbox, RT_NULL on error happen*///创建动态邮箱//...
#ifdefRT_USING_MAILBOX/** * mailbox structure */structrt_mailbox{structrt_ipc_objectparent;/**< inherit from ipc_object */rt_ubase_t*msg_pool;/**< 邮箱缓冲区的开始地址 */rt_uint16_tsize;/**< 邮箱缓冲区的大小 */rt_uint16_tentry;/**< 邮箱中邮件的数目 */rt_uint16_tin_offset...
RT_USING_MAILBOX RT_Object_Class_MailBox, /* 对象为邮箱类型 */ #endif #ifdef RT_USING_MESSAGEQUEUE RT_Object_Class_MessageQueue, /* 对象为消息队列类型 */ #endif #ifdef RT_USING_MEMPOOL RT_Object_Class_MemPool, /* 对象为内存池类型 */ #endif #ifdef RT_USING_DEVICE RT_Object_Class_...
rt_mailbox对象从rt_ipc_object中派生,由IPC容器管理。结构体rt_ipc_object定义如下: struct rt_object{char name[RT_NAME_MAX]; /* 内核对象名称 */rt_uint8_t type; /* 内核对象类型 */rt_uint8_t flag; /* 内核对象的参数 */#ifdef RT_USING_MODULEvoid *module_id; /* 应用程序模块 ID */...
#ifdefRT_USING_MAILBOX/* initialize object container - mailbox */{RT_Object_Class_MailBox,_OBJ_CONTAINER_LIST_INIT(RT_Object_Info_MailBox),sizeof(struct rt_mailbox)},#endif #ifdefRT_USING_MESSAGEQUEUE/* initialize object container - message queue */{RT_Object_Class_MessageQueue,_OBJ_CONTAIN...
#ifdef RT_USING_MAILBOX RT_Object_Class_MailBox, /* 对象为邮箱类型 */ #endif #ifdef RT_USING_MESSAGEQUEUE RT_Object_Class_MessageQueue, /* 对象为消息队列类型 */ #endif #ifdef RT_USING_MEMPOOL RT_Object_Class_MemPool, /* 对象为内存池类型 */ ...