Using ring buffer with kinetis KEAZ128

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

Using ring buffer with kinetis KEAZ128

375 次查看
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 回复数