TPL driver in non DMA mode requires SPI driver in Interrupt mode

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

TPL driver in non DMA mode requires SPI driver in Interrupt mode

1,329 次查看
sathish_touch
Contributor I

We are trying to build a TPL driver in S32K as per below logical diagram. Here we were told that for this to work in non DMA mode requires SPI to operate in interrupt mode. Are there any direct sample driver to use as a reference for SPI driver to operate in Interrupt mode. Any guideline will help. We will be porting this to nuttx baseline.

 

sathish_touch_0-1649588243790.jpeg

 

0 项奖励
回复
3 回复数

1,307 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @sathish_touch,

You can refer to the SDK (S32DS 2.2 or S32DS 3.4) or RTD drivers (S32DS 3.4).

There are also examples for LPSPI in the interrupt mode.

Let me know if you have any specific questions,

 

Regards,

Daniel

0 项奖励
回复

1,258 次查看
sathish_touch
Contributor I

Hello Daniel,

We were using S32 Design Studio for ARM (Version: 2018.R1) till now.
 
After you have recommended S32DS 3.4, we installed 3.4 version now for referring to interrupt based code.
 
But, in this code, there does not seem to exist an example for LPSPI interrupt mode.
 
There are examples for LPSPI Master, LPSPI Slave and LPSPI transfer modes.
 
Which code, we need to refer for the implementation of LPSPI in interrupt mode?
 
Thanks,
Sathish
0 项奖励
回复

1,253 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @sathish_touch,

Use the lpspi_transfer_s32k144 example.

It utilizes both the master and the slave in the interrupt mode.

danielmartynek_0-1651561998271.png

 

Regards,

Daniel

0 项奖励
回复