SAA1099: fix frequency table going crazy
if there is more than one SAA
This commit is contained in:
parent
dd62b387c7
commit
319d02aec6
|
@ -12,18 +12,6 @@
|
||||||
#include "SAAFreq.h"
|
#include "SAAFreq.h"
|
||||||
#include "defns.h"
|
#include "defns.h"
|
||||||
|
|
||||||
#ifdef SAAFREQ_FIXED_CLOCKRATE
|
|
||||||
// 'load in' the data for the static frequency lookup table
|
|
||||||
// precomputed for a fixed clockrate
|
|
||||||
// See: tools/freqdat.py
|
|
||||||
const unsigned long CSAAFreq::m_FreqTable[2048] = {
|
|
||||||
#include "SAAFreq.dat"
|
|
||||||
};
|
|
||||||
#else
|
|
||||||
unsigned long CSAAFreq::m_FreqTable[2048];
|
|
||||||
unsigned long CSAAFreq::m_nClockRate = 0;
|
|
||||||
#endif // SAAFREQ_FIXED_CLOCKRATE
|
|
||||||
|
|
||||||
const int INITIAL_LEVEL = 1;
|
const int INITIAL_LEVEL = 1;
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
|
@ -20,8 +20,8 @@ private:
|
||||||
const static unsigned long m_FreqTable[2048];
|
const static unsigned long m_FreqTable[2048];
|
||||||
#else
|
#else
|
||||||
// we'll calculate the frequency lookup table at runtime.
|
// we'll calculate the frequency lookup table at runtime.
|
||||||
static unsigned long m_FreqTable[2048];
|
unsigned long m_FreqTable[2048];
|
||||||
static unsigned long m_nClockRate;
|
unsigned long m_nClockRate;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
unsigned long m_nCounter;
|
unsigned long m_nCounter;
|
||||||
|
|
Loading…
Reference in New Issue