This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

how to use my_fifo defined with K_FIFO_DEFINE(my_fifo) in another file?

Hello,

I want to use a FIFO. I want to send the data from file1.c and receive it on file2.c.

Currently, I have defiend my_fifo using  K_FIFO_DEFINE(my_fifo) and using k_fifo_put(my_fifo ) and k_fifo_get(my_fifo) from file1.c only and it is working. 

Now I want to use k_fifo_get(my_fifo) in file2.c but I am not able to find a way for how to use it. 

Requesting help asap.

Best Regards,

SanketC

Related