forked from PAWPAW-Mirror/lib_xua
Added start of AN00248
This commit is contained in:
28
examples/AN00248_xua_example_pdm_mics/src/audiohw.xc
Normal file
28
examples/AN00248_xua_example_pdm_mics/src/audiohw.xc
Normal file
@@ -0,0 +1,28 @@
|
||||
#include <xs1.h>
|
||||
#include <assert.h>
|
||||
#include <platform.h>
|
||||
|
||||
#include "xua.h"
|
||||
|
||||
/* 0: DAC reset */
|
||||
/* 1: Ethernet Phy reset */
|
||||
on tile[1] : out port p_gpio = XS1_PORT_4F;
|
||||
|
||||
void AudioHwInit()
|
||||
{
|
||||
/* DAC in reset */
|
||||
p_gpio <: 0;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
/* Configures the external audio hardware for the required sample frequency */
|
||||
void AudioHwConfig(unsigned samFreq, unsigned mClk, unsigned dsdMode,
|
||||
unsigned sampRes_DAC, unsigned sampRes_ADC)
|
||||
{
|
||||
/* Note, without any config the Cirrus 2100 will output it's 24.576MHz ref clock
|
||||
to the Aux output - which we will use for mclk */
|
||||
|
||||
return;
|
||||
}
|
||||
//:
|
||||
Reference in New Issue
Block a user