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中配置文件分为两 ...
随机推荐
- Android TextView自动换行文字排版参差不齐的原因
今天项目没什么进展,公司后台出问题了.看了下刚刚学习Android时的笔记,发现TextView会自动换行,而且排版文字参差不齐.查了下资料,总结原因如下: 1.半角字符与全角字符混乱所致:这种情况一 ...
- python 中的input
渣渣之路. 一. 在python编程初学者指南中的第六章.使用参数和返回值的例子中: # -*- coding: utf-8 -*- def display(message): print messa ...
- C++ 不能在类体外指定关键字static
C++ static 函数的问题 近日读 C++ primer 中static 一章 , 有这么一句话, “静态成员函数的声明除了在类体中的函数声明前加上关键字static 以及不能声明为const ...
- Eclipse 最全快捷键
英文的
- 解决:“java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut myMethod”问题!
Spring版本:2.5.6 AspectJ是Spring自带的lib. Jdk版本:1.7.0_17 在配置没问题的情况下,报:java.lang.IllegalArgumentException: ...
- Creating Materials at runtime And Issue of Shader.Find()
Creating Materials at runtimehttp://forum.unity3d.com/threads/create-materials-at-runtime.72952/ //通 ...
- 0502团队项目 SCRUM团队成立
Scrum团队成立 团队名称:对不对?队 团队目标:短期目标,完成O2O模式的第一个平台 团队口号:我们都不是神的孩子 团队照: 角色分配 产品负责人: 许佳仪.决定开发内容和优先级排序,最大化产品以 ...
- PHP 二维码解码 (读取二维码)
#zbar wget http://ncu.dl.sourceforge.net/project/zbar/zbar/0.10/zbar-0.10.tar.bz2 yum install gtk2 g ...
- spring boot 初试,springboot入门,springboot helloworld例子
因为项目中使用了spring boot ,之前没接触过,所以写个helloworld玩玩看,当做springboot的一个入门例子.搜索 spring boot.得到官方地址:http://proje ...
- OC方法和文件编译
OC方法和文件编译 一.OC方法 (一)对象方法 (1)对象方法以-开头如 -(void)xx; (2)对象方法只能又对象来调用 (3)对象方法中可以访问当前对象的成员变量 (4)调用格式 [对象 ...
