diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-08-25 16:40:31 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-08-25 16:40:31 +0000 |
commit | eaf78a73f7ec364393bddfc0f72745794522811c (patch) | |
tree | de1c113fc56f06a0ace657b28becd03174d4f6a3 /nuttx/arch/arm/src | |
parent | e1d2e02765b287c4a2966fa9e9e1cad7ea815bf8 (diff) | |
download | px4-nuttx-eaf78a73f7ec364393bddfc0f72745794522811c.tar.gz px4-nuttx-eaf78a73f7ec364393bddfc0f72745794522811c.tar.bz2 px4-nuttx-eaf78a73f7ec364393bddfc0f72745794522811c.zip |
Prep for 6.21 releasenuttx-6.21
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5052 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src')
-rw-r--r-- | nuttx/arch/arm/src/stm32/Kconfig | 53 | ||||
-rw-r--r-- | nuttx/arch/arm/src/stm32/stm32_otgfshost.c | 6 |
2 files changed, 58 insertions, 1 deletions
diff --git a/nuttx/arch/arm/src/stm32/Kconfig b/nuttx/arch/arm/src/stm32/Kconfig index 5d0d48f88..bf7c59c11 100644 --- a/nuttx/arch/arm/src/stm32/Kconfig +++ b/nuttx/arch/arm/src/stm32/Kconfig @@ -1910,3 +1910,56 @@ config STM32_MII_MCO1 bool default y if !STM32_MII_MCO2 depends on STM32_MII + +menu "USB Host Configuration" + +config STM32_OTGFS_RXFIFO_SIZE + int "Rx Packet Size" + default 128 + depends on USBHOST && STM32_OTGFS + ---help--- + Size of the RX FIFO in 32-bit words. Default 128 (512 bytes) + +config STM32_OTGFS_NPTXFIFO_SIZE + int "Non-periodic Tx FIFO Size" + default 96 + depends on USBHOST && STM32_OTGFS + ---help--- + Size of the non-periodic Tx FIFO in 32-bit words. Default 96 (384 bytes) + +config STM32_OTGFS_PTXFIFO_SIZE + int "Periodic Tx FIFO size" + default 128 + depends on USBHOST && STM32_OTGFS + ---help--- + Size of the periodic Tx FIFO in 32-bit words. Default 96 (384 bytes) + +config STM32_OTGFS_DESCSIZE + int "Descriptor Size" + default 128 + depends on USBHOST && STM32_OTGFS + ---help--- + Maximum size to allocate for descriptor memory descriptor. Default: 128 + +config STM32_OTGFS_SOFINTR + bool "Enable SOF interrupts" + default n + depends on USBHOST && STM32_OTGFS + ---help--- + Enable SOF interrupts. Why would you ever want to do that? + +config STM32_USBHOST_REGDEBUG + bool "Register-Level Debug" + default n + depends on USBHOST && STM32_OTGFS + ---help--- + Enable very low-level register access debug. Depends on CONFIG_DEBUG. + +config STM32_USBHOST_PKTDUMP + bool "Packet Dump Debug" + default n + depends on USBHOST && STM32_OTGFS + ---help--- + Dump all incoming and outgoing USB packets. Depends on CONFIG_DEBUG. + +endmenu diff --git a/nuttx/arch/arm/src/stm32/stm32_otgfshost.c b/nuttx/arch/arm/src/stm32/stm32_otgfshost.c index d84ba6884..0b09070dc 100644 --- a/nuttx/arch/arm/src/stm32/stm32_otgfshost.c +++ b/nuttx/arch/arm/src/stm32/stm32_otgfshost.c @@ -191,7 +191,11 @@ enum stm32_chreason_e CHREASON_FRMOR /* Frame overrun */ }; -/* This structure retains the state of one host channel */ +/* This structure retains the state of one host channel. NOTE: Since there + * is only one channel operation active at a time, some of the fields in + * in the structure could be moved in struct stm32_ubhost_s to achieve + * some memory savings. + */ struct stm32_chan_s { |