diff --git a/Documentation/NuttX.html b/Documentation/NuttX.html index 06c4bb425b2..672921ce8c3 100644 --- a/Documentation/NuttX.html +++ b/Documentation/NuttX.html @@ -8,7 +8,7 @@
Last Updated: July 11, 2011
+Last Updated: July 17, 2011
-
+ 1
+ FAT long file name support may be subject to certain Microsoft patent restrictions if enabled.
+ See the top-level COPYING file for details.
+
nuttx-6.7 2011-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr>
+ * Makefile: Added a export target that will bundle up all of the NuttX
+ libraries, header files, and the startup object into an export-able
+ tarball.
+ * arch/arm/src/lpc17xx/lpc17_can.h: Correct some typos in the CAN
+ register definitions.
+ * drivers/serial/serialirq.c: Correct an error that can occur if the
+ serial RX buffer becomes full. Data is now discarded in that case;
+ before, leaving data in the hardware would cause infinite interrupts
+ one most MCUs since you must read the data in order to clear the
+ interrupt.
+ * arch/arm/src/lpc17xx/lpc17_can.c: Added a CAN driver contributed by
+ Li Zhuoyi (Lzyy).
+ * include/stddefs.h and sys/types: Added type wchar_t.
+ * fs/fat/fat_fat32dirent.c: The configuration CONFIG_FAT_LCNAMES has
+ been around for some time but never tested until now. This setting
+ will mimic the NT 8.3 file name behavior: File names or extensions
+ may be all upper or all lower case (but not mixed). If
+ CONFIG_FAT_LCNAMES is not selected, all filenames are strictly upper
+ case.
+ * configs/stm3210e-eval/nsh2: Console is back on UART1; Added
+ examplex/nx as an NSH "built-in" command as a demonstration.
+ * fs/fat/fs_fat32dirent.c: Fix an important bug in the directory
+ allocation (fat_allocatedirentry()). I looks like it could be
+ initializing the wrong sectors! NOTE: This function was in
+ fs_fat32utils.c in earlier releases.
+ * arch/arm/src/stm32_sdio.c: Correct an important DMA-related bug;
+ SDIO transfer completion events and DMA completion eventes were
+ not being coordinated correctly.
+ * configs/stm3210e-eval/nsh2: Enable FAT long file name support
+
apps-6.7 2011-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr>
+ * apps/examples/nx and nxtext: These examples can now be built as NSH
+ "built-in" commands.
+
pascal-3.1 2011-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr>
buildroot-1.11 2011-xx-xx <spudmonkey@racsa.co.cr>
diff --git a/fs/fat/fs_fat32dirent.c b/fs/fat/fs_fat32dirent.c
index b64ab87e3b9..8ba3d3a6954 100644
--- a/fs/fat/fs_fat32dirent.c
+++ b/fs/fat/fs_fat32dirent.c
@@ -941,28 +941,18 @@ static bool fat_cmplfname(const uint8_t *direntry, const uint8_t *substr)
chunk = LDIR_PTRWCHAR1_5(direntry);
match = fat_cmplfnchunk(chunk, substr, 5);
- if (match)
+ if (match && len > 5)
{
- /* Don't go past the end of the sub-string */
+ /* Check bytes 6-11 */
- if (len > 5)
+ chunk = LDIR_PTRWCHAR6_11(direntry);
+ match = fat_cmplfnchunk(chunk, &substr[5], 6);
+ if (match && len > 11)
{
- /* Check bytes 6-11 */
+ /* Check bytes 12-13 */
- chunk = LDIR_PTRWCHAR6_11(direntry);
- match = fat_cmplfnchunk(chunk, &substr[5], 6);
- if (match)
- {
- /* Don't go past the end of the sub-string */
-
- if (len > 11)
- {
- /* Check bytes 12-13 */
-
- chunk = LDIR_PTRWCHAR12_13(direntry);
- match = fat_cmplfnchunk(chunk, &substr[11], 2);
- }
- }
+ chunk = LDIR_PTRWCHAR12_13(direntry);
+ match = fat_cmplfnchunk(chunk, &substr[11], 2);
}
}