Using ring buffer with kinetis KEAZ128

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

Using ring buffer with kinetis KEAZ128

354件の閲覧回数
huangxiaofeng
Contributor I

Some questions when using Kinetis KEAZ128.

I'm try to using ring buffer between two threads: the while loop in the main and the other in mscan's rx/tx interrupt. I'm searchine google for a while and no simple way to do a lock-free data transfer.

so my questions are:

1, if there's a way to implement lock-free ring buffer.

2, otherwise how to disable interrupt correctly?

there's another question when using KDS. the stack pointer is delacred in startup.c with char pointer, and declared with uint32_t in vector.c, when linked with LTO, there always a warning "warning: type of '__SP_INIT' does not match original declaration". how should i disabled or correct this warning.

PS: GCC 4.9.1 is used.

ラベル(1)
0 件の賞賛
0 返答(返信)