Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
RT-Thread English
Semaphore inside ISR
发布于 2015-10-27 08:59:50 浏览:3785
订阅该版
Is there any problem to call functions like rt_sem_release and rt_sem_take inside an ISR?
查看更多
5
个回答
默认排序
按发布时间排序
bernard
2015-10-27
这家伙很懒,什么也没写!
Hi, You can call function: rt_sem_release/rt_event_send/rt_mb_send/rt_mq_send, or rt_sem_trytake in ISR. Please notice: DOES NOT let your ISR context blocked!
WGR7
2015-10-27
这家伙很懒,什么也没写!
Thanks. But what will cause the ISR context to block?
WGR7
2015-10-27
这家伙很懒,什么也没写!
>Thanks. But what will cause the ISR context to block? Some RTOSes has special functions to call only inside ISR. Why RT-Thread have not? ---
bernard
2015-10-27
这家伙很懒,什么也没写!
For example, if ISR invoke rt_sem_take to take a unavailable semaphore, the ISR context is "blocked". However, the ISR is not like a thread. The system will assert. In RT-Thread, for the API such as rt_sem_release, system will distinguish whether in ISR context or thread context then to use different method to wake up thread. Therefore, RT-Thread use the same API.
撰写答案
登录
注册新账号
关注者
0
被浏览
3.8k
关于作者
WGR7
这家伙很懒,什么也没写!
提问
10
回答
9
被采纳
0
关注TA
发私信
相关问题
1
Welcome to RT-Thread RTOS English discussion
2
good!
3
The speed of external SRAM of STM32
4
RT-Thread on ST Forum
5
Splay Tree
6
More RTGUI screenshot
7
STM32 pimer2
8
mini2440 support
9
Howto Run RT-Thread 0.4.0 on QEMU/mini2440
10
RT-Gui : how can use it?
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
机器人操作系统 (ROS2) 和 RT-Thread 通信
4
国产MCU移植系列教程汇总,欢迎查看!
5
五分钟玩转RT-Thread新社区
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
【Vision Board创客营连载体验】RA8D1 Vision Board 实现 FAL 同时调用片上以及外挂 Flash
2
NXP MCXN947开箱照
3
基于FRDM-MCXN94的TFT模块评测
4
FRDM-MCXN947 Flash实践----使用RTT fal组件
5
RTT下的I2C框架
热门标签
RT-Thread Studio
串口
LWIP
SPI
Env
Bootloader
AT
ART-Pi
Hardfault
CAN总线
FinSH
USB
文件系统
DMA
RT-Thread
SCons
线程
RT-Thread Nano
MQTT
STM32
RTC
FAL
rt-smart
ESP8266
ota在线升级
WIZnet_W5500
I2C_IIC
UART
flash
cubemx
packages_软件包
freemodbus
PWM
潘多拉开发板_Pandora
定时器
ADC
BSP
中断
编译报错
socket
keil_MDK
GD32
MicroPython
msh
Debug
ulog
SDIO总线
SFUD
rt_mq_消息队列_msg_queue
flashDB
本月问答贡献
用户名由3_15位
17
个答案
3
次被采纳
xiaorui
7
个答案
3
次被采纳
sakumisu
4
个答案
3
次被采纳
踩姑娘的小蘑菇
15
个答案
2
次被采纳
三世执戟
32
个答案
1
次被采纳
本月文章贡献
比特饼干
2
篇文章
6
次点赞
Z_Y
2
篇文章
5
次点赞
Alipay
2
篇文章
3
次点赞
xusiwei1236
2
篇文章
3
次点赞
yinxiangxv
2
篇文章
3
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部