-
-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/release/v2.0.0'
- Loading branch information
Showing
26 changed files
with
241 additions
and
209 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,4 @@ List of all the modules: | |
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
ringbuff | ||
lwrb |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.. _api_lwrb: | ||
|
||
LwRB | ||
==== | ||
|
||
.. doxygengroup:: LWRB |
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
#include "ringbuff/ringbuff.h" | ||
#include "lwrb/lwrb.h" | ||
|
||
/* Buffer variables */ | ||
ringbuff_t buff; /* Declare ring buffer structure */ | ||
lwrb_t buff; /* Declare ring buffer structure */ | ||
uint8_t buff_data[8]; /* Declare raw buffer data array */ | ||
|
||
/* Application variables | ||
uint8_t data[2]; /* Application working data */ | ||
|
||
/* Application code ... */ | ||
ringbuff_init(&buff, buff_data, sizeof(buff_data)); /* Initialize buffer */ | ||
lwrb_init(&buff, buff_data, sizeof(buff_data)); /* Initialize buffer */ | ||
|
||
/* Write 4 bytes of data */ | ||
ringbuff_write(&buff, "0123", 4); | ||
lwrb_write(&buff, "0123", 4); | ||
|
||
/* Print number of bytes in buffer */ | ||
printf("Bytes in buffer: %d\r\n", (int)ringbuff_get_full(&buff)); | ||
printf("Bytes in buffer: %d\r\n", (int)lwrb_get_full(&buff)); | ||
|
||
/* Will print "4" */ |
This file contains 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
Oops, something went wrong.