当前位置:网站首页>Teach you how to use UCOS
Teach you how to use UCOS
2022-06-28 06:14:00 【Fat ape】
Ucos Operating system learning
Real-time operating system :
Task switching , Dispatch
Fractional operating system
Inalienable kernel
Ucosii The source code of embedded real-time operating system is divided into three parts : Hardware independent kernel code , Processor related migration code and user profiles .
Ucos Most support 64 A mission , The priorities correspond to 0~63, among 0 Is the highest priority , System reservation 4 Top priority tasks , and 4 The lowest priority task , Tasks available to all users 56 individual
1. Set up tasks
a) OSTaskCReat()/OStaskCreat(
i. OStaskCreat(void(*task),void pdata ,OS_STK * post,INTU prio)
1. Task: Pointer to the task code
2. Pdata: When the task starts to execute , Pointer to the parameter passed to the task
3. Post: The top pointer to the stack assigned to the task
4. Prior: Assign priority to tasks
2, Task stack
a) OS_STK()
i. Each task has its own stack , The stack must be declared as OS_STK type , And continuous memory space .
ii. It can be allocated statically and dynamically
3, Stack check
a) OSTaskStkChk()
边栏推荐
猜你喜欢

高质量国产立体声编解码器CJC8988,Pin to Pin替代WM8988

What is the e-commerce conversion rate so abstract?

Development trend of mobile advertising: Leveraging stock and fine marketing

Install and manage multiple versions of PHP under mac

lombok @EqualsAndHashCode 注解如何让对象.equals()方法只比较部分属性

pytorch详解

移动广告发展动向:撬动存量,精细营销

基于Kotlin+JetPack实现的MVVM框架的示例

socke. IO long connection enables push, version control, and real-time active user statistics

Linux MySQL implements root user login without password
随机推荐
【Paper Reading-3D Detection】Fully Convolutional One-Stage 3D Object Detection on LiDAR Range Images
Taobao seo training video course [22 lectures]
pytorch dataloader的长度 epoch与iteration的区别
Idea generates entity classes from database tables
5-minute NLP: summary of time chronology from bag of words to transformer
Linux Mysql 实现root用户不用密码登录
Example of MVVM framework based on kotlin+jetpack
Yygh-6-wechat login
Use the SQL SELECT count distinct query statement to count the total number of unique values of a field in the database
pkg打包node工程(express)
Ethereum Classic的难度计算|猿创征文
Ape pink ape power - Developer activity attack!
Linked list (II) - Design linked list
Idea automatically adds comments when creating classes
AutoCAD C# 多段线自相交检测
Oracle fundamentals summary
pytorch详解
@The reason why the Autowired annotation is empty
Main functions of 5ggnb and ng ENB
Online facing such an online world, the only limitation is our imagination