Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
lufa
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Erik Strand
lufa
Commits
84a739ae
Commit
84a739ae
authored
Dec 13, 2011
by
Dean Camera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor XMEGA USB driver fixes.
parent
ec3e47a7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
13 deletions
+2
-13
LUFA/Drivers/USB/Core/XMEGA/Endpoint_XMEGA.c
LUFA/Drivers/USB/Core/XMEGA/Endpoint_XMEGA.c
+1
-1
LUFA/Drivers/USB/Core/XMEGA/Endpoint_XMEGA.h
LUFA/Drivers/USB/Core/XMEGA/Endpoint_XMEGA.h
+1
-12
No files found.
LUFA/Drivers/USB/Core/XMEGA/Endpoint_XMEGA.c
View file @
84a739ae
...
...
@@ -56,7 +56,7 @@ bool Endpoint_ConfigureEndpoint_PRV(const uint8_t Number,
USB_Endpoint_SelectedHandle
->
STATUS
=
(
Direction
==
ENDPOINT_DIR_IN
)
?
USB_EP_BUSNACK0_bm
:
0
;
USB_Endpoint_SelectedHandle
->
CTRL
=
Config
;
USB_Endpoint_SelectedHandle
->
CNT
=
0
;
USB_Endpoint_SelectedHandle
->
DATAPTR
=
(
intptr_t
)
&
USB_Endpoint_SelectedFIFO
->
Data
[
0
]
;
USB_Endpoint_SelectedHandle
->
DATAPTR
=
(
intptr_t
)
USB_Endpoint_SelectedFIFO
->
Data
;
USB_Endpoint_SelectedFIFO
->
Length
=
(
Direction
==
ENDPOINT_DIR_IN
)
?
Size
:
0
;
USB_Endpoint_SelectedFIFO
->
Position
=
0
;
...
...
LUFA/Drivers/USB/Core/XMEGA/Endpoint_XMEGA.h
View file @
84a739ae
...
...
@@ -546,9 +546,8 @@
if
((
USB_Endpoint_SelectedHandle
->
CTRL
&
USB_EP_TYPE_gm
)
==
USB_EP_TYPE_CONTROL_gc
)
{
Endpoint_SelectEndpoint
(
USB_Endpoint_SelectedEndpoint
|
ENDPOINT_DIR_IN
);
Endpoint_SelectEndpoint
(
USB_Endpoint_SelectedEndpoint
^
ENDPOINT_DIR_IN
);
USB_Endpoint_SelectedHandle
->
CTRL
|=
USB_EP_STALL_bm
;
Endpoint_SelectEndpoint
(
USB_Endpoint_SelectedEndpoint
&
~
ENDPOINT_DIR_IN
);
}
}
...
...
@@ -591,16 +590,6 @@
return
(
USB_Endpoint_SelectedEndpoint
&
ENDPOINT_DIR_IN
);
}
/** Sets the direction of the currently selected endpoint.
*
* \param[in] DirectionMask New endpoint direction, as a \c ENDPOINT_DIR_* mask.
*/
static
inline
void
Endpoint_SetEndpointDirection
(
const
uint8_t
DirectionMask
)
ATTR_ALWAYS_INLINE
;
static
inline
void
Endpoint_SetEndpointDirection
(
const
uint8_t
DirectionMask
)
{
// TODO
}
/** Reads one byte from the currently selected endpoint's bank, for OUT direction endpoints.
*
* \ingroup Group_EndpointPrimitiveRW_XMEGA
...
...
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