![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Modularizando o src
Dependencies: EALib EthernetInterface_vz mbed-rtos mbed
Fork of header_main_colinas_V0-20-09-14 by
ring_buffer.h
- Committer:
- klauss
- Date:
- 2015-04-20
- Revision:
- 114:472502b31a12
- Parent:
- 113:db67ae00550e
- Child:
- 121:ee02790d00b7
File content as of revision 114:472502b31a12:
#ifndef __RING_BUFFER_H__ #define __RING_BUFFER_H__ #include <assert.h> // for unit_test #include <stdint.h> // for uint8* #include <stdlib.h> // for NULL ... #include "vz_protocol.h" // for __CB_BUFFER_SIZE__ #define RING_BUFFER_SIZE 5 typedef struct{ uint8_t size; uint8_t begin; uint8_t end; uint8_t * data; }ring_buffer; //FIXME essa funcao deve ser a xmemcpy void rb_xmemcpy(uint8_t * dest, uint8_t * src, uint16_t size); ring_buffer * ring_buffer_init( ring_buffer * rb ); void ring_buffer_delete( ring_buffer **rb ); uint8_t ring_buffer_add( ring_buffer * rb, uint8_t * data ); uint8_t * ring_buffer_get_next( ring_buffer * rb ); #endif