Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
f4grx
NuttX RTOS
Commits
9638f3f0
Commit
9638f3f0
authored
7 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
fs/fat: CONFIG_FAT_MAXFNAME may not exceed NAME_MAX (CONFIG_NAME_MAX)
parent
eed14e5e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
arch/arm/src/lpc54xx/lpc54_i2c_master.c
+1
-1
1 addition, 1 deletion
arch/arm/src/lpc54xx/lpc54_i2c_master.c
fs/fat/Kconfig
+4
-0
4 additions, 0 deletions
fs/fat/Kconfig
fs/fat/fs_fat32.h
+7
-1
7 additions, 1 deletion
fs/fat/fs_fat32.h
with
12 additions
and
2 deletions
arch/arm/src/lpc54xx/lpc54_i2c_master.c
+
1
−
1
View file @
9638f3f0
...
...
@@ -340,7 +340,7 @@ static int lpc54_i2c_start(struct lpc54_i2cdev_s *priv)
static
void
lpc54_i2c_stop
(
struct
lpc54_i2cdev_s
*
priv
)
{
(
void
)
lpc54_wait_pendingstatus
(
priv
);
lpc54_i2c_putreg
(
pri
c
,
LPC54_I2C_MSTCTL_OFFSET
,
I2C_MSTCTL_MSTSTOP
);
lpc54_i2c_putreg
(
pri
v
,
LPC54_I2C_MSTCTL_OFFSET
,
I2C_MSTCTL_MSTSTOP
);
nxsem_post
(
&
priv
->
waitsem
);
}
...
...
This diff is collapsed.
Click to expand it.
fs/fat/Kconfig
+
4
−
0
View file @
9638f3f0
...
...
@@ -34,6 +34,7 @@ config FAT_MAXFNAME
int "FAT maximum file name size"
depends on FAT_LFN
default 32
range 1 255
---help---
If FAT_LFN is defined, then the default, maximum long file
name is 255 bytes. This can eat up a lot of memory (especially stack
...
...
@@ -42,6 +43,9 @@ config FAT_MAXFNAME
good choice would be the same value as selected for NAME_MAX which will
limit the visibility of longer file names anyway.
This setting may not exceed NAME_MAX. That will be verified at compile
time.
config FS_FATTIME
bool "FAT timestamps"
default n
...
...
This diff is collapsed.
Click to expand it.
fs/fat/fs_fat32.h
+
7
−
1
View file @
9638f3f0
/****************************************************************************
* fs/fat/fs_fat32.h
*
* Copyright (C) 2007-2009, 2011 Gregory Nutt. All rights reserved.
* Copyright (C) 2007-2009, 2011
, 2017
Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
...
...
@@ -229,6 +229,12 @@
/* Sizes and limits */
# if CONFIG_FAT_MAXFNAME > CONFIG_NAME_MAX
# warning CONFIG_FAT_MAXFNAME may not exceed NAME_MAX (CONFIG_NAME_MAX)
# undef CONFIG_FAT_MAXFNAME
# define CONFIG_FAT_MAXFNAME CONFIG_NAME_MAX
# endif
# ifndef CONFIG_FAT_MAXFNAME
/* The maximum support filename can be limited */
# define LDIR_MAXFNAME 255
/* Max unicode characters in file name */
# elif CONFIG_FAT_MAXFNAME <= 255
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment