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

Discussion created by lpcware Employee on Jun 15, 2016
Content originally posted in LPCWare by 1234567890 on Sun Jun 08 03:55:27 MST 2014

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.