LPC54S018M SPI IRQ handler

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC54S018M SPI IRQ handler

465 Views
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

 

 

 

 

Labels (1)
0 Kudos
1 Reply

458 Views
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 Kudos