当前位置:网站首页>FreeRTOS task notification review
FreeRTOS task notification review
2022-06-09 08:58:00 【Lee1989 Qi】
One 、 Basic concepts
- effect : Reduce RAM Consume , Do not create semaphores separately , queue , The task notification can be used automatically after the task is created by the communication mechanism such as counting quantity .
- Default FreeRTOSConfig.h
configUSE_TASK_NOTIFICATIONS Set to 1, Its FreeRTOS The default is for 1 Of , So task notification is enabled by default . - FreeRTOS from V8.2.0 The version starts to provide task notification , Each task has a 32 Notification value of bit , in the majority of cases , Task notifications can replace binary semaphores 、 Count the semaphore 、 Event group , It can also be replaced The length is 1 Queues ( You can save a
32 Bit integer or pointer value ). - according to FreeRTOS Official statement , Use task notification rather than through semaphores, etc ICP The task of unblocking the communication mode should be fast 45%, And more economical RAM Memory space
shortcoming :
- Only one task can receive notification messages , Because you must specify a task to receive notifications .
- Only tasks waiting for notification can be blocked , The task of sending notifications , In any case, it will not enter the blocking state due to transmission failure .
Two 、 experiment
The principle is the same as that of the previous event group 、 Semaphore 、 The message queue communication mechanism is similar , Calling function is different .
边栏推荐
- 安装mysql保姆级教程
- Description de l'éditeur - alternative
- Mode de programmation 3D: mode d'isolement dépendant
- NetCore框架WTM的分表分库实现
- JS window object
- JS realizes three-level linkage
- .NET C#基础(6):命名空间 - 组织代码的利器
- 腾讯云宝塔搭建网站注意事项
- The energy efficiency management platform of the microgrid of the company promotes the upgrading of the power grid to the energy Internet
- SQL: 超过经理收入的员工
猜你喜欢

.NET C#基础(6):命名空间 - 组织代码的利器

How to view websites or apps bound to mobile phones: what you must do before you log off your mobile phone number - change and bind all websites or apps bound to your old mobile phone number

FreeRtos信号量复习

EDA open source simulation tool verilator getting started 1: installation and testing

10种提问型爆文标题句式 直接套用

How to solve the problem of mouseup event invalidation

3D programming mode: dependent isolation mode

修改市場活動錶

C语言指针

Energy management and control system for industrial enterprises helps enterprises strengthen energy management and improve equipment operation efficiency
随机推荐
How to view websites or apps bound to mobile phones: what you must do before you log off your mobile phone number - change and bind all websites or apps bound to your old mobile phone number
Configuring the environment for RMAN backups
Residual current relay uses residual current transformer to detect residual current and prevent electrical fire
Common windbos APIs
Greenplus vacuum cleaning and deleting data command of system operation and maintenance series
领域驱动设计(Domain Driven Design,DDD)
Virtual machine installation and configuration
3D programming mode: dependent isolation mode
Modify PE program entry point
测试不会被开发取代吗?
【程序人生】互联网岗位分工;互联网开发流程;职责分工
Sql: capital gains and losses of stocks
2022年5月29日16:05:09
SQL:市场分析 I
SQL: people flow in the gymnasium (common solution for continuous day cases)
Install MySQL nanny tutorial
SQL: Championship winner
如何使用阿里云 CDN 对部署在函数计算上的静态网站进行缓存
Web knowledge points 123
編輯器說明-備用