forked from PAWPAW-Mirror/lib_xua
Allow access of mclk setting externally for hardware test harness
This commit is contained in:
@@ -182,6 +182,8 @@ void XUA_Buffer(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Allows us to externally modify masterClockFreq
|
||||||
|
unsafe{volatile unsigned * unsafe masterClockFreq_ptr;}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Buffers data from audio endpoints
|
* Buffers data from audio endpoints
|
||||||
@@ -268,6 +270,8 @@ void XUA_Buffer_Ep(register chanend c_aud_out,
|
|||||||
unsigned masterClockFreq = DEFAULT_MCLK_FREQ;
|
unsigned masterClockFreq = DEFAULT_MCLK_FREQ;
|
||||||
unsigned lastClock = 0;
|
unsigned lastClock = 0;
|
||||||
|
|
||||||
|
unsafe{masterClockFreq_ptr = &masterClockFreq;}
|
||||||
|
|
||||||
unsigned clocks = 0;
|
unsigned clocks = 0;
|
||||||
long long clockcounter = 0;
|
long long clockcounter = 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user