summaryrefslogtreecommitdiff
path: root/nuttx
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-07-25 22:21:38 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-07-25 22:21:38 +0000
commit1e931fd487f9661633ec8d5f952bbaa65d48b876 (patch)
treea85830897a5fc26e1672cc9f5a527cd649498a85 /nuttx
parent73624b6e68013b718cee96dc8d3c628cb84431ba (diff)
downloadpx4-nuttx-1e931fd487f9661633ec8d5f952bbaa65d48b876.tar.gz
px4-nuttx-1e931fd487f9661633ec8d5f952bbaa65d48b876.tar.bz2
px4-nuttx-1e931fd487f9661633ec8d5f952bbaa65d48b876.zip
Add memory usage monitor to USB storage example
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3817 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx')
-rw-r--r--nuttx/Documentation/NXGraphicsSubsystem.html1
-rw-r--r--nuttx/configs/stm3210e-eval/nsh2/defconfig3
-rwxr-xr-xnuttx/configs/stm3210e-eval/usbstorage/defconfig3
-rw-r--r--nuttx/graphics/README.txt8
-rwxr-xr-xnuttx/tools/README.txt8
5 files changed, 15 insertions, 8 deletions
diff --git a/nuttx/Documentation/NXGraphicsSubsystem.html b/nuttx/Documentation/NXGraphicsSubsystem.html
index 1c3305be5..56da66b9b 100644
--- a/nuttx/Documentation/NXGraphicsSubsystem.html
+++ b/nuttx/Documentation/NXGraphicsSubsystem.html
@@ -2894,6 +2894,7 @@ endif
</p>
<li>
<p>
+ <b><code>graphics/nxfonts/nxfonts_getfont.c</code></b>.
Finally, we need to extend the logic that does the run-time font lookups so that can find our new font.
The lookup function is <a href="#nxfgetfonthandle"><code>NXHANDLE nxf_getfonthandle(enum nx_fontid_e fontid)</code></a>.
Note that the lookup is based on the font ID that was defined in step 4.
diff --git a/nuttx/configs/stm3210e-eval/nsh2/defconfig b/nuttx/configs/stm3210e-eval/nsh2/defconfig
index 7d0ae8eb3..0a6bc8ab3 100644
--- a/nuttx/configs/stm3210e-eval/nsh2/defconfig
+++ b/nuttx/configs/stm3210e-eval/nsh2/defconfig
@@ -1102,6 +1102,8 @@ CONFIG_EXAMPLES_NXIMAGE_EXTERNINIT=n
# CONFIG_EXAMPLES_USBSTRG_DEVMINOR3 and CONFIG_EXAMPLES_USBSTRG_DEVPATH3
# Similar parameters that would have to be provided if CONFIG_EXAMPLES_USBSTRG_NLUNS
# is 3. No defaults.
+# CONFIG_EXAMPLES_USBSTRG_DEBUGMM
+# Enables some debug tests to check for memory usage and memory leaks.
#
# If CONFIG_USBDEV_TRACE is enabled (or CONFIG_DEBUG and CONFIG_DEBUG_USB), then
# the example code will also manage the USB trace output. The amount of trace output
@@ -1122,6 +1124,7 @@ CONFIG_EXAMPLES_USBSTRG_BUILTIN=y
CONFIG_EXAMPLES_USBSTRG_NLUNS=1
CONFIG_EXAMPLES_USBSTRG_DEVMINOR1=0
CONFIG_EXAMPLES_USBSTRG_DEVPATH1="/dev/mmcsd0"
+CONFIG_EXAMPLES_USBSTRG_DEBUGMM=n
CONFIG_EXAMPLES_USBSTRG_TRACEINIT=n
CONFIG_EXAMPLES_USBSTRG_TRACECLASS=n
CONFIG_EXAMPLES_USBSTRG_TRACETRANSFERS=n
diff --git a/nuttx/configs/stm3210e-eval/usbstorage/defconfig b/nuttx/configs/stm3210e-eval/usbstorage/defconfig
index a560b9a7b..da24167c7 100755
--- a/nuttx/configs/stm3210e-eval/usbstorage/defconfig
+++ b/nuttx/configs/stm3210e-eval/usbstorage/defconfig
@@ -858,6 +858,8 @@ CONFIG_EXAMPLES_USBSERIAL_TRACEINTERRUPTS=n
# CONFIG_EXAMPLES_USBSTRG_DEVMINOR3 and CONFIG_EXAMPLES_USBSTRG_DEVPATH3
# Similar parameters that would have to be provided if CONFIG_EXAMPLES_USBSTRG_NLUNS
# is 3. No defaults.
+# CONFIG_EXAMPLES_USBSTRG_DEBUGMM
+# Enables some debug tests to check for memory usage and memory leaks.
#
# If CONFIG_USBDEV_TRACE is enabled (or CONFIG_DEBUG and CONFIG_DEBUG_USB), then
# the example code will also manage the USB trace output. The amount of trace output
@@ -878,6 +880,7 @@ CONFIG_EXAMPLES_USBSTRG_BUILTIN=n
CONFIG_EXAMPLES_USBSTRG_NLUNS=1
CONFIG_EXAMPLES_USBSTRG_DEVMINOR1=0
CONFIG_EXAMPLES_USBSTRG_DEVPATH1="/dev/mmcsd0"
+CONFIG_EXAMPLES_USBSTRG_DEBUGMM=n
CONFIG_EXAMPLES_USBSTRG_TRACEINIT=n
CONFIG_EXAMPLES_USBSTRG_TRACECLASS=n
CONFIG_EXAMPLES_USBSTRG_TRACETRANSFERS=n
diff --git a/nuttx/graphics/README.txt b/nuttx/graphics/README.txt
index 12ac8ffee..7cbf095e0 100644
--- a/nuttx/graphics/README.txt
+++ b/nuttx/graphics/README.txt
@@ -200,10 +200,10 @@ Installing New Fonts
Where nxfonts_myfont.h is the NuttX font file that we generated in
step 2 using the bdf-converter tool.
- 9. Finally, we need to extend the logic that does the run-time font
- lookups so that can find our new font. The lookup function is
- NXHANDLE nxf_getfonthandle(enum nx_fontid_e fontid). The new
- font information needs to be added to data structures used by
+ 9. graphics/nxfonts/nxfonts_getfont.c. Finally, we need to extend the
+ logic that does the run-time font lookups so that can find our new
+ font. The lookup function is NXHANDLE nxf_getfonthandle(enum nx_fontid_e fontid).
+ The new font information needs to be added to data structures used by
that function:
#ifdef CONFIG_NXFONT_SANS23X27
diff --git a/nuttx/tools/README.txt b/nuttx/tools/README.txt
index e6f65081d..e859e8735 100755
--- a/nuttx/tools/README.txt
+++ b/nuttx/tools/README.txt
@@ -185,10 +185,10 @@ bdf-convert.c
Where nxfonts_myfont.h is the NuttX font file that we generated in
step 2 using the bdf-converter tool.
- 9. Finally, we need to extend the logic that does the run-time font
- lookups so that can find our new font. The lookup function is
- NXHANDLE nxf_getfonthandle(enum nx_fontid_e fontid). The new
- font information needs to be added to data structures used by
+ 9. graphics/nxfonts/nxfonts_getfont.c. Finally, we need to extend the
+ logic that does the run-time font lookups so that can find our new
+ font. The lookup function is NXHANDLE nxf_getfonthandle(enum nx_fontid_e fontid).
+ The new font information needs to be added to data structures used by
that function:
#ifdef CONFIG_NXFONT_SANS23X27