Skip to content

Commit

Permalink
applications: nrf5340_audio: Audio module updates
Browse files Browse the repository at this point in the history
    Corrections from use, additional testing and fake function updates.

Signed-off-by: Graham Wacey <[email protected]>
  • Loading branch information
gWacey committed Jul 17, 2024
1 parent 4a7bcd1 commit 3ecf933
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions include/data_fifo.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ struct data_fifo {

#define DATA_FIFO_DEFINE(name, elements_max_in, block_size_max_in) \
char __aligned(WB_UP(1)) \
_msgq_buffer_##name[(elements_max_in) * sizeof(struct data_fifo_msgq)] = { 0 }; \
_msgq_buffer_##name[(elements_max_in) * sizeof(struct data_fifo_msgq)] = {0}; \
char __aligned(WB_UP(1)) \
_slab_buffer_##name[(elements_max_in) * (block_size_max_in)] = { 0 }; \
struct data_fifo name = { .msgq_buffer = _msgq_buffer_##name, \
.slab_buffer = _slab_buffer_##name, \
.block_size_max = block_size_max_in, \
.elements_max = elements_max_in, \
.initialized = false }
_slab_buffer_##name[(elements_max_in) * (block_size_max_in)] = {0}; \
struct data_fifo name = {.msgq_buffer = _msgq_buffer_##name, \
.slab_buffer = _slab_buffer_##name, \
.block_size_max = block_size_max_in, \
.elements_max = elements_max_in, \
.initialized = false}

/**
* @brief Get pointer to the first vacant block in slab.
Expand Down

0 comments on commit 3ecf933

Please sign in to comment.