Browse Source

Progress on STM32 OTG FS host driver

git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5037 7fd9a85b-ad96-42d3-883c-3090e2eb8679
sbg
patacongo 13 years ago
parent
commit
c3f866cc2c
  1. 3
      nuttx/ChangeLog
  2. 9
      nuttx/arch/arm/src/stm32/chip/stm32_otgfs.h
  3. 1058
      nuttx/arch/arm/src/stm32/stm32_otgfshost.c
  4. 3
      nuttx/configs/stm3210e-eval/Kconfig
  5. 3
      nuttx/configs/stm3220g-eval/Kconfig
  6. 3
      nuttx/configs/stm3240g-eval/Kconfig
  7. 4
      nuttx/drivers/Kconfig

3
nuttx/ChangeLog

@ -3170,3 +3170,6 @@ @@ -3170,3 +3170,6 @@
initialization (Mike Smith).
* tools/mkconfig.c: If CONFIG_DRAM_END is not specified, this tool
will provide default definition of (CONFIG_DRAM_START + CONFIG_DRAM_SIZE)
* arch/arm/src/stm32/stm32_otgfshost.c: Renamed from stm32_usbhost.c.
This is nearly code complete and, with any luck, will be available
in NuttX-6.22.

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

@ -53,6 +53,12 @@ @@ -53,6 +53,12 @@
#define OTGFS_EPTYPE_BULK (2) /* Bulk */
#define OTGFS_EPTYPE_INTR (3) /* Interrupt */
#define OTGFS_PID_DATA0 (0)
#define OTGFS_PID_DATA2 (1)
#define OTGFS_PID_DATA1 (2)
#define OTGFS_PID_MDATA (3) /* Non-control */
#define OTGFS_PID_SETUP (3) /* Control */
/* Register Offsets *********************************************************************************/
/* Core global control and status registers */
@ -722,7 +728,8 @@ @@ -722,7 +728,8 @@
# define OTGFS_HCTSIZ_DPID_DATA0 (0 << OTGFS_HCTSIZ_DPID_SHIFT)
# define OTGFS_HCTSIZ_DPID_DATA2 (1 << OTGFS_HCTSIZ_DPID_SHIFT)
# define OTGFS_HCTSIZ_DPID_DATA1 (2 << OTGFS_HCTSIZ_DPID_SHIFT)
# define OTGFS_HCTSIZ_DPID_MDATA (3 << OTGFS_HCTSIZ_DPID_SHIFT)
# define OTGFS_HCTSIZ_DPID_MDATA (3 << OTGFS_HCTSIZ_DPID_SHIFT) /* Non-control */
# define OTGFS_HCTSIZ_PID_SETUP (3 << OTGFS_HCTSIZ_DPID_SHIFT) /* Control */
/* Bit 31 Reserved, must be kept at reset value */
/* Device-mode control and status registers */

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

File diff suppressed because it is too large Load Diff

3
nuttx/configs/stm3210e-eval/Kconfig

@ -29,6 +29,9 @@ config STM3210E_LCD @@ -29,6 +29,9 @@ config STM3210E_LCD
bool "Select support for the STM3210E-EVAL LCD"
default y
depends on LCD && STM32_FSMC
---help---
Enable support for the LCD on the STM3210E-EVAL board. See additional,
LCD-common settings in the drivers/lcd Kconfig file.
config LCD_BACKLIGHT
bool "LCD backlight support"

3
nuttx/configs/stm3220g-eval/Kconfig

@ -27,6 +27,9 @@ config STM3220G_LCD @@ -27,6 +27,9 @@ config STM3220G_LCD
bool "Select support for the STM3210E-EVAL LCD"
default y
depends on LCD && STM32_FSMC
---help---
Enable support for the LCD on the STM3220G-EVAL board. See additional,
LCD-common settings in the drivers/lcd Kconfig file.
config LCD_RDSHIFT
int "LCD data shift"

3
nuttx/configs/stm3240g-eval/Kconfig

@ -27,6 +27,9 @@ config STM3240G_LCD @@ -27,6 +27,9 @@ config STM3240G_LCD
bool "Select support for the STM3210E-EVAL LCD"
default y
depends on LCD && STM32_FSMC
---help---
Enable support for the LCD on the STM3240G-EVAL board. See additional,
LCD-common settings in the drivers/lcd Kconfig file.
config LCD_RDSHIFT
int "LCD data shift"

4
nuttx/drivers/Kconfig

@ -182,6 +182,10 @@ menuconfig LCD @@ -182,6 +182,10 @@ menuconfig LCD
Drivers for parallel and serial LCD and OLED type devices. These
drivers support interfaces as defined in include/nuttx/lcd/lcd.h
This selection is necessary to enable support for LCD drivers in
drivers/lcd as well as for board-specific LCD drivers in the configs/
subdirectories.
if LCD
source drivers/lcd/Kconfig
endif

Loading…
Cancel
Save