|
f2483dfd5b
|
Merge pull request #1649 from kaspar030/ringbuffer_remove
sys: lib: introduce ringbuffer_remove()
|
2014-10-30 23:20:06 +01:00 |
|
|
e4257284ad
|
sys: lib: introduce ringbuffer_remove()
This commit adds a function that deletes n elements from the ringbuffer
without actually writing them somewhere.
|
2014-10-30 23:23:27 +01:00 |
|
René Kijewski
|
c0914ec451
|
sys:ringbuffer: static inline ringbuffer_init
|
2014-10-28 12:21:46 +01:00 |
|
|
6e03faa3d6
|
sys: lib: ringbuffer: introduce ringbuffer_get_free
This function returns the number of bytes available in the ringbuffer.
|
2014-10-22 17:07:36 +02:00 |
|
Ludwig Ortmann
|
b7992922ce
|
fix license headers in non-.c files
|
2014-08-23 16:16:26 +02:00 |
|
René Kijewski
|
02aeca02db
|
ringbuffer: add static initializer
|
2014-07-28 20:56:12 +02:00 |
|
René Kijewski
|
201152a6d3
|
ringbuffer: add documentation
|
2014-07-28 20:56:12 +02:00 |
|
René Kijewski
|
a346276d30
|
ringbuffer: don't overwrite in ringbuffer_add
|
2014-07-28 20:44:02 +02:00 |
|
René Kijewski
|
47950e8bab
|
ringbuffer: remove pointer to the end
There is no need for an explicit pointer to the end of the buffer.
|
2014-07-28 20:44:02 +02:00 |
|
René Kijewski
|
726af8d44e
|
ringbuffer: fix parameter types
It is a bad idea to use signed types for lengths.
Mark pointers a `restrict`, since the ringbuffer is not thread safe
anyway.
|
2014-07-28 20:44:02 +02:00 |
|
René Kijewski
|
67856d63d9
|
ringbuffer: add convenience functions
This patch add `peek` functionality, and empty and full helpers.
|
2014-07-28 20:44:01 +02:00 |
|
René Kijewski
|
f23dab96d2
|
sys: rename ringbuffer functions
Closes #1011.
|
2014-05-03 16:39:39 +02:00 |
|
Ludwig Ortmann
|
2525920426
|
remove trailing whitespace and newlines
|
2014-02-11 18:45:06 +01:00 |
|
Oleg Hahm
|
593ee623b6
|
simplify and unify include pathes
additional:
* exporting include path in sys is mandatory for subfolders
* removed duplicate object file in linker call
|
2014-01-05 16:11:07 +01:00 |
|