Skip to content

Commit 903edd7

Browse files
committed
Merge remote-tracking branch 'origin/develop' into main
2 parents c8d39e2 + fcf522a commit 903edd7

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,16 @@ Ring buffer modules is implemented for general used in embedded C code. It suppo
33

44
Ring buffer memory space is dynamically allocated and success of allocation is taken into consideration before using that instance. Deallocation on exsisting ring buffer instance is not supported as it's not good practice to free memory in C world.
55

6-
## API
6+
#### Dependencies
7+
8+
Definition of flaot32_t must be provided by user. In current implementation it is defined in "*project_config.h*". Just add following statement to your code where it suits the best.
9+
10+
```C
11+
// Define float
12+
typedef float float32_t;
13+
```
14+
15+
#### API
716

817
API of ring buffer constist of three blocks, those are: initialization, add element to buffer and get element from buffer. Note that getting element from buffer intakes intiger parameter as support normal and invers access. Invers access meas that get function will return time related element from ring buffer. This feature is specially handy when comes to digital filter calculations.
918

version.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
//============================================================
2+
// Version 1.0.0 (13.02.2021)
3+
//============================================================
4+
// - Initial implementation of ring buffer
5+
// - Supported three data types: uint32_t, int32_t and float32_t
6+
// - Two types of buffer access: NORMAL & INVERS
7+
//
8+
//============================================================

0 commit comments

Comments
 (0)