ucos3的配置文件
1,配置文件,用于系统的裁剪


|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
#ifndef OS_CFG_H#define OS_CFG_H /* ---------------------------- MISCELLANEOUS -------------------------- */#define OS_CFG_APP_HOOKS_EN 1u /* Enable (1) or Disable (0) application specific hooks */#define OS_CFG_ARG_CHK_EN 1u /* Enable (1) or Disable (0) argument checking */#define OS_CFG_CALLED_FROM_ISR_CHK_EN 1u /* Enable (1) or Disable (0) check for called from ISR */#define OS_CFG_DBG_EN 1u /* Enable (1) debug code/variables */#define OS_CFG_ISR_POST_DEFERRED_EN 0u /* Enable (1) or Disable (0) Deferred ISR posts */#define OS_CFG_OBJ_TYPE_CHK_EN 1u /* Enable (1) or Disable (0) object type checking */#define OS_CFG_TS_EN 1u /* Enable (1) or Disable (0) time stamping */ #define OS_CFG_PEND_MULTI_EN 1u /* Enable (1) or Disable (0) code generation for multi-pend feature */ #define OS_CFG_PRIO_MAX 32u /* Defines the maximum number of task priorities (see OS_PRIO data type) */ #define OS_CFG_SCHED_LOCK_TIME_MEAS_EN 1u /* Include code to measure scheduler lock time */#define OS_CFG_SCHED_ROUND_ROBIN_EN 1u /* Include code for Round-Robin scheduling */#define OS_CFG_STK_SIZE_MIN 64u /* Minimum allowable task stack size */ /* ----------------------------- EVENT FLAGS --------------------------- */#define OS_CFG_FLAG_EN 1u /* Enable (1) or Disable (0) code generation for EVENT FLAGS */#define OS_CFG_FLAG_DEL_EN 0u /* Include code for OSFlagDel() */#define OS_CFG_FLAG_MODE_CLR_EN 0u /* Include code for Wait on Clear EVENT FLAGS */#define OS_CFG_FLAG_PEND_ABORT_EN 0u /* Include code for OSFlagPendAbort() */ /* -------------------------- MEMORY MANAGEMENT ------------------------ */#define OS_CFG_MEM_EN 1u /* Enable (1) or Disable (0) code generation for MEMORY MANAGER */ /* --------------------- MUTUAL EXCLUSION SEMAPHORES ------------------- */#define OS_CFG_MUTEX_EN 1u /* Enable (1) or Disable (0) code generation for MUTEX */#define OS_CFG_MUTEX_DEL_EN 0u /* Include code for OSMutexDel() */#define OS_CFG_MUTEX_PEND_ABORT_EN 0u /* Include code for OSMutexPendAbort() */ /* --------------------------- MESSAGE QUEUES -------------------------- */#define OS_CFG_Q_EN 1u /* Enable (1) or Disable (0) code generation for QUEUES */#define OS_CFG_Q_DEL_EN 0u /* Include code for OSQDel() */#define OS_CFG_Q_FLUSH_EN 0u /* Include code for OSQFlush() */#define OS_CFG_Q_PEND_ABORT_EN 1u /* Include code for OSQPendAbort() */ /* ----------------------------- SEMAPHORES ---------------------------- */#define OS_CFG_SEM_EN 1u /* Enable (1) or Disable (0) code generation for SEMAPHORES */#define OS_CFG_SEM_DEL_EN 0u /* Include code for OSSemDel() */#define OS_CFG_SEM_PEND_ABORT_EN 1u /* Include code for OSSemPendAbort() */#define OS_CFG_SEM_SET_EN 1u /* Include code for OSSemSet() */ /* -------------------------- TASK MANAGEMENT -------------------------- */#define OS_CFG_STAT_TASK_EN 1u /* Enable (1) or Disable(0) the statistics task */#define OS_CFG_STAT_TASK_STK_CHK_EN 1u /* Check task stacks from statistic task */ #define OS_CFG_TASK_CHANGE_PRIO_EN 1u /* Include code for OSTaskChangePrio() */#define OS_CFG_TASK_DEL_EN 0u /* Include code for OSTaskDel() */#define OS_CFG_TASK_Q_EN 1u /* Include code for OSTaskQXXXX() */#define OS_CFG_TASK_Q_PEND_ABORT_EN 0u /* Include code for OSTaskQPendAbort() */#define OS_CFG_TASK_PROFILE_EN 1u /* Include variables in OS_TCB for profiling */#define OS_CFG_TASK_REG_TBL_SIZE 1u /* Number of task specific registers */#define OS_CFG_TASK_SEM_PEND_ABORT_EN 1u /* Include code for OSTaskSemPendAbort() */#define OS_CFG_TASK_SUSPEND_EN 1u /* Include code for OSTaskSuspend() and OSTaskResume() */ /* -------------------------- TIME MANAGEMENT -------------------------- */#define OS_CFG_TIME_DLY_HMSM_EN 1u /* Include code for OSTimeDlyHMSM() */#define OS_CFG_TIME_DLY_RESUME_EN 0u /* Include code for OSTimeDlyResume() */ /* ------------------- TASK LOCAL STORAGE MANAGEMENT ------------------- */#define OS_CFG_TLS_TBL_SIZE 0u /* Include code for Task Local Storage (TLS) registers */ /* ------------------------- TIMER MANAGEMENT -------------------------- */#define OS_CFG_TMR_EN 1u /* Enable (1) or Disable (0) code generation for TIMERS */#define OS_CFG_TMR_DEL_EN 0u /* Enable (1) or Disable (0) code generation for OSTmrDel() */ #endif |
放的是常量的宏定义
123456789101112131415161718192021222324252627282930313233343536373839404142434445#ifndef OS_CFG_APP_H#define OS_CFG_APP_H/************************************************************************************************************************** CONSTANTS*************************************************************************************************************************//* --------------------- MISCELLANEOUS ------------------ */#define OS_CFG_MSG_POOL_SIZE 100u/* Maximum number of messages */#define OS_CFG_ISR_STK_SIZE 128u/* Stack size of ISR stack (number of CPU_STK elements) */#define OS_CFG_TASK_STK_LIMIT_PCT_EMPTY 10u/* Stack limit position in percentage to empty *//* ---------------------- IDLE TASK --------------------- */#define OS_CFG_IDLE_TASK_STK_SIZE 64u/* Stack size (number of CPU_STK elements) *//* ------------------ ISR HANDLER TASK ------------------ */#define OS_CFG_INT_Q_SIZE 10u/* Size of ISR handler task queue */#define OS_CFG_INT_Q_TASK_STK_SIZE 128u/* Stack size (number of CPU_STK elements) *//* ------------------- STATISTIC TASK ------------------- */#define OS_CFG_STAT_TASK_PRIO 11u/* Priority */#define OS_CFG_STAT_TASK_RATE_HZ 10u/* Rate of execution (1 to 10 Hz) */#define OS_CFG_STAT_TASK_STK_SIZE 128u/* Stack size (number of CPU_STK elements) *//* ------------------------ TICKS ----------------------- */#define OS_CFG_TICK_RATE_HZ 1000u/* Tick rate in Hertz (10 to 1000 Hz) */#define OS_CFG_TICK_TASK_PRIO 10u/* Priority */#define OS_CFG_TICK_TASK_STK_SIZE 128u/* Stack size (number of CPU_STK elements) */#define OS_CFG_TICK_WHEEL_SIZE 17u/* Number of 'spokes' in tick wheel; SHOULD be prime *//* ----------------------- TIMERS ----------------------- */#define OS_CFG_TMR_TASK_PRIO 11u/* Priority of 'Timer Task' */#define OS_CFG_TMR_TASK_RATE_HZ 10u/* Rate for timers (10 Hz Typ.) */#define OS_CFG_TMR_TASK_STK_SIZE 128u/* Stack size (number of CPU_STK elements) */#define OS_CFG_TMR_WHEEL_SIZE 17u/* Number of 'spokes' in timer wheel; SHOULD be prime */#endif暂时看不太懂
ucos3的配置文件的更多相关文章
- .Net Core MVC 网站开发(Ninesky) 2.3、项目架构调整(续)-使用配置文件动态注入
上次实现了依赖注入,但是web项目必须要引用业务逻辑层和数据存储层的实现,项目解耦并不完全:另一方面,要同时注入业务逻辑层和数据访问层,注入的服务直接写在Startup中显得非常臃肿.理想的方式是,w ...
- ASP.NET MVC5+EF6+EasyUI 后台管理系统(64)-补充WebApi与Unity注入-配置文件
系列目录 上一篇演示了WebApi利用Unity注入 很多人问我如何用配置文件来配置注入,本节演示如何利用配置文件来注入,道理是一样的,跳转到上一节下载源码一起来动手! 1.打开源码定位到文件Depe ...
- Spring配置文件标签报错:The prefix "XXX" for element "XXX:XXX" is not bound. .
例如:The prefix "context" for element "context:annotation-config" is not bound. 这种 ...
- nginx服务器安装及配置文件详解
nginx在工作中已经有好几个环境在使用了,每次都是重新去网上扒博客,各种编译配置,今天自己也整理一份安装文档和nginx.conf配置选项的说明,留作以后参考.像负载均衡配置(包括健康检查).缓存( ...
- C#开发中使用配置文件对象简化配置的本地保存
C#开发中使用配置文件对象简化配置的本地保存 0x00 起因 程序的核心是数据和逻辑,开发过程中免不了要对操作的数据进行设置,而有些数据在程序执行过程中被用户或程序做出的修改是应该保存下来的,这样程序 ...
- 使用T4模板生成不同部署环境下的配置文件
在开发企业级应用的时候,通常会有不同的开发环境,比如有开发环境,测试环境,正式环境,生产环境等.在一份代码部署到不同环境的时候,不同环境的配置文件可能需要根据目标环境不同而不同.比如在开发环境中,数据 ...
- 配置文件Java读写
今天把配置文件的Bug修复了,总结一下Java配置文件如何读写 配置文件的格式 以.properties后缀结尾,内容不出现空格和双引号 //config.properties Driver=com. ...
- .NET平台开源项目速览(1)SharpConfig配置文件读写组件
在.NET平台日常开发中,读取配置文件是一个很常见的需求.以前都是使用System.Configuration.ConfigurationSettings来操作,这个说实话,搞起来比较费劲.不知道大家 ...
- DotNet程序配置文件
在实际的项目开发中,对于项目的相关信息的配置较多,在.NET项目中,我们较多的将程序的相关配置直接存储的.config文件中,例如web.config和app.config. .NET中配置文件分为两 ...
随机推荐
- jquery总结02-样式和属性
.attr() .removeAttr() 设置属性和移除属性,里面可以是属性,属性值 ,只有属性名时只获取第一个蒜素的属性值 .html() .text() .val() html 获取包括标签 ...
- 区别ie8和ie9的方法
众所周知 区别ie6~8的方法是: width:10px;//chrome width:10px\9;//ie8+ *width:10px;//ie7 _width:10px;//ie6 区别ie8以 ...
- Android 之计算控件颜色透明度
Android 之计算控件颜色透明度 1.UI会给一个数值,例如:#EFE000,透明度30% 2.用255乘以30%等于76.5,然后四舍五入等于77 3.用计算器将十进制的77转成十六进制的数据为 ...
- 使用spark与ElasticSearch交互
使用 elasticsearch-hadoop 包,可在 github 中搜索到该项目 项目地址 example import org.elasticsearch.spark._ import org ...
- 类似qq的浮动窗口 ,随着滚轴的滚动,始终处于屏幕的中间(能看到运动的过程)
<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8&quo ...
- 编程之美----NIM游戏
: 博弈游戏·Nim游戏 时间限制:10000ms 单点时限:1000ms 内存限制:256MB 描述 今天我们要认识一对新朋友,Alice与Bob.Alice与Bob总是在进行各种各样的比试,今天他 ...
- EasyUI-panel 内嵌页面上的js无法被执行
声明: http://www.jeasyuicn.com/post-49.html 本文引用自GodSon的杰作 http://www.jeasyuicn.com/post-49.html,除修正了个 ...
- flash透明效果代码分享~~~
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://down ...
- 二模 (16) day1&day2
第一题:题目大意: 数列a[0]=a[1]=1, a[n]=a[n-2]*a[n-1]*n,求a[n]的因子个数 mod 1000000007. n<=1000000 解题过程: 1.递推式还 ...
- longitude
确保有loc:[longitude, latitude]属性给loc增加索引AttractionSchema.index({loc: '2d'});使用geoNeardb.places.find( { ...
