Re:Universal Stellaris ware ringbuf
Thanks Dave,
I have overlooked this function. However, there is one big BUT. I think, this function was primarily used to store data from byte array.
RingBufWrite, this way degrades cortex to 8 bit stupid device(due to "for" loop inside and calling function RingBufWriteOne for each byte and disabling interrupt).
RingBufWriteOne16, RingBufWriteOne32?
[my opinion] Flexibility is nice concept but with 16bit SSI fast device, 50MHz Cortex-M3 and RTOS situation, {call - push, call - push, disable int, enable int, pop, call - push, disable int, enable int, pop, pop} to store 16bit value is luxury.
Martin
Post edited by: wella, at: 2008/11/25 03:19
login or register to reply
|