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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

431 次查看
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 回复数