Browse Source

The STM32 OTG FS driver is code complete

git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4577 7fd9a85b-ad96-42d3-883c-3090e2eb8679
sbg
patacongo 13 years ago
parent
commit
9471cacd3b
  1. 2
      nuttx/arch/arm/src/stm32/chip/stm32_otgfs.h
  2. 745
      nuttx/arch/arm/src/stm32/stm32_otgfsdev.c

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

@ -767,7 +767,7 @@ @@ -767,7 +767,7 @@
/* Bits 4-7: Reserved, must be kept at reset value */
#define OTGFS_DSTS_EERR (1 << 3) /* Bit 3: Erratic error */
#define OTGFS_DSTS_SOFFN_SHIFT (8) /* Bits 8-21: Frame number of the received SOF */
#define OTGFS_DSTS_SOFFN_MASK (0x3fff << OTGFS_DSTS_SOFFN_MASK)
#define OTGFS_DSTS_SOFFN_MASK (0x3fff << OTGFS_DSTS_SOFFN_SHIFT)
#define OTGFS_DSTS_SOFFN0 (1 << 8) /* Bits 8: Frame number even/odd bit */
#define OTGFS_DSTS_SOFFN_EVEN 0
#define OTGFS_DSTS_SOFFN_ODD OTGFS_DSTS_SOFFN0

745
nuttx/arch/arm/src/stm32/stm32_otgfsdev.c

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