Update I2S.cpp to work with RTCZero library
I2S.cpp configures the clock without specifying what to GLCK->DIVSEL bit. This causes issues when the bit is set to 1 by other libraries such as RTCZero. Explicitly setting this value fixes the problem.
This commit is contained in:
parent
89833081ef
commit
84e222feb6
1 changed files with 1 additions and 0 deletions
|
|
@ -422,6 +422,7 @@ void I2SClass::enableClock(int divider)
|
|||
GCLK->GENCTRL.bit.ID = _clockGenerator;
|
||||
GCLK->GENCTRL.bit.SRC = src;
|
||||
GCLK->GENCTRL.bit.IDC = 1;
|
||||
GCLK->GENCTRL.bit.DIVSEL = 0;
|
||||
GCLK->GENCTRL.bit.GENEN = 1;
|
||||
|
||||
// enable
|
||||
|
|
|
|||
Loading…
Reference in a new issue