Skip to content

Generate 12.2880MHZ clock #338

Discussion options

You must be logged in to vote

Figured it out!

in case anyone is looking for a similar solution, here's my not so clean but working code:

CKernel::CKernel (void)
:	m_Screen (m_Options.GetWidth (), m_Options.GetHeight ()),
	m_Timer (&m_Interrupt),
	m_Logger (m_Options.GetLogLevel (), &m_Timer),
	m_Clock (GPIOClock2, GPIOClockSourceOscillator),    // I used GPIOClock2 because it was the only pin that was not used on my board, and Clock Source Oscillator was the only source that worked
...



        m_SCLKPin.AssignPin (6);//31);
	m_SCLKPin.SetMode (GPIOModeAlternateFunction0);
	m_Logger.Write (FromKernel, LogNotice, "Start SCLK");
	unsigned nSampleRate = SAMPLE_RATE;
	unsigned nChanLen = 32;
	unsigned nChans = 2;
	unsigned

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nickverlinden
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant