Create a new LightweightRingBuffer.h header file for the XPLAIN project to abstract out the new ring buffer without a performance penalty.

This commit is contained in:
Dean Camera 2010-05-26 06:35:02 +00:00
parent 9c037a952f
commit 9b29d1dc50
4 changed files with 102 additions and 39 deletions

View file

@ -45,8 +45,9 @@
#include "AVRISPDescriptors.h"
#include "USARTDescriptors.h"
#include "Lib/SoftUART.h"
#include <Lib/V2Protocol.h>
#include "Lib/LightweightRingBuff.h"
#include "Lib/SoftUART.h"
#include "Lib/V2Protocol.h"
#include <LUFA/Version.h>
#include <LUFA/Drivers/Board/LEDs.h>
@ -74,14 +75,6 @@
/** Firmware mode define for the AVRISP Programmer mode. */
#define MODE_PDI_PROGRAMMER true
/* Type Defines: */
typedef struct
{
uint8_t Buffer[128];
uint8_t* In;
uint8_t* Out;
} RingBuff_t;
/* External Variables: */
extern bool CurrentFirmwareMode;