put data into the fifo using a spinlock for locking
address of the fifo to be used
the data to be added
number of elements to be added
pointer to the spinlock to use for locking
This macro copies the given values buffer into the fifo and returns the
number of copied elements.