LPC54S018M SPI IRQ handler

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

LPC54S018M SPI IRQ handler

744 次查看
belmontbob59
Contributor IV

page 447 of the manual reads that TXSSELx is asserted when bit is set to 0

belmontbob59_0-1614284022826.png

isn't there a bug in the SDK's fsl_spi.c/irq handler ? see below

belmontbob59_1-1614284168264.png

Shouldn't the line in blue be 

tx_ctrl |= ((uint32_t)SPI_DEASSERT_ALL & ~(uint32_t)SPI_ASSERTNUM_SSEL(handle->sselNum));

This is how the  code is written SPI_WriteData() and SPI_MasterTransferBlocking(). See below snapshots

 

belmontbob59_4-1614284425910.png

 

 

belmontbob59_3-1614284403775.png

 

 

 

 

标签 (1)
0 项奖励
回复
1 回复

737 次查看
belmontbob59
Contributor IV

Please ignore this thread; I overlooked the code; I misread SPI_ASSERTNUM_SSEL in the IRQ as SPI_DEASSERTNUM_SSEL. There is no issue.

0 项奖励
回复