Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EtherBone Core
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
EtherBone Core
Commits
b1aa701c
Commit
b1aa701c
authored
11 years ago
by
Wesley W. Terpstra
Browse files
Options
Downloads
Patches
Plain Diff
usb: prime the pump for EP4
parent
8488973b
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hdl/eb_usb_core/cdc_acm.c
+6
-1
6 additions, 1 deletion
hdl/eb_usb_core/cdc_acm.c
with
6 additions
and
1 deletion
hdl/eb_usb_core/cdc_acm.c
+
6
−
1
View file @
b1aa701c
...
...
@@ -565,7 +565,7 @@ static void Initialize(void) {
EP1OUTCFG
=
0xa0
;
syncdelay
();
// 1-10 ---- 1=valid, out,10=bulk, 64, single
EP1INCFG
=
0xb0
;
syncdelay
();
// 1-11 ---- 1=valid, in, 11=int, 64, single
EP2CFG
=
0xa2
;
syncdelay
();
// 1010 0-10 1=valid,
out,10=bulk,0=512,10=double
EP2CFG
=
0xa2
;
syncdelay
();
// 1010 0-10 1=valid,
0=
out,10=bulk,0=512,10=double
EP4CFG
=
0xa0
;
syncdelay
();
// 1010 ---- 1=valid,0=out,10=bulk, 512, double
EP6CFG
=
0xe2
;
syncdelay
();
// 1110 0-10 1=valid,1=in, 10=bulk,0=512,10=double
EP8CFG
=
0xe0
;
syncdelay
();
// 1110 ---- 1=valid,1=in, 10=bulk, 512, double
...
...
@@ -580,10 +580,15 @@ static void Initialize(void) {
FIFORESET
=
0x80
;
syncdelay
();
// NAK all requests from host.
FIFORESET
=
0x00
;
syncdelay
();
// Resume normal operation.
// Prime the pump for output buffers
OUTPKTEND
=
0x82
;
syncdelay
();
OUTPKTEND
=
0x82
;
syncdelay
();
OUTPKTEND
=
0x82
;
syncdelay
();
OUTPKTEND
=
0x82
;
syncdelay
();
OUTPKTEND
=
0x84
;
syncdelay
();
OUTPKTEND
=
0x84
;
syncdelay
();
OUTPKTEND
=
0x84
;
syncdelay
();
OUTPKTEND
=
0x84
;
syncdelay
();
// bit7: 0
// bit6: INFM6 See TRM 15-29 (p.351): Signal line one clock earlier.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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