diff --git a/ChangeLog b/ChangeLog index 63e136be05261ea7f61053f39d4cb3f87b55f105..0d7af43ca9dbcb33a5bb966ad7417d015a1b07be 100644 --- a/ChangeLog +++ b/ChangeLog @@ -508,4 +508,5 @@ * FAT: Fix access to unaligned 32-bit values in partion table (start sector & size) * Fixed a problem with a un-initialized variable in the USB serial driver. * Added USB storage NXP LPC214x configuration + * Added a test for USB storage under examples/usbstorage diff --git a/Documentation/NuttX.html b/Documentation/NuttX.html index d151f208fa90bea3bfd21693ba50e7d2b376dfb0..d9f51c0303726ccbc6569b566dbc1edb42138df2 100644 --- a/Documentation/NuttX.html +++ b/Documentation/NuttX.html @@ -8,7 +8,7 @@ <tr align="center" bgcolor="#e4e4e4"> <td> <h1><big><font color="#3c34ec"><i>NuttX RTOS</i></font></big></h1> - <p>Last Updated: October 22, 2008</p> + <p>Last Updated: October 23, 2008</p> </td> </tr> </table> @@ -1140,6 +1140,7 @@ nuttx-0.3.17 2008-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr> * FAT: Fix access to unaligned 32-bit values in partion table (start sector & size) * Fixed a problem with a un-initialized variable in the USB serial driver. * Added USB storage NXP LPC214x configuration + * Added a test for USB storage under examples/usbstorage pascal-0.1.3 2008-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr> diff --git a/Documentation/NuttxPortingGuide.html b/Documentation/NuttxPortingGuide.html index c8eaa532e98fd174b4998b770aefa395129b1233..bf755cff26192e9f9e4fd9b735fecb7102cb587f 100644 --- a/Documentation/NuttxPortingGuide.html +++ b/Documentation/NuttxPortingGuide.html @@ -1535,6 +1535,16 @@ The system can be re-made subsequently by just typing <code>make</code>. </li> </ul> +<h2>SPI-based MMC/SD driver<h2> +<ul> + <li> + <code>CONFIG_MMCSD_NSLOTS</code>: Number of MMC/SD slots supported by the driver. Default is one. + </li> + <li> + <code>CONFIG_MMCSD_READONLY</code>: Provide read-only access. Default is Read/Write + </li> +</ul> + <h2>Network Support</h2> <h3>TCP/IP and UDP support via uIP</h2> <ul> @@ -1655,6 +1665,9 @@ The system can be re-made subsequently by just typing <code>make</code>. <h3>USB Serial Device Class Driver</h3> <ul> + <li> + <code>CONFIG_USBSER</code>: Enable compilation of the USB serial driver + </li> <li> <code>CONFIG_USBSER_EPINTIN</code>: The logical 7-bit address of a hardware endpoint that supports interrupt IN operation </li> @@ -1680,6 +1693,10 @@ The system can be re-made subsequently by just typing <code>make</code>. <h3>USB Storage Device Configuration</h3> <ul> + <li> + <code>CONFIG_USBSTRG</code>: + Enable compilation of the USB storage driver + </li> <li> <code>CONFIG_USBSTRG_EP0MAXPACKET</code>: Max packet size for endpoint 0 diff --git a/configs/README.txt b/configs/README.txt index e7a26e45035d66243d1a62f3c299d9d33bc84940..7a16233780945add630d6a11784759018985c1ae 100644 --- a/configs/README.txt +++ b/configs/README.txt @@ -248,6 +248,17 @@ defconfig -- This is a configuration file similar to the Linux CONFIG_DEV_PIPE_SIZE - Size, in bytes, of the buffer to allocated for pipe and FIFO support + Filesystem configuration + CONFIG_FS_FAT - Enable FAT filesystem support + CONFIG_FAT_SECTORSIZE - Max supported sector size + CONFIG_FS_ROMFS - Enable ROMFS filesystem support + + SPI-based MMC/SD driver + CONFIG_MMCSD_NSLOTS - Number of MMC/SD slots supported by the + driver. Default is one. + CONFIG_MMCSD_READONLY - Provide read-only access. Default is + Read/Write + TCP/IP and UDP support via uIP CONFIG_NET - Enable or disable all network features CONFIG_NET_IPv6 - Build in support for IPv6 @@ -303,6 +314,8 @@ defconfig -- This is a configuration file similar to the Linux CONFIG_USBDEV_TRACE_NRECORDS - Number of trace entries to remember USB serial device class driver + CONFIG_USBSER + Enable compilation of the USB serial driver CONFIG_USBSER_EPINTIN The logical 7-bit address of a hardware endpoint that supports interrupt IN operation @@ -322,7 +335,8 @@ defconfig -- This is a configuration file similar to the Linux Size of the serial receive/transmit buffers USB Storage Device Configuration - + CONFIG_USBSTRG + Enable compilation of the USB storage driver CONFIG_USBSTRG_EP0MAXPACKET Max packet size for endpoint 0 CONFIG_USBSTRGEPBULKOUT and CONFIG_USBSTRG_EPBULKIN diff --git a/configs/mcu123-lpc214x/nsh/defconfig b/configs/mcu123-lpc214x/nsh/defconfig index 0a7d22b58ecaa8146850474de4aacb984a8a3319..12d3f8fc7a19d60bf65bf7f7d116c204fae00b94 100644 --- a/configs/mcu123-lpc214x/nsh/defconfig +++ b/configs/mcu123-lpc214x/nsh/defconfig @@ -281,7 +281,8 @@ CONFIG_PREALLOC_WDOGS=4 CONFIG_PREALLOC_TIMERS=4 # -# FAT filesystem configuration +# Filesystem configuration +# # CONFIG_FS_FAT - Enable FAT filesystem support # CONFIG_FAT_SECTORSIZE - Max supported sector size # CONFIG_FS_ROMFS - Enable ROMFS filesystem support @@ -293,6 +294,16 @@ CONFIG_FS_ROMFS=n CONFIG_MMCSD_NSLOTS=1 CONFIG_MMCSD_READONLY=n +# +# SPI-based MMC/SD driver +# +# CONFIG_MMCSD_NSLOTS +# Number of MMC/SD slots supported by the driver +# CONFIG_MMCSD_READONLY +# Provide read-only access (default is read/write) +CONFIG_MMCSD_NSLOTS=1 +CONFIG_MMCSD_READONLY=n + # # TCP/IP and UDP support via uIP # CONFIG_NET - Enable or disable all network features @@ -398,6 +409,8 @@ CONFIG_LPC214X_USBDEV_DMAINTMASK=0 # # USB Serial Device Configuration # +# CONFIG_USBSER +# Enable compilation of the USB serial driver # CONFIG_USBSER_EPINTIN # The logical 7-bit address of a hardware endpoint that supports # interrupt IN operation @@ -415,6 +428,7 @@ CONFIG_LPC214X_USBDEV_DMAINTMASK=0 # The product ID code/string # CONFIG_USBSER_RXBUFSIZE and CONFIG_USBSER_TXBUFSIZE # Size of the serial receive/transmit buffers +CONFIG_USBSER=n CONFIG_USBSER_EPINTIN=1 CONFIG_USBSER_EPBULKOUT=2 CONFIG_USBSER_EPBULKIN=5 @@ -430,6 +444,8 @@ CONFIG_USBSER_TXBUFSIZE=512 # # USB Storage Device Configuration # +# CONFIG_USBSTRG +# Enable compilation of the USB storage driver # CONFIG_USBSTRG_EP0MAXPACKET # Max packet size for endpoint 0 # CONFIG_USBSTRG_EPBULKOUT and CONFIG_USBSTRG_EPBULKIN @@ -447,6 +463,7 @@ CONFIG_USBSER_TXBUFSIZE=512 # The product ID code/string # CONFIG_USBSTRG_REMOVABLE # Select if the media is removable +CONFIG_USBSTRG=n CONFIG_USBSTRG_EP0MAXPACKET=64 CONFIG_USBSTRG_EPBULKOUT=2 CONFIG_USBSTRG_EPBULKIN=5 diff --git a/configs/mcu123-lpc214x/ostest/defconfig b/configs/mcu123-lpc214x/ostest/defconfig index 0676807200d2e40c46bec7410bc34a7d52f115cb..00d56de48e19bf4853ae278c3a40c414e65b6a0d 100644 --- a/configs/mcu123-lpc214x/ostest/defconfig +++ b/configs/mcu123-lpc214x/ostest/defconfig @@ -281,13 +281,24 @@ CONFIG_PREALLOC_WDOGS=4 CONFIG_PREALLOC_TIMERS=4 # -# FAT filesystem configuration +# Filesystem configuration +# # CONFIG_FS_FAT - Enable FAT filesystem support # CONFIG_FAT_SECTORSIZE - Max supported sector size # CONFIG_FS_ROMFS - Enable ROMFS filesystem support CONFIG_FS_FAT=n CONFIG_FS_ROMFS=n +# +# SPI-based MMC/SD driver +# +# CONFIG_MMCSD_NSLOTS +# Number of MMC/SD slots supported by the driver +# CONFIG_MMCSD_READONLY +# Provide read-only access (default is read/write) +CONFIG_MMCSD_NSLOTS=1 +CONFIG_MMCSD_READONLY=n + # # TCP/IP and UDP support via uIP # CONFIG_NET - Enable or disable all network features @@ -393,6 +404,8 @@ CONFIG_LPC214X_USBDEV_DMAINTMASK=0 # # USB Serial Device Configuration # +# CONFIG_USBSER +# Enable compilation of the USB serial driver # CONFIG_USBSER_EPINTIN # The logical 7-bit address of a hardware endpoint that supports # interrupt IN operation @@ -410,6 +423,7 @@ CONFIG_LPC214X_USBDEV_DMAINTMASK=0 # The product ID code/string # CONFIG_USBSER_RXBUFSIZE and CONFIG_USBSER_TXBUFSIZE # Size of the serial receive/transmit buffers +CONFIG_USBSER=n CONFIG_USBSER_EPINTIN=1 CONFIG_USBSER_EPBULKOUT=2 CONFIG_USBSER_EPBULKIN=5 @@ -425,6 +439,8 @@ CONFIG_USBSER_TXBUFSIZE=512 # # USB Storage Device Configuration # +# CONFIG_USBSTRG +# Enable compilation of the USB storage driver # CONFIG_USBSTRG_EP0MAXPACKET # Max packet size for endpoint 0 # CONFIG_USBSTRG_EPBULKOUT and CONFIG_USBSTRG_EPBULKIN @@ -442,6 +458,7 @@ CONFIG_USBSER_TXBUFSIZE=512 # The product ID code/string # CONFIG_USBSTRG_REMOVABLE # Select if the media is removable +CONFIG_USBSTRG=n CONFIG_USBSTRG_EP0MAXPACKET=64 CONFIG_USBSTRG_EPBULKOUT=2 CONFIG_USBSTRG_EPBULKIN=5 diff --git a/configs/mcu123-lpc214x/usbserial/defconfig b/configs/mcu123-lpc214x/usbserial/defconfig index 3e7362b62881bbaae10726f09fa552409102ed68..9c31667b0e9c145d32d33924fd247d8e3bb40d19 100644 --- a/configs/mcu123-lpc214x/usbserial/defconfig +++ b/configs/mcu123-lpc214x/usbserial/defconfig @@ -282,13 +282,24 @@ CONFIG_PREALLOC_WDOGS=4 CONFIG_PREALLOC_TIMERS=4 # -# FAT filesystem configuration +# Filesystem configuration +# # CONFIG_FS_FAT - Enable FAT filesystem support # CONFIG_FAT_SECTORSIZE - Max supported sector size # CONFIG_FS_ROMFS - Enable ROMFS filesystem support CONFIG_FS_FAT=n CONFIG_FS_ROMFS=n +# +# SPI-based MMC/SD driver +# +# CONFIG_MMCSD_NSLOTS +# Number of MMC/SD slots supported by the driver +# CONFIG_MMCSD_READONLY +# Provide read-only access (default is read/write) +CONFIG_MMCSD_NSLOTS=1 +CONFIG_MMCSD_READONLY=n + # # TCP/IP and UDP support via uIP # CONFIG_NET - Enable or disable all network features @@ -394,6 +405,8 @@ CONFIG_LPC214X_USBDEV_DMAINTMASK=0 # # USB Serial Device Configuration # +# CONFIG_USBSER +# Enable compilation of the USB serial driver # CONFIG_USBSER_EPINTIN # The logical 7-bit address of a hardware endpoint that supports # interrupt IN operation @@ -411,6 +424,7 @@ CONFIG_LPC214X_USBDEV_DMAINTMASK=0 # The product ID code/string # CONFIG_USBSER_RXBUFSIZE and CONFIG_USBSER_TXBUFSIZE # Size of the serial receive/transmit buffers +CONFIG_USBSER=y CONFIG_USBSER_EPINTIN=1 CONFIG_USBSER_EPBULKOUT=2 CONFIG_USBSER_EPBULKIN=5 @@ -426,6 +440,8 @@ CONFIG_USBSER_TXBUFSIZE=512 # # USB Storage Device Configuration # +# CONFIG_USBSTRG +# Enable compilation of the USB storage driver # CONFIG_USBSTRG_EP0MAXPACKET # Max packet size for endpoint 0 # CONFIG_USBSTRG_EPBULKOUT and CONFIG_USBSTRG_EPBULKIN @@ -443,6 +459,7 @@ CONFIG_USBSER_TXBUFSIZE=512 # The product ID code/string # CONFIG_USBSTRG_REMOVABLE # Select if the media is removable +CONFIG_USBSTRG=n CONFIG_USBSTRG_EP0MAXPACKET=64 CONFIG_USBSTRG_EPBULKOUT=2 CONFIG_USBSTRG_EPBULKIN=5 diff --git a/configs/mcu123-lpc214x/usbstorage/defconfig b/configs/mcu123-lpc214x/usbstorage/defconfig index 0e7ce5a37eae76019b8cb432ef1312ff525e368b..b7408c7edbc4bf9afdb42d7906d93e3ee11ee324 100644 --- a/configs/mcu123-lpc214x/usbstorage/defconfig +++ b/configs/mcu123-lpc214x/usbstorage/defconfig @@ -282,13 +282,24 @@ CONFIG_PREALLOC_WDOGS=4 CONFIG_PREALLOC_TIMERS=4 # -# FAT filesystem configuration +# Filesystem configuration +# # CONFIG_FS_FAT - Enable FAT filesystem support # CONFIG_FAT_SECTORSIZE - Max supported sector size # CONFIG_FS_ROMFS - Enable ROMFS filesystem support CONFIG_FS_FAT=n CONFIG_FS_ROMFS=n +# +# SPI-based MMC/SD driver +# +# CONFIG_MMCSD_NSLOTS +# Number of MMC/SD slots supported by the driver +# CONFIG_MMCSD_READONLY +# Provide read-only access (default is read/write) +CONFIG_MMCSD_NSLOTS=1 +CONFIG_MMCSD_READONLY=n + # # TCP/IP and UDP support via uIP # CONFIG_NET - Enable or disable all network features @@ -394,6 +405,8 @@ CONFIG_LPC214X_USBDEV_DMAINTMASK=0 # # USB Serial Device Configuration # +# CONFIG_USBSER +# Enable compilation of the USB serial driver # CONFIG_USBSER_EPINTIN # The logical 7-bit address of a hardware endpoint that supports # interrupt IN operation @@ -411,6 +424,7 @@ CONFIG_LPC214X_USBDEV_DMAINTMASK=0 # The product ID code/string # CONFIG_USBSER_RXBUFSIZE and CONFIG_USBSER_TXBUFSIZE # Size of the serial receive/transmit buffers +CONFIG_USBSER=n CONFIG_USBSER_EPINTIN=1 CONFIG_USBSER_EPBULKOUT=2 CONFIG_USBSER_EPBULKIN=5 @@ -426,6 +440,8 @@ CONFIG_USBSER_TXBUFSIZE=512 # # USB Storage Device Configuration # +# CONFIG_USBSTRG +# Enable compilation of the USB storage driver # CONFIG_USBSTRG_EP0MAXPACKET # Max packet size for endpoint 0 # CONFIG_USBSER_EPBULKOUT and CONFIG_USBSER_EPBULKIN @@ -443,6 +459,7 @@ CONFIG_USBSER_TXBUFSIZE=512 # The product ID code/string # CONFIG_USBSTRG_REMOVABLE # Select if the media is removable +CONFIG_USBSTRG=y CONFIG_USBSTRG_EP0MAXPACKET=64 CONFIG_USBSTRG_EPBULKOUT=2 CONFIG_USBSTRG_EPBULKIN=5 diff --git a/configs/ntosd-dm320/nettest/defconfig b/configs/ntosd-dm320/nettest/defconfig index 3fc2e0e69f55346e7177de9b731a82d1396d91ca..3ea1441f3f890e470c2f1bbff63ded11c8dce3d4 100644 --- a/configs/ntosd-dm320/nettest/defconfig +++ b/configs/ntosd-dm320/nettest/defconfig @@ -361,6 +361,8 @@ CONFIG_DM320_USBDEV_DMA=n # # USB Serial Device Configuration # +# CONFIG_USBSER +# Enable compilation of the USB serial driver # CONFIG_USBSER_EPINTIN # The logical 7-bit address of a hardware endpoint that supports # interrupt IN operation @@ -378,6 +380,7 @@ CONFIG_DM320_USBDEV_DMA=n # The product ID code/string # CONFIG_USBSER_RXBUFSIZE and CONFIG_USBSER_TXBUFSIZE # Size of the serial receive/transmit buffers +CONFIG_USBSER=n CONFIG_USBSER_EPINTIN=3 CONFIG_USBSER_EPBULKOUT=2 CONFIG_USBSER_EPBULKIN=1 @@ -393,6 +396,8 @@ CONFIG_USBSER_TXBUFSIZE=512 # # USB Storage Device Configuration # +# CONFIG_USBSTRG +# Enable compilation of the USB storage driver # CONFIG_USBSTRG_EP0MAXPACKET # Max packet size for endpoint 0 # CONFIG_USBSTRG_EPBULKOUT and CONFIG_USBSTRG_EPBULKIN @@ -410,6 +415,7 @@ CONFIG_USBSER_TXBUFSIZE=512 # The product ID code/string # CONFIG_USBSTRG_REMOVABLE # Select if the media is removable +CONFIG_USBSTRG=n CONFIG_USBSTRG_EP0MAXPACKET=64 CONFIG_USBSTRG_EPBULKOUT=2 CONFIG_USBSTRG_EPBULKIN=1 diff --git a/configs/ntosd-dm320/nsh/defconfig b/configs/ntosd-dm320/nsh/defconfig index 30dfa4a2800c6d29ff79c15e271817a746f0877c..bf927317c1b14b8301c9dd97ef63e5987169e70c 100644 --- a/configs/ntosd-dm320/nsh/defconfig +++ b/configs/ntosd-dm320/nsh/defconfig @@ -369,6 +369,8 @@ CONFIG_DM320_USBDEV_DMA=n # # USB Serial Device Configuration # +# CONFIG_USBSER +# Enable compilation of the USB serial driver # CONFIG_USBSER_EPINTIN # The logical 7-bit address of a hardware endpoint that supports # interrupt IN operation @@ -386,6 +388,7 @@ CONFIG_DM320_USBDEV_DMA=n # The product ID code/string # CONFIG_USBSER_RXBUFSIZE and CONFIG_USBSER_TXBUFSIZE # Size of the serial receive/transmit buffers +CONFIG_USBSER=n CONFIG_USBSER_EPINTIN=3 CONFIG_USBSER_EPBULKOUT=2 CONFIG_USBSER_EPBULKIN=1 @@ -401,6 +404,8 @@ CONFIG_USBSER_TXBUFSIZE=512 # # USB Storage Device Configuration # +# CONFIG_USBSTRG +# Enable compilation of the USB storage driver # CONFIG_USBSTRG_EP0MAXPACKET # Max packet size for endpoint 0 # CONFIG_USBSTRG_EPBULKOUT and CONFIG_USBSTRG_EPBULKIN @@ -418,6 +423,7 @@ CONFIG_USBSER_TXBUFSIZE=512 # The product ID code/string # CONFIG_USBSTRG_REMOVABLE # Select if the media is removable +CONFIG_USBSTRG=n CONFIG_USBSTRG_EP0MAXPACKET=64 CONFIG_USBSTRG_EPBULKOUT=2 CONFIG_USBSTRG_EPBULKIN=1 diff --git a/configs/ntosd-dm320/udp/defconfig b/configs/ntosd-dm320/udp/defconfig index 4ee6d1b006bcda47c0e173bdb3a9bd6c1f5887f6..2d6ac291da96e63b200f9ba6c5df1d5b29da887b 100644 --- a/configs/ntosd-dm320/udp/defconfig +++ b/configs/ntosd-dm320/udp/defconfig @@ -361,6 +361,8 @@ CONFIG_DM320_USBDEV_DMA=n # # USB Serial Device Configuration # +# CONFIG_USBSER +# Enable compilation of the USB serial driver # CONFIG_USBSER_EPINTIN # The logical 7-bit address of a hardware endpoint that supports # interrupt IN operation @@ -378,6 +380,7 @@ CONFIG_DM320_USBDEV_DMA=n # The product ID code/string # CONFIG_USBSER_RXBUFSIZE and CONFIG_USBSER_TXBUFSIZE # Size of the serial receive/transmit buffers +CONFIG_USBSER=n CONFIG_USBSER_EPINTIN=3 CONFIG_USBSER_EPBULKOUT=2 CONFIG_USBSER_EPBULKIN=1 @@ -393,6 +396,8 @@ CONFIG_USBSER_TXBUFSIZE=512 # # USB Storage Device Configuration # +# CONFIG_USBSTRG +# Enable compilation of the USB storage driver # CONFIG_USBSTRG_EP0MAXPACKET # Max packet size for endpoint 0 # CONFIG_USBSTRG_EPBULKOUT and CONFIG_USBSTRG_EPBULKIN @@ -410,6 +415,7 @@ CONFIG_USBSER_TXBUFSIZE=512 # The product ID code/string # CONFIG_USBSTRG_REMOVABLE # Select if the media is removable +CONFIG_USBSTRG=n CONFIG_USBSTRG_EP0MAXPACKET=64 CONFIG_USBSTRG_EPBULKOUT=2 CONFIG_USBSTRG_EPBULKIN=1 diff --git a/configs/ntosd-dm320/uip/defconfig b/configs/ntosd-dm320/uip/defconfig index f00afbf271a9b15c5ebbc48b516f33286144b793..017c7e3668242e8a28e7d306d263fef6d5fe54aa 100644 --- a/configs/ntosd-dm320/uip/defconfig +++ b/configs/ntosd-dm320/uip/defconfig @@ -361,6 +361,8 @@ CONFIG_DM320_USBDEV_DMA=n # # USB Serial Device Configuration # +# CONFIG_USBSER +# Enable compilation of the USB serial driver # CONFIG_USBSER_EPINTIN # The logical 7-bit address of a hardware endpoint that supports # interrupt IN operation @@ -378,6 +380,7 @@ CONFIG_DM320_USBDEV_DMA=n # The product ID code/string # CONFIG_USBSER_RXBUFSIZE and CONFIG_USBSER_TXBUFSIZE # Size of the serial receive/transmit buffers +CONFIG_USBSER=n CONFIG_USBSER_EPINTIN=3 CONFIG_USBSER_EPBULKOUT=2 CONFIG_USBSER_EPBULKIN=1 @@ -393,6 +396,8 @@ CONFIG_USBSER_TXBUFSIZE=512 # # USB Storage Device Configuration # +# CONFIG_USBSTRG +# Enable compilation of the USB storage driver # CONFIG_USBSTRG_EP0MAXPACKET # Max packet size for endpoint 0 # CONFIG_USBSTRG_EPBULKOUT and CONFIG_USBSTRG_EPBULKIN @@ -410,6 +415,7 @@ CONFIG_USBSER_TXBUFSIZE=512 # The product ID code/string # CONFIG_USBSTRG_REMOVABLE # Select if the media is removable +CONFIG_USBSTRG=n CONFIG_USBSTRG_EP0MAXPACKET=64 CONFIG_USBSTRG_EPBULKOUT=2 CONFIG_USBSTRG_EPBULKIN=1