Howto understand queue size in charq.h

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Howto understand queue size in charq.h

Jump to solution
811 Views
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?

Tags (2)
0 Kudos
Reply
1 Solution
607 Views
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

View solution in original post

0 Kudos
Reply
2 Replies
608 Views
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 Kudos
Reply
607 Views
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 Kudos
Reply