工具类–开源循环缓冲区

Circular buffers are a critical component to have in the embedded software engineers’ toolbox. Over the years there have been many different implementations and examples of circular buffers that have littered the internet.  I’ve grown particularly fond of the open source CBUF.h module that can be found at //github.com/barraq/BRBrain/blob/master/firmware/CBUF.h The CBUF.h module implements a circular buffer using … 继续阅读 工具类–开源循环缓冲区

技巧和窍门–中断API

中断在实时嵌入式系统中起着至关重要的作用,但是很少有中断控制与应用程序编程接口(API)相关联。汇编语言代码或编译器内在函数通常散布在整个代码中,使得使用中断函数很危险且难以理解。本文将探讨中断API应该具有的功能… 继续阅读 技巧和窍门–中断API