ADAT_RX not XUA_ADAT_RX_EN

This commit is contained in:
xross
2022-09-05 16:35:57 +01:00
parent 3336aa344d
commit 11f5a9d9e1
12 changed files with 137 additions and 139 deletions

View File

@@ -371,8 +371,8 @@
/**
* @brief Enables ADAT Rx. Default: 0 (Disabled)
*/
#ifndef ADAT_RX
#define ADAT_RX (0)
#ifndef XUA_ADAT_RX_EN
#define XUA_ADAT_RX_EN (0)
#endif
/**
@@ -392,11 +392,11 @@
* @brief ADAT Rx first channel index. defines which channels ADAT will be input on.
* Note, indexed from 0.
*
* Default: NONE (Must be defined by app when ADAT_RX enabled)
* Default: NONE (Must be defined by app when XUA_ADAT_RX_EN is true)
*/
#if (ADAT_RX) || defined(__DOXYGEN__)
#if (XUA_ADAT_RX_EN) || defined(__DOXYGEN__)
#ifndef ADAT_RX_INDEX
#error ADAT_RX_INDEX not defined and ADAT_RX defined
#error ADAT_RX_INDEX not defined and XUA_ADAT_RX_EN is true
#define ADAT_RX_INDEX (0) /* Default define for doxygen */
#endif
@@ -405,7 +405,7 @@
#endif
#endif
#if ADAT_RX
#if (XUA_ADAT_RX_EN)
/* Setup input stream formats for ADAT */
#if(MAX_FREQ > 96000)
@@ -1168,7 +1168,7 @@ enum USBEndpointNumber_In
ENDPOINT_NUMBER_IN_FEEDBACK,
#endif
ENDPOINT_NUMBER_IN_AUDIO,
#if (XUA_SPDIF_RX_EN) || (ADAT_RX)
#if (XUA_SPDIF_RX_EN) || (XUA_ADAT_RX_EN)
ENDPOINT_NUMBER_IN_INTERRUPT, /* Audio interrupt/status EP */
#endif
#ifdef MIDI
@@ -1242,9 +1242,9 @@ enum USBEndpointNumber_Out
#endif
/* Length of clock unit/clock-selector units */
#if (XUA_SPDIF_RX_EN) && (ADAT_RX)
#if (XUA_SPDIF_RX_EN) && (XUA_ADAT_RX_EN)
#define NUM_CLOCKS (3)
#elif (XUA_SPDIF_RX_EN) || (ADAT_RX)
#elif (XUA_SPDIF_RX_EN) || (XUA_ADAT_RX_EN)
#define NUM_CLOCKS (2)
#else
#define NUM_CLOCKS (1)
@@ -1472,7 +1472,7 @@ enum USBEndpointNumber_Out
#endif
#if (XUA_SYNCMODE == XUA_SYNCMODE_SYNC)
#if (XUA_SPDIF_RX_EN|| ADAT_RX)
#if (XUA_SPDIF_RX_EN || XUA_ADAT_RX_EN)
#error "Digital input streams not supported in Sync mode"
#endif
#endif