Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EALib EthernetInterface_vz mbed-rtos mbed
Fork of header_main_colinas_V0-20-09-14 by
ring_buffer.h
00001 #ifndef __RING_BUFFER_H__ 00002 #define __RING_BUFFER_H__ 00003 00004 #include <assert.h> 00005 #include <stdlib.h> 00006 #include "shared_variables.h" 00007 00008 const uint8_t RING_BUFFER_SIZE = 5; 00009 00010 typedef struct{ 00011 uint8_t size; 00012 uint8_t begin; 00013 uint8_t end; 00014 uint8_t * data; 00015 }ring_buffer; 00016 00017 //FIXME essa funcao deve ser a xmemcpy 00018 void rb_xmemcpy(uint8_t * dest, uint8_t * src, uint16_t size); 00019 00020 ring_buffer * ring_buffer_init( ring_buffer * rb ); 00021 00022 uint8_t ring_buffer_add( ring_buffer * rb, uint8_t * data ); 00023 00024 uint8_t * ring_buffer_get_next( ring_buffer * rb ); 00025 00026 #endif
Generated on Tue Jul 12 2022 16:25:12 by
