代码拉取完成,页面将自动刷新
同步操作将从 hehe/skyeye_rawos 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
/*
raw os - Copyright (C) Lingjun Chen(jorya_txj).
This file is part of raw os.
raw os is free software; you can redistribute it it under the terms of the
GNU General Public License as published by the Free Software Foundation;
either version 3 of the License, or (at your option) any later version.
raw os is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. if not, write email to jorya.txj@gmail.com
---
A special exception to the LGPL can be applied should you wish to distribute
a combined work that includes raw os, without being obliged to provide
the source code for any proprietary components. See the file exception.txt
for full details of how and when the exception can be applied.
*/
/* 2012-4 Created by jorya_txj
* xxxxxx please added here
*/
#ifndef RAW_OBJECT_H
#define RAW_OBJECT_H
enum RAW_TASK_STATUS
{
RAW_RDY = 0,
RAW_PEND,
RAW_PEND_TIMEOUT,
RAW_PEND_TIMEOUT_SUSPENDED,
RAW_SUSPENDED,
RAW_PEND_SUSPENDED,
RAW_DLY,
RAW_DLY_SUSPENDED,
RAW_DELETED,
RAW_INVALID_STATE
};
typedef struct RAW_COMMON_BLOCK_OBJECT {
LIST block_list;
RAW_U8 *name;
RAW_U8 block_way;
RAW_U8 object_type;
} RAW_COMMON_BLOCK_OBJECT;
typedef struct RAW_TASK_OBJ
{
RAW_VOID *task_stack;
#if (CONFIG_RAW_MPU_ENABLE > 0)
RAW_MPU_SETTINGS mpu_settings;
#endif
LIST task_list;
#if (CONFIG_USER_DATA_POINTER > 0)
/*for user data extension*/
RAW_VOID *user_data_pointer[CONFIG_USER_DATA_POINTER];
#endif
#if (CONFIG_SCHED_FIFO_RR > 0)
/*For task time slice*/
RAW_U32 time_slice;
RAW_U32 time_total;
RAW_U8 sched_way;
#endif
/* Current running priority */
RAW_U8 priority;
/* Base priority */
RAW_U8 bpriority;
#if (CONFIG_RAW_TASK_SUSPEND > 0)
RAW_U8 suspend_count;
#endif
#if (CONFIG_RAW_MUTEX > 0)
struct RAW_MUTEX *mtxlist;
#endif
LIST task_debug_list;
RAW_U32 stack_size;
PORT_STACK *task_stack_base;
LIST tick_list;
RAW_TICK_TYPE tick_match;
RAW_TICK_TYPE tick_remain;
LIST *tick_head;
RAW_VOID *msg;
MSG_SIZE_TYPE msg_size;
#if (CONFIG_RAW_QUEUE_BUFFER > 0)
MSG_SIZE_TYPE qb_msg_size;
#endif
RAW_U8 *task_name;
RAW_U8 task_state;
RAW_U8 block_status;
/*Task block on mutex, queue, semphore, event*/
RAW_COMMON_BLOCK_OBJECT *block_obj;
#if (CONFIG_RAW_TASK_QUEUE_SIZE > 0)
struct RAW_QUEUE_SIZE *task_queue_size_obj;
#endif
#if (CONFIG_RAW_TASK_SEMAPHORE > 0)
struct RAW_SEMAPHORE *task_semaphore_obj;
#endif
#if (CONFIG_RAW_EVENT > 0)
RAW_U8 raw_suspend_option;
RAW_U32 raw_suspend_flags;
RAW_VOID *raw_additional_suspend_info;
#endif
} RAW_TASK_OBJ;
#define NUM_WORDS ((CONFIG_RAW_PRIO_MAX + 31) / 32)
typedef struct RAW_RUN_QUEUE {
RAW_U8 highest_priority;
LIST task_ready_list[CONFIG_RAW_PRIO_MAX];
RAW_U32 task_bit_map[NUM_WORDS];
} RAW_RUN_QUEUE;
typedef struct RAW_OBJECT_DEBUG {
/*Debug task head*/
LIST task_head;
} RAW_OBJECT_DEBUG;
#endif
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。