Initial changes to remove xud dependancies when compiling with NO_USB=1

This commit is contained in:
Ed Clarke
2017-06-29 09:48:59 +01:00
parent c351c901bf
commit 721ee98ea4
15 changed files with 38 additions and 18 deletions

View File

@@ -1,3 +1,4 @@
#ifndef NO_USB
#include <xs1.h>
#include "xc_ptr.h"
#include "devicedefines.h"
@@ -1019,4 +1020,4 @@ void decouple(chanend c_mix_out
#endif /* NUM_USB_CHAN_IN > 0 */
}
}
#endif /* NO_USB */

View File

@@ -1,3 +1,5 @@
#ifndef NO_USB
#include <interrupt.h>
register_interrupt_handler(handle_audio_request, 1, 200)
#endif

View File

@@ -1,3 +1,4 @@
#ifndef NO_USB
#include "xud.h"
extern XUD_BusSpeed_t g_curUsbSpeed;
@@ -48,3 +49,5 @@ void GetADCCounts(unsigned samFreq, int *min, int *mid, int *max)
}
}
#endif /* NO_USB */

View File

@@ -1,4 +1,4 @@
#ifndef NO_USB
#include <xs1.h>
#include <print.h>
@@ -957,3 +957,4 @@ void buffer(register chanend c_aud_out, register chanend c_aud_in,
}
}
#endif /* NO_USB */