Skip to content

Commit

Permalink
examples/virtio-snd: move SERIAL_NUM_CLIENTS to header
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Brown <[email protected]>
  • Loading branch information
alexandermbrown committed Jul 15, 2024
1 parent b315de3 commit 308b45b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions examples/virtio-snd/include/serial_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
#include <sddf/serial/queue.h>
#include <stdint.h>

/* Number of clients connected to the serial device. */
#define SERIAL_NUM_CLIENTS 3

/* Only support transmission and not receive. */
#define SERIAL_TX_ONLY 0

Expand Down
2 changes: 1 addition & 1 deletion examples/virtio-snd/virtio_snd.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ UART_DRIVER := $(SDDF)/drivers/serial/$(UART_DRIVER)
SERIAL_COMPONENTS := $(SDDF)/serial/components
SND_COMPONENTS := $(SDDF)/sound/components

SERIAL_NUM_CLIENTS := -DSERIAL_NUM_CLIENTS=3
# This will be changed in future PR to use same header system as serial & blk.
SND_NUM_CLIENTS := -DSND_NUM_CLIENTS=3

BOARD_DIR := $(MICROKIT_SDK)/board/$(MICROKIT_BOARD)/$(MICROKIT_CONFIG)
Expand Down

0 comments on commit 308b45b

Please sign in to comment.