liljaywalker
New member
Long time lurker, first time poster.
I'm working on a little project that utilizes all 6 slave selects on SPI0 on a Teensy 3.6. When using the SPI_PUSHR_PCS macro, i noticed that it would let me set the 6th PCS. According to the Memory Map/Register Definition to SPIx_PUSHR in the reference manual, it shows 6 bits allocated to PCS selection.
Kinetis.h line 4417 is the culprit:
I suggest this get updated in the future to
I'm working on a little project that utilizes all 6 slave selects on SPI0 on a Teensy 3.6. When using the SPI_PUSHR_PCS macro, i noticed that it would let me set the 6th PCS. According to the Memory Map/Register Definition to SPIx_PUSHR in the reference manual, it shows 6 bits allocated to PCS selection.
Kinetis.h line 4417 is the culprit:
Code:
#define SPI_PUSHR_PCS(n) (((n) & 31) << 16) //
I suggest this get updated in the future to
Code:
#define SPI_PUSHR_PCS(n) (((n) & 63) << 16) //