forked from PAWPAW-Mirror/lib_xua
Various tiles - file location and rename
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
USB AUDIO MODULE
|
||||
================
|
||||
|
||||
:scope: General Use
|
||||
:description: Core USB Audio Module
|
||||
:keywords: USB Audio UAC2
|
||||
:boards: XR-USB-AUDIO-20-MC
|
||||
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
#include "xua.h"
|
||||
|
||||
#include "audioports.h"
|
||||
#include "audiohw.h"
|
||||
#include "mic_array_conf.h"
|
||||
#if (XUA_SPDIF_TX_EN)
|
||||
#include "SpdifTransmit.h"
|
||||
@@ -29,7 +28,7 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include "commands.h"
|
||||
#include "xua_commands.h"
|
||||
#include "xc_ptr.h"
|
||||
|
||||
#define MAX(x,y) ((x)>(y) ? (x) : (y))
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
#ifndef _CODEC_H_
|
||||
#define _CODEC_H_
|
||||
|
||||
#endif
|
||||
@@ -3,7 +3,7 @@
|
||||
#include "xua.h"
|
||||
#include "xc_ptr.h"
|
||||
#include "interrupt.h"
|
||||
#include "commands.h"
|
||||
#include "xua_commands.h"
|
||||
#include "xud.h"
|
||||
|
||||
#ifdef NATIVE_DSD
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#endif
|
||||
#endif
|
||||
#include "xc_ptr.h"
|
||||
#include "commands.h"
|
||||
#include "xua_commands.h"
|
||||
#include "xud.h"
|
||||
#include "testct_byref.h"
|
||||
|
||||
|
||||
@@ -4,14 +4,12 @@
|
||||
#include <print.h>
|
||||
|
||||
#include "xua.h"
|
||||
#include "commands.h"
|
||||
#include "xua_commands.h"
|
||||
|
||||
#if defined(SPDIF_RX)
|
||||
#include "SpdifReceive.h"
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#define LOCAL_CLOCK_INCREMENT 166667
|
||||
#define LOCAL_CLOCK_MARGIN 1666
|
||||
|
||||
@@ -57,7 +55,6 @@ static int channelContainsControlToken(chanend x)
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
static void outInterrupt(chanend c_interruptControl, int value)
|
||||
|
||||
@@ -1,144 +0,0 @@
|
||||
/**
|
||||
* @file dbtable.h
|
||||
* @brief 128 entry + neg inf db table from -inf to 0xffffffff
|
||||
* @author Ross Owen, XMOS Semiconductor
|
||||
* @version 1.0
|
||||
*/
|
||||
|
||||
#ifndef _DBTABLE_
|
||||
#define _DBTABLE_
|
||||
|
||||
static unsigned dbTable[129] =
|
||||
{
|
||||
4294967295, /* 0 -> 0xffffffff */
|
||||
3827893631,
|
||||
3411613790,
|
||||
3040603991,
|
||||
2709941159,
|
||||
2415237600,
|
||||
2152582777,
|
||||
1918491420,
|
||||
1709857277,
|
||||
1523911903,
|
||||
1358187913,
|
||||
1210486251,
|
||||
1078847007,
|
||||
961523407,
|
||||
856958639,
|
||||
763765191,
|
||||
680706443,
|
||||
606680256,
|
||||
540704347,
|
||||
481903257,
|
||||
429496729,
|
||||
382789363,
|
||||
341161379,
|
||||
304060399,
|
||||
270994116,
|
||||
241523760,
|
||||
215258278,
|
||||
191849142,
|
||||
170985728,
|
||||
152391190,
|
||||
135818791,
|
||||
121048625,
|
||||
107884701,
|
||||
96152341,
|
||||
85695864,
|
||||
76376519,
|
||||
68070644,
|
||||
60668026,
|
||||
54070435,
|
||||
48190326,
|
||||
42949673,
|
||||
38278936,
|
||||
34116138,
|
||||
30406040,
|
||||
27099412,
|
||||
24152376,
|
||||
21525828,
|
||||
19184914,
|
||||
17098573,
|
||||
15239119,
|
||||
13581879,
|
||||
12104863,
|
||||
10788470,
|
||||
9615234,
|
||||
8569586,
|
||||
7637652,
|
||||
6807064,
|
||||
6066803,
|
||||
5407043,
|
||||
4819033,
|
||||
4294967,
|
||||
3827894,
|
||||
3411614,
|
||||
3040604,
|
||||
2709941,
|
||||
2415238,
|
||||
2152583,
|
||||
1918491,
|
||||
1709857,
|
||||
1523912,
|
||||
1358188,
|
||||
1210486,
|
||||
1078847,
|
||||
961523,
|
||||
856959,
|
||||
763765,
|
||||
680706,
|
||||
606680,
|
||||
540704,
|
||||
481903,
|
||||
429497,
|
||||
382789,
|
||||
341161,
|
||||
304060,
|
||||
270994,
|
||||
241524,
|
||||
215258,
|
||||
191849,
|
||||
170986,
|
||||
152391,
|
||||
135819,
|
||||
121049,
|
||||
107885,
|
||||
96152,
|
||||
85696,
|
||||
76377,
|
||||
68071,
|
||||
60668,
|
||||
54070,
|
||||
48190,
|
||||
42950,
|
||||
38279,
|
||||
34116,
|
||||
30406,
|
||||
27099,
|
||||
24152,
|
||||
21526,
|
||||
19185,
|
||||
17099,
|
||||
15239,
|
||||
13582,
|
||||
12105,
|
||||
10788,
|
||||
9615,
|
||||
8570,
|
||||
7638,
|
||||
6807,
|
||||
6067,
|
||||
5407,
|
||||
4819,
|
||||
4295,
|
||||
3828,
|
||||
3412,
|
||||
3041,
|
||||
2710,
|
||||
2415,
|
||||
2153,
|
||||
1918,
|
||||
0 // -0x8000
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -13,13 +13,13 @@
|
||||
#include "xud_device.h" /* Standard descriptor requests */
|
||||
#include "dfu_types.h"
|
||||
#include "usbaudio20.h" /* Defines from USB Audio 2.0 spec */
|
||||
#include "xua_ep0_descriptors.h" /* This devices descriptors */
|
||||
#include "commands.h"
|
||||
#include "xua_ep0_descriptors.h" /* This devices descriptors */
|
||||
#include "xua_commands.h"
|
||||
#include "audiostream.h"
|
||||
#include "hostactive.h"
|
||||
#include "vendorrequests.h"
|
||||
#include "xc_ptr.h"
|
||||
#include "audiorequests.h"
|
||||
#include "xua_ep0_uacreqs.h"
|
||||
#ifdef HID_CONTROLS
|
||||
#include "hid.h"
|
||||
#endif
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include "usbaudio20.h"
|
||||
#include "usbaudio10.h"
|
||||
#include "dbcalc.h"
|
||||
#include "commands.h"
|
||||
#include "xua_commands.h"
|
||||
#include "xc_ptr.h"
|
||||
#ifdef MIXER
|
||||
#include "mixer.h"
|
||||
@@ -1,7 +0,0 @@
|
||||
|
||||
void UserHostActive(int active) __attribute__ ((weak));
|
||||
void UserHostActive(int active)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
|
||||
void UserHostActive(int active);
|
||||
@@ -1,25 +0,0 @@
|
||||
/** @file lock.h
|
||||
* @brief Functions for using hardware locks
|
||||
* @author Ross Owen, XMOS Limited
|
||||
*/
|
||||
|
||||
#ifndef _LOCK_H_
|
||||
#define _LOCK_H_ 1
|
||||
|
||||
typedef unsigned lock;
|
||||
|
||||
/* Allocates and returns a lock resource - returns 0 if out of lock */
|
||||
lock GetLockResource();
|
||||
|
||||
/* Claims the passed lock, this is a blocking call */
|
||||
void ClaimLock(lock l);
|
||||
|
||||
/* Frees the passed lock */
|
||||
void FreeLock(lock l);
|
||||
|
||||
/* De-allocated the passed lock resource */
|
||||
void FreeLockResource(lock l);
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
@@ -5,13 +5,14 @@
|
||||
#include "xua.h"
|
||||
#include "mixer.h"
|
||||
#include "xc_ptr.h"
|
||||
#include "commands.h"
|
||||
#include "xua_commands.h"
|
||||
#include "dbcalc.h"
|
||||
|
||||
#ifdef MIXER
|
||||
|
||||
/* FAST_MIXER has a bit of a nasty implentation but is more effcient */
|
||||
#define FAST_MIXER 1
|
||||
#warning USING FAST MIXER
|
||||
|
||||
|
||||
//#ifdef OUT_VOLUME_IN_MIXER
|
||||
static unsigned int multOut_array[NUM_USB_CHAN_OUT + 1];
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
/** @file lock.h
|
||||
* @brief Functions for using hardware locks
|
||||
* @author Ross Owen, XMOS Limited
|
||||
*/
|
||||
|
||||
#ifndef _LOCK_H_
|
||||
#define _LOCK_H_ 1
|
||||
|
||||
typedef unsigned lock;
|
||||
|
||||
/* Allocates and returns a lock resource - returns 0 if out of lock */
|
||||
lock GetLockResource();
|
||||
|
||||
/* Claims the passed lock, this is a blocking call */
|
||||
void ClaimLock(lock l);
|
||||
|
||||
/* Frees the passed lock */
|
||||
void FreeLock(lock l);
|
||||
|
||||
/* De-allocated the passed lock resource */
|
||||
void FreeLockResource(lock l);
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user