forked from PAWPAW-Mirror/lib_xua
Initial changes to remove xud dependancies when compiling with NO_USB=1
This commit is contained in:
@@ -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 */
|
||||
@@ -1,3 +1,5 @@
|
||||
#ifndef NO_USB
|
||||
#include <interrupt.h>
|
||||
|
||||
register_interrupt_handler(handle_audio_request, 1, 200)
|
||||
#endif
|
||||
@@ -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 */
|
||||
|
||||
|
||||
@@ -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 */
|
||||
Reference in New Issue
Block a user