Subversion Repositories Code-Repo

Compare Revisions

Ignore whitespace Rev 113 → Rev 114

/Classwork/ECE4534 - Embedded Systems/PIC 26J11/buffer.h
1,9 → 1,17
#ifndef __circular_buffer_h
#define __circular_buffer_h
 
#include "maindefs.h"
#include "xbee.h"
 
#define BUFFER_OK 0
#define BUFFER_ERROR -1
 
#ifdef _BASE_STATION
#define BUFFER_SIZE 512
#else
#define BUFFER_SIZE 100 //(max is 125 for some reason)
#endif
 
typedef struct __BUFFER_DATA {
unsigned int index_read;