SCI.c in firmware for JM60 ver 4.3

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

SCI.c in firmware for JM60 ver 4.3

1,345 次查看
leb
Contributor I

I hope this is the correct forum for this post...

 

I was reviewing the file SCI.c for the BDM firmware.  I think that because a preIncrement is used to place a char in the txbuffer : U8 tPtr = txTail+1; then a preIncrement operator should be used to take it off :  ch = txBuffer[++txHead]; not ch = txBuffer[txHead++];  Both txTail and txHead start as 0.

标记 (2)
0 项奖励
回复
1 回复

703 次查看
leb
Contributor I

My mistake.  On a second look I see that I mistook the test for queue full as the actual enqueing.  Sorry!

0 项奖励
回复