spi driver
来源:互联网 发布:ai for mac百度云盘 编辑:程序博客网 时间:2024/05/08 17:11
spi bus driver:
1.spi_alloc_master alloc memory for spi_master
2.set two callbacks of .transfer and .cleanup
3.create a work_queue thread, and use queue_work API add the work to work_queue in the callback of transfer
the work function is do the xfer work, the last steps look like below:
m->actual_length = espi_trans.actual_length;
m->status = espi_trans.status;
m->complete(m->context); // in the spi_sync function , there is a wait_for_completion function sleeping.
spi device driver:
the device uses the spi core API to transfer datas. Both rx and tx, we must use spi_message structure
spi_message include spi_transfer structure list node,
use spi_message_init API to init a spi_message, and add spi_transfer array to spi_message using spi_message_add_tail API, then use spi_sync to startup work queue.
1.spi_alloc_master alloc memory for spi_master
2.set two callbacks of .transfer and .cleanup
3.create a work_queue thread, and use queue_work API add the work to work_queue in the callback of transfer
the work function is do the xfer work, the last steps look like below:
m->actual_length = espi_trans.actual_length;
m->status = espi_trans.status;
m->complete(m->context); // in the spi_sync function , there is a wait_for_completion function sleeping.
spi device driver:
the device uses the spi core API to transfer datas. Both rx and tx, we must use spi_message structure
spi_message include spi_transfer structure list node,
use spi_message_init API to init a spi_message, and add spi_transfer array to spi_message using spi_message_add_tail API, then use spi_sync to startup work queue.
- spi driver
- spi master spi driver spi device
- spi master spi driver spi device
- SPI driver test
- Linux SPI FLASH DRIVER
- AD7490 SPI DRIVER
- spi driver framework
- freescale spi driver
- SPI driver for davinci,SPI裸驱,达芬奇
- serial: spi: add spi-uart driver for Maxim 3110
- Freescale MPC8314 CPU SPI controller driver updated;
- Linux device driver-(C)SPI(中文)
- 高通SPI指纹模块driver调试
- SPI
- SPI
- SPI
- SPI
- SPI
- System Events and Mouse Messages
- vim 上下两行交换位置
- Linux shell命令中双引号与单引号嵌套的问题
- Linux Shell中的美元符号$
- Linux 文件类型 及文件的扩展名
- spi driver
- NYOJ 520 数论
- STM32仿真时无法go main问题的解决(MDK4.12)
- 小心女士保暖内衣引起便秘
- 通过SQL语句得到一张表的总列数
- linux查看后台进程及grep使用
- jquery datepicker输入时的validation
- 自动化测试在 stress test 和 repeat test 方面的应用和重要性
- linux查看目录大小