Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nuttx-apps
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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-apps
Commits
cf8d6621
"README.md" did not exist on "fe168b5baecdb4943abc7fcd0bf13cf4ffabe28a"
Commit
cf8d6621
authored
11 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
SAMA5D3x-EK: Add support for USB MSC device on AT25 serial flash
parent
09f534db
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/usbmsc/usbmsc.h
+10
-2
10 additions, 2 deletions
examples/usbmsc/usbmsc.h
examples/usbstorage/Kconfig
+0
-124
0 additions, 124 deletions
examples/usbstorage/Kconfig
with
10 additions
and
126 deletions
examples/usbmsc/usbmsc.h
+
10
−
2
View file @
cf8d6621
...
...
@@ -72,13 +72,21 @@
# ifndef CONFIG_EXAMPLES_USBMSC_DEVMINOR3
# error "CONFIG_EXAMPLES_USBMSC_DEVMINOR2 for LUN=3"
# endif
# ifndef CONFIG_EXAMPLES_USBMSC_DEVPATH
2
# error "CONFIG_EXAMPLES_USBMSC_DEVPATH
2
for LUN=3"
# ifndef CONFIG_EXAMPLES_USBMSC_DEVPATH
3
# error "CONFIG_EXAMPLES_USBMSC_DEVPATH
3
for LUN=3"
# endif
# if CONFIG_EXAMPLES_USBMSC_NLUNS > 3
# error "CONFIG_EXAMPLES_USBMSC_NLUNS must be {1,2,3}"
# endif
# else
# undef CONFIG_EXAMPLES_USBMSC_DEVMINOR3
# undef CONFIG_EXAMPLES_USBMSC_DEVPATH3
# endif
#else
# undef CONFIG_EXAMPLES_USBMSC_DEVMINOR2
# undef CONFIG_EXAMPLES_USBMSC_DEVPATH2
# undef CONFIG_EXAMPLES_USBMSC_DEVMINOR3
# undef CONFIG_EXAMPLES_USBMSC_DEVPATH3
#endif
/* Debug ********************************************************************/
...
...
This diff is collapsed.
Click to expand it.
examples/usbstorage/Kconfig
deleted
100644 → 0
+
0
−
124
View file @
09f534db
#
# For a description of the syntax of this configuration file,
# see misc/tools/kconfig-language.txt.
#
config EXAMPLES_USBMSC
bool "USB mass storage class example"
default n
---help---
Enable the USB mass storage class example
if EXAMPLES_USBMSC
config EXAMPLES_USBMSC_NLUNS
int "Number of LUNs"
default 1
---help---
Defines the number of logical units (LUNs) exported by the USB
storage driver. Each LUN corresponds to one exported block driver
(or partition of a block driver). May be 1, 2, or 3. Default is 1.
config EXAMPLES_USBMSC_DEVMINOR1
int "LUN1 Minor Device Number"
default 0
---help---
The minor device number of the block driver for the first LUN. For
example, N in /dev/mmcsdN. Used for registering the block driver.
Default is zero.
config EXAMPLES_USBMSC_DEVPATH1
string "LUN1 Device Path"
default "/dev/mmcsd0"
---help---
The full path to the registered block driver. Default is
"/dev/mmcsd0"
config EXAMPLES_USBMSC_DEVMINOR2
int "LUN2 Minor Device Number"
default 1
---help---
The minor device number of the block driver for the second LUN. For
example, N in /dev/mmcsdN. Used for registering the block driver.
Ignored if EXAMPLES_USBMSC_NLUNS < 2. Default is one.
config EXAMPLES_USBMSC_DEVPATH2
string "LUN2 Device Path"
default "/dev/mmcsd1"
---help---
The full path to the registered block driver. Ignored if
EXAMPLES_USBMSC_NLUNS < 2. Default is "/dev/mmcsd1"
config EXAMPLES_USBMSC_DEVMINOR3
int "LUN3 Minor Device Number"
default 2
---help---
The minor device number of the block driver for the third LUN. For
example, N in /dev/mmcsdN. Used for registering the block driver.
Ignored if EXAMPLES_USBMSC_NLUNS < 2. Default is two.
config EXAMPLES_USBMSC_DEVPATH3
string "LUN3 Device Path"
default "/dev/mmcsd2"
---help---
The full path to the registered block driver. Ignored if
EXAMPLES_USBMSC_NLUNS < 2. Default is "/dev/mmcsd2"
config EXAMPLES_USBMSC_DEBUGMM
bool "USB MSC MM Debug"
default n
---help---
Enables some debug tests to check for memory usage and memory leaks.
config EXAMPLES_USBMSC_TRACEINIT
bool "USB Trace Initialization"
default n
depends on USBDEV_TRACE || DEBUG_USB
---help---
If USBDEV_TRACE is enabled (or DEBUG and DEBUG_USB),
then the example code will also manage the USB trace output. The
amount of trace output can be controlled this configuration value:
This setting will show USB initialization events
config EXAMPLES_USBMSC_TRACECLASS
bool "USB Trace Class"
default n
depends on USBDEV_TRACE || DEBUG_USB
---help---
If USBDEV_TRACE is enabled (or DEBUG and DEBUG_USB),
then the example code will also manage the USB trace output. The
amount of trace output can be controlled this configuration value:
This setting will show USB class driver events
config EXAMPLES_USBMSC_TRACETRANSFERS
bool "USB Trace Transfers"
default n
depends on USBDEV_TRACE || DEBUG_USB
---help---
If USBDEV_TRACE is enabled (or DEBUG and DEBUG_USB),
then the example code will also manage the USB trace output. The
amount of trace output can be controlled this configuration value:
This setting will show USB data transfer events
config EXAMPLES_USBMSC_TRACECONTROLLER
bool "USB Trace Device Controller Events"
default n
depends on USBDEV_TRACE || DEBUG_USB
---help---
If USBDEV_TRACE is enabled (or DEBUG and DEBUG_USB),
then the example code will also manage the USB trace output. The
amount of trace output can be controlled this configuration value:
This setting will show USB device controller events
config EXAMPLES_USBMSC_TRACEINTERRUPTS
bool "USB Trace Device Controller Interrupt Events"
default n
depends on USBDEV_TRACE || DEBUG_USB
---help---
If USBDEV_TRACE is enabled (or DEBUG and DEBUG_USB),
then the example code will also manage the USB trace output. The
amount of trace output can be controlled this configuration value:
This setting will show USB device controller interrupt-related events.
endif
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