Progress on STM32 OTG FS host driver

git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5037 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
patacongo
2012-08-20 00:57:14 +00:00
parent ba31404b97
commit c3f866cc2c
7 changed files with 855 additions and 230 deletions
+3
View File
@@ -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.
+8 -1
View File
@@ -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 @@
# 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 */
File diff suppressed because it is too large Load Diff
+3
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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