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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

437件の閲覧回数
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.
ラベル(1)
0 件の賞賛
0 返答(返信)