SCI.c in firmware for JM60 ver 4.3

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

SCI.c in firmware for JM60 ver 4.3

1,346件の閲覧回数
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)
タグ(2)
0 件の賞賛
返信
1 返信

704件の閲覧回数
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 件の賞賛
返信