Skip to content

Commit 21c8ed8

Browse files
yangsong8-a1Alan C. Assis
authored andcommitted
boards/defconfig: remove fixed CDCACM BUFFER SIZE
Use usb req buf to replaced cdcacm rxbuffer and txbuffer, so this macro is no longer needed. Signed-off-by: yangsong8 <yangsong8@xiaomi.com>
1 parent c497c5f commit 21c8ed8

File tree

44 files changed

+8
-96
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+8
-96
lines changed

Documentation/platforms/arm/kinetis/boards/freedom-k64f/README.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -577,9 +577,6 @@ USB Device Controller Support
577577
CONFIG_CDCACM_NRDREQS=8 : Number of read requests
578578
CONFIG_CDCACM_BULKIN_REQLEN=96 : Size of write request buffer (for full speed)
579579
CONFIG_CDCACM_BULKIN_REQLEN=768 : Size of write request buffer (for high speed)
580-
CONFIG_CDCACM_RXBUFSIZE=257 : Serial read buffer size
581-
CONFIG_CDCACM_TXBUFSIZE=193 : Serial transmit buffer size (for full speed)
582-
CONFIG_CDCACM_TXBUFSIZE=769 : Serial transmit buffer size (for high speed)
583580
CONFIG_CDCACM_VENDORID=0x0525 : Vendor ID
584581
CONFIG_CDCACM_PRODUCTID=0xa4a7 : Product ID
585582
CONFIG_CDCACM_VENDORSTR="NuttX" : Vendor string
@@ -593,7 +590,7 @@ USB Device Controller Support
593590

594591
CONFIG_SYSTEM_CDCACM=y : Enable connect/disconnect support
595592
CONFIG_SYSTEM_CDCACM_DEVMINOR=0 : Use device /dev/ttyACM0
596-
CONFIG_CDCACM_RXBUFSIZE=??? : A large RX may be needed
593+
CONFIG_CDCACM_NRDREQS=??? : Multiple read requests may be needed
597594

598595
If you include this CDC/ACM application, then you can connect the CDC/ACM
599596
serial device to the host by entering the command 'sercon' and you detach

Documentation/platforms/arm/kinetis/boards/freedom-k66f/README.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -580,9 +580,6 @@ USB Device Controller Support
580580
CONFIG_CDCACM_NRDREQS=8 : Number of read requests
581581
CONFIG_CDCACM_BULKIN_REQLEN=96 : Size of write request buffer (for full speed)
582582
CONFIG_CDCACM_BULKIN_REQLEN=768 : Size of write request buffer (for high speed)
583-
CONFIG_CDCACM_RXBUFSIZE=257 : Serial read buffer size
584-
CONFIG_CDCACM_TXBUFSIZE=193 : Serial transmit buffer size (for full speed)
585-
CONFIG_CDCACM_TXBUFSIZE=769 : Serial transmit buffer size (for high speed)
586583
CONFIG_CDCACM_VENDORID=0x0525 : Vendor ID
587584
CONFIG_CDCACM_PRODUCTID=0xa4a7 : Product ID
588585
CONFIG_CDCACM_VENDORSTR="NuttX" : Vendor string
@@ -596,7 +593,7 @@ USB Device Controller Support
596593

597594
CONFIG_SYSTEM_CDCACM=y : Enable connect/disconnect support
598595
CONFIG_SYSTEM_CDCACM_DEVMINOR=0 : Use device /dev/ttyACM0
599-
CONFIG_CDCACM_RXBUFSIZE=??? : A large RX may be needed
596+
CONFIG_CDCACM_NRDREQS=??? : Multiple read requests may be needed
600597

601598
If you include this CDC/ACM application, then you can connect the CDC/ACM
602599
serial device to the host by entering the command 'sercon' and you detach

Documentation/platforms/arm/sam34/boards/sam4e-ek/README.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,9 +593,11 @@ USB Full-Speed Device
593593

594594
1. RX buffer size. All incoming data is buffered by the serial driver
595595
until it can be read by the application. The default size of this
596-
RX buffer is only 256 but can be increased as you see fit:
596+
RX buffer is related to CONFIG_CDCACM_NRDREQS, the maximum packet
597+
length and CONFIG_CDCACM_BULKOUT_REQLEN. It can be increased as you
598+
see fit:
597599

598-
CONFIG_CDCACM_RXBUFSIZE=256 : Default RX buffer size is only 256 bytes
600+
CONFIG_CDCACM_NRDREQS=xxx
599601

600602
2. Upstream from the RX buffers are USB read request buffers. Each
601603
buffer is the maximum size of one USB packet (64 byte) and that cannot

Documentation/platforms/arm/samv7/boards/same70-xplained/README.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -646,9 +646,6 @@ serial device class:
646646
CONFIG_CDCACM_NRDREQS=8 : Number of read requests
647647
CONFIG_CDCACM_BULKIN_REQLEN=96 : Size of write request buffer (for full speed)
648648
CONFIG_CDCACM_BULKIN_REQLEN=768 : Size of write request buffer (for high speed)
649-
CONFIG_CDCACM_RXBUFSIZE=257 : Serial read buffer size
650-
CONFIG_CDCACM_TXBUFSIZE=193 : Serial transmit buffer size (for full speed)
651-
CONFIG_CDCACM_TXBUFSIZE=769 : Serial transmit buffer size (for high speed)
652649
CONFIG_CDCACM_VENDORID=0x0525 : Vendor ID
653650
CONFIG_CDCACM_PRODUCTID=0xa4a7 : Product ID
654651
CONFIG_CDCACM_VENDORSTR="NuttX" : Vendor string
@@ -662,7 +659,7 @@ CDC/ACM serial device:
662659

