forked from PAWPAW-Mirror/lib_xua
added toplevel makefile for xpd
This commit is contained in:
@@ -11,9 +11,9 @@
|
||||
#if DSD_CHANS_DAC > 0
|
||||
port p_dsd_dac[DSD_CHANS_DAC] = {
|
||||
PORT_DSD_DAC0,
|
||||
#endif
|
||||
#endif
|
||||
#if DSD_CHANS_DAC > 1
|
||||
PORT_DSD_DAC1,
|
||||
PORT_DSD_DAC1,
|
||||
#endif
|
||||
#if DSD_CHANS_DAC > 2
|
||||
#error > 2 DSD chans currently not supported
|
||||
@@ -44,14 +44,14 @@ void ConfigAudioPortsWrapper(
|
||||
|
||||
#if (I2S_CHANS_DAC != 0) || (I2S_CHANS_ADC != 0)
|
||||
#ifndef CODEC_MASTER
|
||||
port p_lrclk,
|
||||
port p_lrclk,
|
||||
port p_bclk,
|
||||
#else
|
||||
in port p_lrclk,
|
||||
in port p_bclk,
|
||||
#endif
|
||||
#endif
|
||||
unsigned int divide, unsigned int dsdMode)
|
||||
unsigned int divide, unsigned int dsdMode)
|
||||
{
|
||||
|
||||
if(dsdMode)
|
||||
@@ -59,9 +59,9 @@ unsigned int divide, unsigned int dsdMode)
|
||||
/* Make sure the ports are on and buffered - just in case they are not shared with I2S */
|
||||
for(int i = 0; i< DSD_CHANS_DAC; i++)
|
||||
{
|
||||
EnableBufferedPort(p_dsd_dac[i], 32);
|
||||
EnableBufferedPort(p_dsd_dac[i], 32);
|
||||
}
|
||||
EnableBufferedPort(p_dsd_clk, 32);
|
||||
EnableBufferedPort(p_dsd_clk, 32);
|
||||
|
||||
ConfigAudioPorts(
|
||||
#if (DSD_CHANS_DAC != 0)
|
||||
@@ -87,7 +87,7 @@ unsigned int divide, unsigned int dsdMode)
|
||||
else
|
||||
{
|
||||
ConfigAudioPorts(
|
||||
#if (I2S_CHANS_DAC != 0)
|
||||
#if (I2S_CHANS_DAC != 0)
|
||||
p_i2s_dac,
|
||||
I2S_WIRES_DAC,
|
||||
#endif
|
||||
@@ -104,7 +104,7 @@ unsigned int divide, unsigned int dsdMode)
|
||||
p_bclk,
|
||||
#endif
|
||||
#endif
|
||||
divide);
|
||||
divide);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -8,7 +8,7 @@ void ConfigAudioPorts_dsd(unsigned int divide);
|
||||
|
||||
|
||||
#ifdef __XC__
|
||||
void ConfigAudioPorts(
|
||||
void ConfigAudioPorts(
|
||||
#if (I2S_CHANS_DAC != 0) || (DSD_CHANS_DAC != 0)
|
||||
buffered out port:32 p_i2s_dac[],
|
||||
int numDacPorts,
|
||||
@@ -32,7 +32,7 @@ void ConfigAudioPorts(
|
||||
unsigned int divide);
|
||||
#else
|
||||
|
||||
void ConfigAudioPorts(
|
||||
void ConfigAudioPorts(
|
||||
#if (I2S_CHANS_DAC != 0) || (DSD_CHANS_DAC != 0)
|
||||
port p_i2s_dac[],
|
||||
int numDacPorts,
|
||||
@@ -59,7 +59,7 @@ void ConfigAudioPorts(
|
||||
|
||||
|
||||
#ifdef __XC__
|
||||
void ConfigAudioPortsWrapper(
|
||||
void ConfigAudioPortsWrapper(
|
||||
#if (I2S_CHANS_DAC != 0)
|
||||
buffered out port:32 p_i2s_dac[I2S_WIRES_DAC],
|
||||
#endif
|
||||
@@ -80,7 +80,7 @@ void ConfigAudioPortsWrapper(
|
||||
unsigned int divide, unsigned int dsdMode);
|
||||
#else
|
||||
|
||||
void ConfigAudioPortsWrapper(
|
||||
void ConfigAudioPortsWrapper(
|
||||
#if (I2S_CHANS_DAC != 0)
|
||||
port p_i2s_dac[I2S_WIRES_DAC],
|
||||
#endif
|
||||
|
||||
@@ -10,7 +10,7 @@ extern clock clk_audio_bclk;
|
||||
|
||||
void ConfigAudioPorts(
|
||||
#if (I2S_CHANS_DAC != 0) || (DSD_CHANS_DAC != 0)
|
||||
buffered out port:32 p_i2s_dac[],
|
||||
buffered out port:32 p_i2s_dac[],
|
||||
int numPortsDac,
|
||||
#endif
|
||||
|
||||
@@ -28,12 +28,12 @@ void ConfigAudioPorts(
|
||||
in port p_bclk,
|
||||
#endif
|
||||
#endif
|
||||
unsigned int divide)
|
||||
unsigned int divide)
|
||||
{
|
||||
|
||||
#ifndef CODEC_MASTER
|
||||
/* Note this call to stop_clock() will pause forever if the port clocking the clock-block is not low.
|
||||
* deliver() should return with this being the case - however, if you are having trouble the code
|
||||
* deliver() should return with this being the case - however, if you are having trouble the code
|
||||
* above can be enabled */
|
||||
stop_clock(clk_audio_bclk);
|
||||
|
||||
@@ -104,7 +104,7 @@ unsigned int divide)
|
||||
|
||||
/* Stop bit and master clock blocks */
|
||||
stop_clock(clk_audio_bclk);
|
||||
|
||||
|
||||
/* Clock bclk clock-block from bclk pin */
|
||||
configure_clock_src(clk_audio_bclk, p_bclk);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user