Created
October 4, 2013 18:31
-
-
Save dagon666/6830466 to your computer and use it in GitHub Desktop.
ring buffer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| typedef struct _t_buffer { | |
| /// data storage space for the ring buffer | |
| volatile unsigned char ring[SERIAL_RX_RING_SIZE]; | |
| /// head index | |
| volatile unsigned char head; | |
| /// tail index | |
| volatile unsigned char tail; | |
| } t_buffer; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment