summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2020-10-31 17:22:51 +0100
committerxengineering <mail2xengineering@protonmail.com>2020-10-31 17:22:51 +0100
commit45def2a4827b206fc3e2351a29719d16b980338b (patch)
tree5564575a3e0861bdb4e8411247ce00d285189613
parent56c268e88a87f708de1824d87fbf7b824d4c1c2a (diff)
downloadstm32f103c8-examples-45def2a4827b206fc3e2351a29719d16b980338b.tar
stm32f103c8-examples-45def2a4827b206fc3e2351a29719d16b980338b.tar.zst
stm32f103c8-examples-45def2a4827b206fc3e2351a29719d16b980338b.zip
Repair ASCII Art
-rw-r--r--libraries/fifo.h48
1 files changed, 24 insertions, 24 deletions
diff --git a/libraries/fifo.h b/libraries/fifo.h
index 700d2ec..1a77705 100644
--- a/libraries/fifo.h
+++ b/libraries/fifo.h
@@ -1,30 +1,30 @@
/*
- FIFO Ring Buffer uint8_t array ring_buffer (example length is 8)
- with data (x) and read and write index:
-
- --- --- --- --- --- --- --- ---
- | | | x | x | x | | | |
- --- --- --- --- --- --- --- ---
- ^ ^
- | |
- read_index |
- write_index
-
- --- --- --- --- --- --- --- ---
- | x | x | | | | x | x | x |
- --- --- --- --- --- --- --- ---
- ^ ^
- | |
- write_index |
- read_index
-
- - input data goes to position of write_index
- - output data comes from read_index position
- - after input/output operation the according index has to be modified
- - according to the idea of ring buffers the write_index could be
- smaller than the read_index
+ FIFO Ring Buffer uint8_t array ring_buffer (example length is 8)
+ with data (x) and read and write index:
+
+ --- --- --- --- --- --- --- ---
+ | | | x | x | x | | | |
+ --- --- --- --- --- --- --- ---
+ ^ ^
+ | |
+ read_index |
+ write_index
+
+ --- --- --- --- --- --- --- ---
+ | x | x | | | | x | x | x |
+ --- --- --- --- --- --- --- ---
+ ^ ^
+ | |
+ write_index |
+ read_index
+
+ - input data goes to position of write_index
+ - output data comes from read_index position
+ - after input/output operation the according index has to be modified
+ - according to the idea of ring buffers the write_index could be
+ smaller than the read_index
*/