RT_Thread中rtconfig.h解析
/* RT-Thread config file */
#ifndef RTTHREAD_CFG_H
#define RTTHREAD_CFG_H
//#include “RTE_Components.h”
// <<< Use Configuration Wizard in Context Menu >>>
// <h>Basic Configuration
// <o>Maximal level of thread priority <8-256>
// <i>Default: 32
#define RT_THREAD_PRIORITY_MAX 32 //RT-Thread 支持多少个优先级
// <o>OS tick per second
// <i>Default: 1000 (1ms)
#define RT_TICK_PER_SECOND 1000 //操作系统每秒钟有多少个操作系统的时钟周期,默认为 1000
// <o>Alignment size for CPU architecture data access
// <i>Default: 4
#define RT_ALIGN_SIZE 4 //CPU 处理的数据需要多少个字节对齐
// <o>the max length of object name<2-16>
// <i>Default: 8
#define RT_NAME_MAX 8 //内核对象名字的最大长度
// <c1>Using RT-Thread components initialization
// <i>Using RT-Thread components initialization
#define RT_USING_COMPONENTS_INIT //使用 RT-Thread 组件初始化,默认使能
// </c>
// <c1>Using user main
// <i>Using user main
#define RT_USING_USER_MAIN //使用用户 main 函数,默认打开
// </c>
// <o>the size of main thread<1-4086>
// <i>Default: 512
#define RT_MAIN_THREAD_STACK_SIZE 512 //main 线程栈大小,单位为字节,默认为512
// </h>
// <h>Debug Configuration //调试配置。包括了内核调试配置,组件调试配置和线程栈溢出检测
// <c1>enable kernel debug configuration
// <i>Default: enable kernel debug configuration
//#define RT_DEBUG
// </c>
// <o>enable components initialization debug configuration<0-1>
// <i>Default: 0
#define RT_DEBUG_INIT 0
// <c1>thread stack over flow detect
// <i> Diable Thread stack over flow detect
//#define RT_USING_OVERFLOW_CHECK
// </c>
// </h>
// <h>Hook Configuration //钩子函数配置
// <c1>using hook
// <i>using hook
//#define RT_USING_HOOK
// </c>
// <c1>using idle hook
// <i>using idle hook
//#define RT_USING_IDLE_HOOK
// </c>
// </h>
// <e>Software timers Configuration //软件定时器配置
// <i> Enables user timers
#define RT_USING_TIMER_SOFT 0
#if RT_USING_TIMER_SOFT == 0
#undef RT_USING_TIMER_SOFT
#endif
// <o>The priority level of timer thread <0-31>
// <i>Default: 4
#define RT_TIMER_THREAD_PRIO 4
// <o>The stack size of timer thread <0-8192>
// <i>Default: 512
#define RT_TIMER_THREAD_STACK_SIZE 512
// <o>The soft-timer tick per second <0-1000>
// <i>Default: 100
#define RT_TIMER_TICK_PER_SECOND 100
// </e>
// <h>IPC(Inter-process communication) Configuration //内部通信配置
// <c1>Using Semaphore
// <i>Using Semaphore
#define RT_USING_SEMAPHORE //信号量
// </c>
// <c1>Using Mutex
// <i>Using Mutex
//#define RT_USING_MUTEX //互斥量
// </c>
// <c1>Using Event
// <i>Using Event
//#define RT_USING_EVENT //事件
// </c>
// <c1>Using MailBox
// <i>Using MailBox
#define RT_USING_MAILBOX //邮箱
// </c>
// <c1>Using Message Queue
// <i>Using Message Queue
#define RT_USING_MESSAGEQUEUE //消息队列
// </c>
// </h>
// <h>Memory Management Configuration //内存管理配置
// <c1>Using Memory Pool Management
// <i>Using Memory Pool Management
//#define RT_USING_MEMPOOL //是否使用内存池
// </c>
// <c1>Dynamic Heap Management
// <i>Dynamic Heap Management
#define RT_USING_HEAP //表示是否使用堆,使用动态内存时需要开启
// </c>
// <c1>using small memory
// <i>using small memory
#define RT_USING_SMALL_MEM //是否使用小内存
// </c>
// <c1>using tiny size of memory
// <i>using tiny size of memory
//#define RT_USING_TINY_SIZE //是否使用极小内存
// </c>
// </h>
// <h>Console Configuration //控制台配置。控制台即是 rt_kprintf()函数调试输出的设备,通常使用串口
// <c1>Using console
// <i>Using console
#define RT_USING_CONSOLE
// </c>
// <o>the buffer size of console <1-1024>
// <i>the buffer size of console
// <i>Default: 128 (128Byte)
#define RT_CONSOLEBUF_SIZE 128
// <s>The device name for console
// <i>The device name for console
// <i>Default: uart1
#define RT_CONSOLE_DEVICE_NAME “uart2”
// </h>
#if defined(RTE_FINSH_USING_MSH) //FINSH 配置
#define RT_USING_FINSH
#define FINSH_USING_MSH
#define FINSH_USING_MSH_ONLY
// <h>Finsh Configuration
// <o>the priority of finsh thread <1-7>
// <i>the priority of finsh thread
// <i>Default: 6
#define __FINSH_THREAD_PRIORITY 5
#define FINSH_THREAD_PRIORITY (RT_THREAD_PRIORITY_MAX / 8 * __FINSH_THREAD_PRIORITY + 1)
// <o>the stack of finsh thread <1-4096>
// <i>the stack of finsh thread
// <i>Default: 4096 (4096Byte)
#define FINSH_THREAD_STACK_SIZE 512
// <o>the history lines of finsh thread <1-32>
// <i>the history lines of finsh thread
// <i>Default: 5
#define FINSH_HISTORY_LINES 1
// <c1>Using symbol table in finsh shell
// <i>Using symbol table in finsh shell
#define FINSH_USING_SYMTAB
// </c>
// </h>
#endif
#if defined(RTE_USING_DEVICE) //设备配置
#define RT_USING_DEVICE
#endif
// <<< end of configuration section >>> //rtconfig.h 配置结束
#endif
- 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
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
- 94
- 95
- 96
- 97
- 98
- 99
- 100
- 101
- 102
- 103
- 104
- 105
- 106
- 107
- 108
- 109
- 110
- 111
- 112
- 113
- 114
- 115
- 116
- 117
- 118
- 119
- 120
- 121
- 122
- 123
- 124
- 125
- 126
- 127
- 128
- 129
- 130
- 131
- 132
- 133
- 134
- 135
- 136
- 137
- 138
- 139
- 140
- 141
- 142
- 143
- 144
- 145
- 146
- 147
- 148
- 149
- 150
- 151
- 152
- 153
- 154
- 155
- 156
- 157
- 158
- 159
- 160
- 161
- 162
- 163
- 164
- 165
- 166
- 167
- 168
</div><link href="https://csdnimg.cn/release/phoenix/mdeditor/markdown_views-258a4616f7.css" rel="stylesheet"></div>
RT_Thread中rtconfig.h解析相关推荐
- Caffe中的损失函数解析
Caffe中的损失函数解析 导言 在有监督的机器学习中,需要有标签数据,与此同时,也需要有对应的损失函数(Loss Function). 在Caffe中,目前已经实现了一些损失函数,包括最常见的L2损 ...
- mysql 复制 二进制文件命令_Mysql中复制详细解析
原标题:Mysql中复制详细解析 1.mysql复制概念 指将主数据库的DDL和DML操作通过二进制日志传到复制服务器上,然后在复制服务器上将这些日志文件重新执行,从而使复制服务器和主服务器的数据保持 ...
- IOS 中的XML解析
IOS 中的XML解析 首先说一下,在IOS中XML解析和在Android中的SAX或者Pull解析差别不大,都是基于事件的解析方式. 首先,定义一个对象来表示XML的文档结构 XMLElement. ...
- Matlab中的参数解析
本文中,我们讨论如何在Matlab中进行参数解析. 参数解析对于软件开发和程序设计至关重要.在Matlab中,函数参数传递一般采用直接传值方式,最复杂的情况下也就是使用varargin变长数组.那么如 ...
- DNS中的正向解析与反向解析 及 nslookup命令使用
DNS中的正向解析与反向解析 - Jackxin Xu IT技术专栏 - 博客频道 - CSDN.NET http://blog.csdn.net/jackxinxu2100/article/deta ...
- [darknet源码系列-2] darknet源码中的cfg解析
[darknet源码系列-2] darknet源码中的cfg解析 FesianXu 20201118 at UESTC 前言 笔者在[1]一文中简单介绍了在darknet中常见的数据结构,本文继续上文 ...
- CAD中字体相关解析 \fsimhei|b0|i0|c134
CAD中字体相关解析 \fsimhei|b0|i0|c134 之前在前人的文章上看过,我把用到的信息提取出来了,以供后面好查询,用到的老铁反手甩个赞吧. 在多行文字 MTEXT 中 TTF字体解析的编 ...
- vs2017/2019中pch.h和pch.cpp是个什么东西(附加,如何删除)
v s 2017 / 2019 中 p c h . h 和 p c h . c p p 是 个 什 么 东 西 vs2017/2019中pch.h和pch.cpp是个什么东西 vs2017/2019中 ...
- Faster RCNN 中的RPN解析
Faster RCNN 中的RPN解析 文章目录 Faster RCNN 中的RPN解析 Anchor 分类 bounding box regression proposal 参考 RCNN和Fast ...
- 10JavaScript中的预解析
技术交流QQ群:1027579432,欢迎你的加入! 1.预解析 JavaScript代码是由浏览器中的JavaScript解析器来执行的.JavaScript解析器在运行JavaScript代码的时 ...
最新文章
- Windows7 自动更新时遇到故障
- 深刻剖析与实战BCELoss详解(主)和BCEWithLogitsLoss(次)以及与普通CrossEntropyLoss的区别(次)
- Linux初级运维(七)——bash脚本编程(常见测试)
- hdu3768 spfa+全排列
- Python IDLE入门
- Mongodb带验证的主从复制架构
- centos-修改yum下载源为国内阿里源-
- mysql8和5.7区别_MySQL 8、MySQL 5.7和Percona server for MySQL性能比较
- gemfire资料网址
- 分治法求最大和最小值
- Springboot实现filter拦截token验证和跨域
- 数字孪生工厂解决方案,3DGIS+视频融合+时空位置智能(LI)技术
- 一条SQL语句在MySQL中执行过程全解析
- 开源维基百科文档系统mediawiki
- mvn上传pom/jar至Nexus私服
- 热爱生活的人请过来看看:有没有通过叶子或花来识别植物的软件?
- docker logs-查看docker容器日志
- 浅谈C++中的多线程(一)
- redhat 7.4 安装php,在 CentOS 中安装 PHP 7.4 的方法
- 在vue项目中使用Antv-f2的小案例
热门文章
- 干货:分析学中常用的3种分析方法!
- php unlink 无法删除,php unlink()删除文件实例讲解
- 极X客x时x间 《零基础学Python》视频教程分享
- M1 Pro 和 M1 Max MacBook Pro,我们该选择哪款MacBook
- flutter快速入门,一周搞定前后端,上线完毕
- Spring 事务源码(7)—事务的completeTransactionAfterThrowing回滚、commitTransactionAfterReturning提交以及事务源码总结【一万字】
- 计算机未来的发展趋势和现状,计算机发展现状跟未来发展趋势.docx
- android内置so库,带so库的apk正确内置到system/app详解
- 计算机u盘病毒清除方式,清除文件夹exe病毒方法
- 极客也可以很亲民,酷炫设计、多变造型的华为智能眼镜即将发布