MQX 4.2 SAI driver issue

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MQX 4.2 SAI driver issue

1,134 次查看
ryanlush
Contributor IV

I am trying to use the SAI driver with MQX 4.2. Looking at the dai_dma_demo example project it seems as simple as calling fopen on the SAI driver and then a call to write. Both of these functions take an MQX_FILE_PTR. It appears that fopen sets up the MQX_FILE_PTR struct but the pointers to IO_WRITE/READ in that struct are null after a call to fopen. I can't find anything in the example code that sets up these function pointers. Are they null because I'm using DMA? Calling write returns MQX_IO_OPERATION_NOT_AVAILABLE

0 项奖励
回复
1 回复

1,033 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi Ryan:

Yes, please refer to the _io_sai_dma_install function,   poiner   io_read and pointer   io_write are null.

pastedImage_1.png

Regards

Daniel

0 项奖励
回复