Compare commits
2 Commits
095fca6b3d
...
main
Author | SHA1 | Date | |
---|---|---|---|
8cbd64034b | |||
99c2f4f0d4 |
@ -13,7 +13,9 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "global.h"
|
||||
#ifndef RINGBUFFER_H
|
||||
#include "ringbuffer.h"
|
||||
#endif
|
||||
|
||||
#define IIC_DEVICE "/dev/i2c-7"
|
||||
#define BUFFER_BLOCKS 128
|
||||
|
@ -1,4 +1,6 @@
|
||||
#ifndef RINGBUFFER_H
|
||||
#include "ringbuffer.h"
|
||||
#endif
|
||||
|
||||
void _ringBufferIncReader(struct ringBuffer *buf) {
|
||||
buf->reader += buf->blockSize;
|
||||
|
@ -6,6 +6,8 @@
|
||||
#include <pthread.h>
|
||||
#endif
|
||||
|
||||
#define RINGBUFFER_H
|
||||
|
||||
struct ringBuffer {
|
||||
void *buffer;
|
||||
int blocks;
|
||||
|
Reference in New Issue
Block a user