Howto understand queue size in charq.h

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

Howto understand queue size in charq.h

ソリューションへジャンプ
1,370件の閲覧回数
Fabi
Contributor III

During troubleshooting of my application using interrupt based :ittya I've just arrived charq.h

At line 161 is a fixed array for data members:

char      QUEUE[4];

 

On the other hand, I've configured

BSPCFG_SCI0_QUEUE_SIZE              64

 

Does this work? I haven't found any relation between _CHARQ_FULL and size 4. Should I increase the size of the array?

タグ(2)
0 件の賞賛
返信
1 解決策
1,166件の閲覧回数
PetrM
Senior Contributor I

Hello,

 

BSPCFG_SCI0_QUEUE_SIZE works. Don't make changes to the structure. It it assumed, that the structure is located at the beginning of some memory pool and everything that follows is the QUEUE itself.

 

Regards,

PetrM

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,167件の閲覧回数
PetrM
Senior Contributor I

Hello,

 

BSPCFG_SCI0_QUEUE_SIZE works. Don't make changes to the structure. It it assumed, that the structure is located at the beginning of some memory pool and everything that follows is the QUEUE itself.

 

Regards,

PetrM

0 件の賞賛
返信
1,166件の閲覧回数
Fabi
Contributor III

Thanks PetrM for explanation. I'm currently improving serl_int.c to reduce interrupt load. I want to use HW FIFO from MK60 which is 8 byte because I've high RX load (460 KBaud) in my application.

In relation with this development I need to inspect the charq content during debug. To see the full array content (64 byte) instead of 4 bytes only, I've adapted the queue size from 4 to 64 byte.

I promise to revert it to 4 bytes in the release version of my application :smileywink:

0 件の賞賛
返信