summaryrefslogtreecommitdiffstats
path: root/nuttx/arch/arm/src
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-08-25 16:40:31 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-08-25 16:40:31 +0000
commit100797315282b738df83dda1ae7b17128d44a80f (patch)
treede1c113fc56f06a0ace657b28becd03174d4f6a3 /nuttx/arch/arm/src
parent49e2d1084de409153ecfc87f334b08ba658688b7 (diff)
Prep for 6.21 release
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5052 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/arch/arm/src')
-rw-r--r--nuttx/arch/arm/src/stm32/Kconfig53
-rw-r--r--nuttx/arch/arm/src/stm32/stm32_otgfshost.c6
2 files changed, 58 insertions, 1 deletions
diff --git a/nuttx/arch/arm/src/stm32/Kconfig b/nuttx/arch/arm/src/stm32/Kconfig
index 5d0d48f880..bf7c59c11a 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 d84ba68842..0b09070dc6 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
{