linux - Triggering long running operations from within a Linux ISR
问题描述
I have a situation in which I need to set some GPIOs inside an ISR, then wait for 10s and do something else. Sleeping inside an ISR is not something that should ever be done typically. I'm wondering if there is a built in mechanism in Linux to enqueue a function (from within the ISR) for later processing by the user space worker thread.
解决方案
Linux 设备驱动程序。第 10 章。上半部和下半部。
推荐阅读
- reactjs - 向 React Material UI 表添加新行
- python - 每个滑动窗口将熊猫系列转换为数据框中的一组行
- javascript - 在 Javascript 中自动处理 bootsrap 输入表单域数据
- angular - Angular 模板表达式中的按位运算
- javascript - 平滑滚动按钮
- google-apps-script - 通过 Apps 脚本中的 url 获取 Drive 文件夹
- linux - BTRFS - 一台设备上的 flush_io_errs
- python - 配置 QPalette.Disabled 会重置 QPalette.Link 等其他属性
- php - 如何从laravel中的数组中求和?
- c# - 实体框架和 SQL Server 中的奇怪 SaveChanges 行为