Commit Graph
27 Commits
Author SHA1 Message Date
nqtronix b9af9b88eb Add inline functions
Most macros are now also implemented as an inline function. These function accept a pointer toa pointable fifo as a parameter. The "read" and "add" functions are not implemented yet
2018-11-09 16:29:47 +01:00
nqtronix 1584e9880a Fix readme (added missing parameter) 2018-11-08 19:39:10 +01:00
nqtronix fb6c7c2a06 Release 0.5.0
Features automatic testing and an updated readme
v0.5.0
2018-11-08 19:22:00 +01:00
nqtronix 9016f396ca Move test code into seperate file 'fifofast_test.c/.h'
To do the testing in a separate file, the declarations have been moved into a seperate  header 'fifofast_demo.h'
2018-11-08 18:24:50 +01:00
nqtronix 194283d652 Fix '_fff_declare_a(...)' macro
To correctly create an array it is best to state the size at time of declaration. Unfortunatly the size must be specified in the .h AND .c file. We recommend using a #define'd value
2018-11-08 18:22:05 +01:00
nqtronix f89fc92d02 Add 'unittrace' and update the test code
Test fully passes
2018-11-07 21:15:24 +01:00
nqtronix 2c60fea35a Refactor internal macro names (_FFF_*) 2018-11-07 18:49:00 +01:00
nqtronix 0bd45bd1a6 [update] updated macro_type.h for a slighly cleaner solution 2018-11-07 18:44:34 +01:00
nqtronix 1327282bac [change] index type set by typedef instead of macro 2018-10-29 21:47:55 +01:00
nqtronix 1f7a82d0ed [fix] _fff_init_a() can now be used to globaly initialise a variable v0.4.1 2018-10-26 20:29:27 +02:00
nqtronix 8612c57557 [snapshot 0.4.0] Arrays of fifos now possible... [+2]
... Example code is included ath the end of fifofast_demo.c
[change] structure name generation has been unified. This requires no change in the user's code
[note] optimisation has been disabled, because else GCC optimizes fifos away, DESPITE volatile declaration (at least for testing in the simulator)
2018-10-24 18:18:08 +02:00
nqtronix 75b568ff94 [fix] 0.3.5 did not compile because of missing defined
I've no idea why I forgot to compile last version, but the issue is fixed now.
2018-10-24 07:15:13 +02:00
nqtronix 6708be55ae [new] aligned data example in fifofast_demo.c [+1]
[cleanup] in preparation to re-introduce the inline functions the three pointable fifo-types have been unified. You can gloabally select the desired max size with 'FIFOFAST_INDEX_TYPE'
2018-10-23 21:57:09 +02:00
nqtronix 9e92c11435 [fix] unused debug variables don't cause warnings anymore 2018-10-22 19:56:51 +02:00
nqtronix e7fb8a1de8 [cleanup] only include what is really needed 2018-10-22 18:19:50 +02:00
nqtronix 86116f0325 [fix] macro file structure correct in the .cproj file 2018-10-22 17:52:32 +02:00
nqtronix a3bd4c5a56 [update] optimised log2 macro by using a GCC build-in function...
... This also fixed a bug with the log2_16 and log2_32 macros (which was not further investigated, because both macros have been replaced now).
2018-10-14 17:07:26 +02:00
nqtronix 4d78697143 [update] changed underlying macro file structure 2018-10-14 16:14:31 +02:00
nqtronix 24dad3d100 [snapshot 0.3.0] _fff_remove is now proven to work... [+3]
... because I totaly forgot to test it properly in last snapshot
[change] _fff_remove re-written and _fff_remove_lite variant added
[new] tests for _fff_remove added
[new] test for _fff_peek idx overflow added
2018-10-03 13:58:16 +02:00
nqtronix 6e323ce62a [update] corrected a few comments 2018-10-03 11:49:39 +02:00
nqtronix 41e2b28d27 [fix] _fff_read() returns now any type correctly 2018-09-26 11:39:07 +02:00
nqtronix a74df4e663 [update] readme.md contains now mention of the license 2018-09-26 09:59:58 +02:00
nqtronix f90439df30 [new] now under MIT license! 2018-09-26 09:42:55 +02:00
nqtronix 9f77287f45 [update] readme.md to 0.2.0 ...
... readme updated to match latest version of the code and changed some phrasing.
2018-09-26 09:36:58 +02:00
nqtronix be8ab9635c [snapshot 0.2.0] all macros tested and working as expected [+3]
[new] test file for all macros added. It also shows how macros are used.
[change] member "min_w" has been changed to its inverse meaning "level". This improves readability and speeds up common loops like "while(!_fff_is_empty(...))" slightly
[change] inline functions temporary commented
2018-09-26 09:19:46 +02:00
nqtronix de49e94b1f [pre-release] fifofast seperated from my usual working directory...
...  and is now compilible on its own. It comes with all helper macros required and a (very) crude demo file. Documentation and demo file will be extended soon.

version 0.1.0+wip
2018-09-17 21:07:45 +02:00
nqtronix e129cf121b Initial commit 2018-09-17 21:06:13 +02:00