Browse Source

STM32 USB host driver update

git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5035 7fd9a85b-ad96-42d3-883c-3090e2eb8679
sbg
patacongo 13 years ago
parent
commit
756715d077
  1. 2
      nuttx/arch/arm/src/stm32/chip/stm32_otgfs.h
  2. 1009
      nuttx/arch/arm/src/stm32/stm32_otgfshost.c

2
nuttx/arch/arm/src/stm32/chip/stm32_otgfs.h

@ -633,6 +633,8 @@ @@ -633,6 +633,8 @@
# define OTGFS_HPTXSTS_TYPE_HALT (3 << OTGFS_HPTXSTS_TYPE_SHIFT) /* Disable channel command */
# define OTGFS_HPTXSTS_EPNUM_SHIFT (27) /* Bits 27-30: Endpoint number */
# define OTGFS_HPTXSTS_EPNUM_MASK (15 << OTGFS_HPTXSTS_EPNUM_SHIFT)
# define OTGFS_HPTXSTS_CHNUM_SHIFT (27) /* Bits 27-30: Channel number */
# define OTGFS_HPTXSTS_CHNUM_MASK (15 << OTGFS_HPTXSTS_CHNUM_SHIFT)
# define OTGFS_HPTXSTS_ODD (1 << 24) /* Bit 31: Send in odd (vs even) frame */
/* Host all channels interrupt and all channels interrupt mask registers */

1009
nuttx/arch/arm/src/stm32/stm32_otgfshost.c

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save