SSP driver: Why tx- and rx-counters not initilized to zero?

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

SSP driver: Why tx- and rx-counters not initilized to zero?

406 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by 1234567890 on Sun Jun 08 03:55:27 MST 2014
Hi,

I'm just playing with the SSP driver for a LPCXPresso LPC11C24. The function Chip_SSP_RWFrames_Blocking(...)
uses the
xf_setup.tx_cnt and xf_setup.rx_cnt
counters for proper work. Therefore it's allways neccessary to reset both counters to zero at the entrance of each call (at least I think so).
So why isn't that mandatory initialisation done in the driver and has to be done manually?

Btw.: The SSP of the CM0 seems not that compatible/usefull in slave mode when using SPI mode 0: When back-to-back writing after each word the SSEL has to be set to inactive state. That's really bad.
Labels (1)
0 Kudos
0 Replies