Using PCS0 and PCS1 with CMSIS LPSPI driver

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Using PCS0 and PCS1 with CMSIS LPSPI driver

1,526件の閲覧回数
mh_AS
Contributor I

Hello.  I am currently using SPI4 on an IMXRT1064 using the CMSIS LPSPI config provided in the periperhals view of MCUXpresso.  I want to be able to programmatically swap between PCS0 and PCS1 (as we have 2 devices connected to that bus) but cannot find how this is achieved.  It looked like this would work but I think this isn't for the CMSIS driver:

LPSPI_SelectTransferPCS(LPSPI4, kLPSPI_Pcs1);

Any help is greatly appreciated.

image.png

ラベル(1)
タグ(2)
0 件の賞賛
返信
1 返信

1,491件の閲覧回数
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

Yes, you are right.

LPSPI_SelectTransferPCS() is the LPSPI module SDK driver API function, not belongs to CMSIS style driver.

I will report this info to SDK software team.

best regards,

Mike 

0 件の賞賛
返信