This is just bits an pieces of useful code
C macro wrapper and copy function for foreground objects that are updated in a lower priority task and fast switched by changing the main pointer. Allows setting multiple copies to allow copies of the pointer to operate for periods of time after switch.
crc8 functions
C queue macros for simple fifos
General State machine with timed states, target state, and error state callbacks