Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-pico
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-pico
Commits
5ab19e9a
Unverified
Commit
5ab19e9a
authored
Jul 29, 2022
by
Earle F. Philhower, III
Committed by
GitHub
Jul 29, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix I2S timing (#728)
BCLK was running at 50% of expected speed. Fixes #714
parent
82abc76e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
libraries/I2S/src/I2S.cpp
libraries/I2S/src/I2S.cpp
+1
-1
No files found.
libraries/I2S/src/I2S.cpp
View file @
5ab19e9a
...
...
@@ -78,7 +78,7 @@ bool I2S::setBuffers(size_t buffers, size_t bufferWords, int32_t silenceSample)
bool
I2S
::
setFrequency
(
int
newFreq
)
{
_freq
=
newFreq
;
if
(
_running
)
{
float
bitClk
=
_freq
*
_bps
*
2.0
;
float
bitClk
=
_freq
*
_bps
*
2.0
/* channels */
*
2.0
/* edges per clock */
;
pio_sm_set_clkdiv
(
_pio
,
_sm
,
(
float
)
clock_get_hz
(
clk_sys
)
/
bitClk
);
}
return
true
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment