typedef struct fifo_s{ uint8_t * const buf_p; uint16_t const size; uint16_t ri; uint16_t wi;} fifo_t;#define DECLARE_FIFO(name, size) uint8_t name##_buff[size]; fifo_t name = { name##_buff, size, 0, 0, }
typedef struct fifo_s
{
uint8_t * const buf_p;
uint16_t const size;
uint16_t ri;
uint16_t wi;
} fifo_t;
#define DECLARE_FIFO(name, size) uint8_t name##_buff[size]; fifo_t name = { name##_buff, size, 0, 0, }