Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
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
Show more breadcrumbs
f4grx
NuttX RTOS
Commits
513cc08c
Commit
513cc08c
authored
9 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
change default size of CDC/ACM serial buffer sizes
parent
8fdb1730
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
drivers/usbdev/Kconfig
+18
-10
18 additions, 10 deletions
drivers/usbdev/Kconfig
with
18 additions
and
10 deletions
drivers/usbdev/Kconfig
+
18
−
10
View file @
513cc08c
...
...
@@ -244,6 +244,10 @@ config PL2303_BULKIN_REQLEN
on the other hand, request buffer size is always the same as the
maxpacket size.
There is also no reason from PL2303_BULKIN_REQLEN to be greater
than PL2303_TXBUFSIZE-1, since a request larger than the TX
buffer can never be sent.
config PL2303_RXBUFSIZE
int "Receive buffer size"
default 513 if USBDEV_DUALSPEED
...
...
@@ -257,14 +261,14 @@ config PL2303_RXBUFSIZE
config PL2303_TXBUFSIZE
int "Transmit buffer size"
default
513
if USBDEV_DUALSPEED
default
257
if !USBDEV_DUALSPEED
default
767
if USBDEV_DUALSPEED
default
193
if !USBDEV_DUALSPEED
---help---
Size of the serial transmit buffers. The actual amount of data that
can be held in the buffer is this number minus one due to the way
that the circular buffer is managed. So a TX buffer size of
25
7
will hold
four full-speed, 64 byte packets
; a buffer size of
513
will hold one high-speed, 512 byte packet
.
that the circular buffer is managed. So a TX buffer size of
76
7
will hold
one request of size 768
; a buffer size of
193 will hold
two requests of size 96 bytes
.
config PL2303_VENDORID
hex "Vendor ID"
...
...
@@ -429,6 +433,10 @@ config CDCACM_BULKIN_REQLEN
on the other hand, request buffer size is always the same as the
maxpacket size.
There is also no reason from CDCACM_BULKIN_REQLEN to be greater
than CDCACM_TXBUFSIZE-1, since a request larger than the TX
buffer can never be sent.
config CDCACM_RXBUFSIZE
int "Receive buffer size"
default 513 if USBDEV_DUALSPEED
...
...
@@ -442,14 +450,14 @@ config CDCACM_RXBUFSIZE
config CDCACM_TXBUFSIZE
int "Transmit buffer size"
default
513
if USBDEV_DUALSPEED
default
257
if !USBDEV_DUALSPEED
default
767
if USBDEV_DUALSPEED
default
193
if !USBDEV_DUALSPEED
---help---
Size of the serial transmit buffers. The actual amount of data that
can be held in the buffer is this number minus one due to the way
that the circular buffer is managed. So a TX buffer size of
25
7
will hold
four full-speed, 64 byte packets
; a buffer size of
513
will hold one high-speed, 512 byte packet
.
that the circular buffer is managed. So a TX buffer size of
76
7
will hold
one request of size 768
; a buffer size of
193 will hold
two requests of size 96 bytes
.
config CDCACM_VENDORID
hex "Vendor ID"
...
...
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