From bd805acf04477e4be709df97334550fa867d96f9 Mon Sep 17 00:00:00 2001 From: mbanth Date: Wed, 19 May 2021 17:06:58 +0100 Subject: [PATCH] Correct headers --- tests/xua_unit_tests/src/xua_conf.h | 37 +++++++++++++++++++++++ tests/xua_unit_tests/src/xua_unit_tests.h | 18 +++-------- 2 files changed, 42 insertions(+), 13 deletions(-) create mode 100644 tests/xua_unit_tests/src/xua_conf.h diff --git a/tests/xua_unit_tests/src/xua_conf.h b/tests/xua_unit_tests/src/xua_conf.h new file mode 100644 index 00000000..77b3656a --- /dev/null +++ b/tests/xua_unit_tests/src/xua_conf.h @@ -0,0 +1,37 @@ +// Copyright 2021 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. + +#define NUM_USB_CHAN_OUT 2 +#define NUM_USB_CHAN_IN 2 +#define I2S_CHANS_DAC 2 +#define I2S_CHANS_ADC 2 +#define MCLK_441 (512 * 44100) +#define MCLK_48 (512 * 48000) +#define MIN_FREQ 48000 +#define MAX_FREQ 48000 + +#define EXCLUDE_USB_AUDIO_MAIN +#define NUM_PDM_MICS 0 + +#define PDM_TILE 2 +#define XUD_TILE 1 +#define AUDIO_IO_TILE 1 + +#define MIXER 0 + +#define SPDIF_TX_INDEX 0 +#define VENDOR_STR "XMOS" +#define VENDOR_ID 0x20B1 +#define PRODUCT_STR_A2 "XMOS USB Audio Class" +#define PRODUCT_STR_A1 "XMOS USB Audio Class" +#define PID_AUDIO_1 1 +#define PID_AUDIO_2 2 +#define AUDIO_CLASS 2 +#define AUDIO_CLASS_FALLBACK 0 +#define BCD_DEVICE 0x1234 +#define XUA_DFU_EN 0 + +/* TODO */ +#define XUA_DFU XUA_DFU_EN + +#define FB_USE_REF_CLOCK 1 diff --git a/tests/xua_unit_tests/src/xua_unit_tests.h b/tests/xua_unit_tests/src/xua_unit_tests.h index bb7275b3..11fd6faf 100644 --- a/tests/xua_unit_tests/src/xua_unit_tests.h +++ b/tests/xua_unit_tests/src/xua_unit_tests.h @@ -1,25 +1,17 @@ -// Copyright 2018-2021 XMOS LIMITED. +// Copyright 2021 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. -#ifndef VTB_UNIT_TESTS_H_ -#define VTB_UNIT_TESTS_H_ +#ifndef XUA_UNIT_TESTS_H_ +#define XUA_UNIT_TESTS_H_ #include "unity.h" #ifdef __XC__ #include -#include -#include - #include -#include "audio_test_tools.h" -#include "voice_toolbox.h" -#include "voice_toolbox_fp.h" -#include "vtb_references.h" - -#define TEST_ASM 1 +#include "xua_conf.h" #endif // __XC__ -#endif /* VTB_UNIT_TESTS_H_ */ +#endif /* XUA_UNIT_TESTS_H_ */