663660
CONFIG_SYSTEM_CDCACM=y : Enable connect/disconnect support
664661
CONFIG_SYSTEM_CDCACM_DEVMINOR=0 : Use device /dev/ttyACM0
665-
CONFIG_CDCACM_RXBUFSIZE=??? : A large RX may be needed
662+
CONFIG_CDCACM_NRDREQS=??? : Multiple read requests may be needed
666663

667664
If you include this CDC/ACM application, then you can connect the CDC/ACM
668665
serial device to the host by entering the command 'sercon' and you detach

Documentation/platforms/arm/samv7/boards/samv71-xult/README.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -967,9 +967,6 @@ serial device class:
967967
CONFIG_CDCACM_NRDREQS=8 : Number of read requests
968968
CONFIG_CDCACM_BULKIN_REQLEN=96 : Size of write request buffer (for full speed)
969969
CONFIG_CDCACM_BULKIN_REQLEN=768 : Size of write request buffer (for high speed)
970-
CONFIG_CDCACM_RXBUFSIZE=257 : Serial read buffer size
971-
CONFIG_CDCACM_TXBUFSIZE=193 : Serial transmit buffer size (for full speed)
972-
CONFIG_CDCACM_TXBUFSIZE=769 : Serial transmit buffer size (for high speed)
973970
CONFIG_CDCACM_VENDORID=0x0525 : Vendor ID
974971
CONFIG_CDCACM_PRODUCTID=0xa4a7 : Product ID
975972
CONFIG_CDCACM_VENDORSTR="NuttX" : Vendor string
@@ -983,7 +980,7 @@ CDC/ACM serial device:
983980

984981
CONFIG_SYSTEM_CDCACM=y : Enable connect/disconnect support
985982
CONFIG_SYSTEM_CDCACM_DEVMINOR=0 : Use device /dev/ttyACM0
986-
CONFIG_CDCACM_RXBUFSIZE=??? : A large RX may be needed
983+
CONFIG_CDCACM_NRDREQS=??? : Multiple read requests may be needed
987984

988985
If you include this CDC/ACM application, then you can connect the CDC/ACM
989986
serial device to the host by entering the command 'sercon' and you detach

Documentation/platforms/arm/stm32l4/boards/stm32l476vg-disco/index.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,8 +488,6 @@ NOTES:
488488
CONFIG_CDCACM_NRDREQS=4
489489
CONFIG_CDCACM_NWRREQS=4
490490
CONFIG_CDCACM_BULKIN_REQLEN=96
491-
CONFIG_CDCACM_RXBUFSIZE=257
492-
CONFIG_CDCACM_TXBUFSIZE=193
493491
CONFIG_CDCACM_VENDORID=0x0525
494492
CONFIG_CDCACM_PRODUCTID=0xa4a7
495493
CONFIG_CDCACM_VENDORSTR="NuttX"

Documentation/platforms/arm/stm32l4/boards/stm32l4r9ai-disco/index.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,8 +376,6 @@ NOTES:
376376
CONFIG_CDCACM_NRDREQS=4
377377
CONFIG_CDCACM_NWRREQS=4
378378
CONFIG_CDCACM_BULKIN_REQLEN=96
379-
CONFIG_CDCACM_RXBUFSIZE=257
380-
CONFIG_CDCACM_TXBUFSIZE=193
381379
CONFIG_CDCACM_VENDORID=0x0525
382380
CONFIG_CDCACM_PRODUCTID=0xa4a7
383381
CONFIG_CDCACM_VENDORSTR="NuttX"

boards/arm/imxrt/imxrt1170-evk/configs/netnsh/defconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ CONFIG_CDCACM=y
3030
CONFIG_CDCACM_BULKIN_REQLEN=96
3131
CONFIG_CDCACM_PRODUCTID=0x001d
3232
CONFIG_CDCACM_PRODUCTSTR="PX4 FMURT1062 v1.x"
33-
CONFIG_CDCACM_RXBUFSIZE=600
34-
CONFIG_CDCACM_TXBUFSIZE=12000
3533
CONFIG_CDCACM_VENDORID=0x1FC9
3634
CONFIG_CDCACM_VENDORSTR="NXP SEMICONDUCTORS"
3735
CONFIG_DEBUG_ASSERTIONS=y

boards/arm/lpc214x/mcu123-lpc214x/configs/composite/defconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ CONFIG_BOARDCTL=y
2020
CONFIG_BOARD_LOOPSPERMSEC=3270
2121
CONFIG_CDCACM=y
2222
CONFIG_CDCACM_COMPOSITE=y
23-
CONFIG_CDCACM_RXBUFSIZE=256
24-
CONFIG_CDCACM_TXBUFSIZE=256
2523
CONFIG_COMPOSITE_CONFIGSTR="system/composite"
2624
CONFIG_COMPOSITE_IAD=y
2725
CONFIG_COMPOSITE_PRODUCTID=0x2022

boards/arm/lpc43xx/lpc4337-ws/configs/nsh/defconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ CONFIG_CDCACM_BULKIN_REQLEN=96
2525
CONFIG_CDCACM_EPBULKOUT=2
2626
CONFIG_CDCACM_PRODUCTID=0x2044
2727
CONFIG_CDCACM_PRODUCTSTR="lpc4337-ws"
28-
CONFIG_CDCACM_RXBUFSIZE=512
29-
CONFIG_CDCACM_TXBUFSIZE=2048
3028
CONFIG_CDCACM_VENDORID=0x03EB
3129
CONFIG_CDCACM_VENDORSTR="nuttx"
3230
CONFIG_FAT_LCNAMES=y

0 commit comments

Comments
 (0)