Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lufa
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Erik Strand
lufa
Commits
2d00107e
Commit
2d00107e
authored
10 years ago
by
Dean Camera
Browse files
Options
Downloads
Patches
Plain Diff
Fixed broken LowLevel Audio Out demo sampling frequency configuration (thanks to Torsten Duwe).
parent
77829096
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Demos/Device/LowLevel/AudioOutput/AudioOutput.c
+2
-2
2 additions, 2 deletions
Demos/Device/LowLevel/AudioOutput/AudioOutput.c
LUFA/DoxygenPages/ChangeLog.txt
+1
-0
1 addition, 0 deletions
LUFA/DoxygenPages/ChangeLog.txt
with
3 additions
and
2 deletions
Demos/Device/LowLevel/AudioOutput/AudioOutput.c
+
2
−
2
View file @
2d00107e
...
...
@@ -198,7 +198,7 @@ void EVENT_USB_Device_ControlRequest(void)
Endpoint_ClearSETUP
();
Endpoint_Read_Control_Stream_LE
(
SampleRate
,
sizeof
(
SampleRate
));
Endpoint_Clear
OUT
();
Endpoint_Clear
IN
();
/* Set the new sampling frequency to the value given by the host */
CurrentAudioSampleFrequency
=
(((
uint32_t
)
SampleRate
[
2
]
<<
16
)
|
((
uint32_t
)
SampleRate
[
1
]
<<
8
)
|
(
uint32_t
)
SampleRate
[
0
]);
...
...
@@ -210,7 +210,7 @@ void EVENT_USB_Device_ControlRequest(void)
break
;
case
AUDIO_REQ_GetCurrent
:
if
(
USB_ControlRequest
.
bmRequestType
==
(
REQDIR_
HOSTTO
DEVICE
|
REQTYPE_CLASS
|
REQREC_ENDPOINT
))
if
(
USB_ControlRequest
.
bmRequestType
==
(
REQDIR_DEVICE
TOHOST
|
REQTYPE_CLASS
|
REQREC_ENDPOINT
))
{
/* Extract out the relevant request information to get the target Endpoint address and control being retrieved */
uint8_t
EndpointAddress
=
(
uint8_t
)
USB_ControlRequest
.
wIndex
;
...
...
This diff is collapsed.
Click to expand it.
LUFA/DoxygenPages/ChangeLog.txt
+
1
−
0
View file @
2d00107e
...
...
@@ -38,6 +38,7 @@
* - Fixed spurious 0xFE USART byte sent in the USBtoSerial project when the baud rate is changed (thanks to Carl Kjeldsen)
* - Fixed blocking USART reads causing low throughput on slow baud rates in the USBtoSerial project (thanks to Nevada Smith)
* - Fixed USART reception overrun corrupting the internal buffers in the USBtoSerial project (thanks to Nevada Smith)
* - Fixed broken LowLevel Audio Out demo sampling frequency configuration (thanks to Torsten Duwe)
*
* \section Sec_ChangeLog140302 Version 140302
* <b>New:</b>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment