From 84e222feb65cc72d11800f523410c632446e1441 Mon Sep 17 00:00:00 2001 From: Shahzada Khoso <34662908+Khosos@users.noreply.github.com> Date: Sat, 21 Jan 2023 17:07:00 -0500 Subject: [PATCH] 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. --- libraries/I2S/src/I2S.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/I2S/src/I2S.cpp b/libraries/I2S/src/I2S.cpp index a62bc5114..8b0cc3979 100644 --- a/libraries/I2S/src/I2S.cpp +++ b/libraries/I2S/src/I2S.cpp @@ -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 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy