Added start of AN00248

This commit is contained in:
xross
2018-04-04 14:15:42 +01:00
parent 7b7d7f7e98
commit e5ed3e88d6
11 changed files with 751 additions and 0 deletions

View 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;
}
//: