Commit Graph

1258 Commits

Author SHA1 Message Date
Gregory Nutt
f5eeaf1fb6 examples/module: Add support for automounting removable media. This involves a wait for the block driver to become available before performing the mount. 2018-08-05 15:35:38 -06:00
Gregory Nutt
b980e943c7 apps/examples/module: Add support for CROMFS and for stripping symbols from ELF module binaries. 2018-08-05 14:10:44 -06:00
Gregory Nutt
6210fcae8b apps/examples/elf: Update some Kconfig comments. 2018-08-04 16:38:46 -06:00
Gregory Nutt
8572f223ae apps/examples/elf: If the test ELF files are on media in removable meda such as SD or USB FLASH, the wait until the media has been installed and initialized before starting the test. 2018-08-04 16:24:02 -06:00
Gregory Nutt
ba2d9e7c42 apps/examples/elf: CROMFS and ROMFS configuration currently only usable in FLAT build. Add configuration to use ELF objects on external media like SD card or USB drive instead. 2018-08-04 13:10:40 -06:00
Gregory Nutt
922283ee5d Squashed commit of the following:
Merged in masayuki2009/nuttx.apps/loadable_app (pull request #148)

    loadable app support

    * apps: Introduce a build system for loadable apps for nsh.

        This PR consits of following changes. (NOTE: Changes to each
        application will be provided separately)

        apps/nshlib/Kconfig:
        Add 'option modules' to NSH_FILE_APPS so that a user can change
        an application configuration to tristate (y/n/m)

        apps/Make.defs:
        Override COMPILE and COMPILEXX macros to compile loadable apps.
        To make loadable apps, -DLOADABLE_APP is added to the flags.
        Also, introduce ELFLD to link a lodable app.
        Please note that the variable 'LOADABLE' must be defined in
        each application Makefile if you want to make a loadable app.

        apps/Application.mk:
        Add .build target in case of 'LOADABLE=y' which is used to
        link a final loadable application and install the app to
        apps/bin.

        apps/Makefile:
        Add SYMTABSRC and SYMTABOBJ variables for loadable apps which
        will be generated under the apps directory.
        Add make_symbols target which will be called when all applications
        are installed to generate symtab_app.c which is used for
        nsh to inform symbol information to the NuttX kernel.

        Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>

    * apps/examples/hello: Apply changes to support a lodable app.

        Kconfig:
        Change the application state from bool to tristate

        Make.defs:
        Change the condition to build. By default, the application is
        not selected (i.e. 'n'), so if other states (i.e. y/m) are
        selected, the application will be compiled.

        Makefile:
        If the application is specified to 'm', the variable 'LOADABLE'
        must be defined here. Also note that other variables (PRIORITY
        and STACKSIZE) can only be used for built-in apps.

        hello_main.c
        Add LOADABLE_APP condition to main().

        Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>

    * apps/examples/helloxx: Apply changes to support a lodable app.

        Kconfig:
        Change the application state from bool to tristate

        Make.defs:
        Change the condition to build. By default, the application is
        not selected (i.e. 'n'), so if other states (i.e. y/m) are
        selected, the application will be compiled.

        Makefile:
        If the application is specified to 'm', the variable 'LOADABLE'
        must be defined here. Also note that other variables (PRIORITY
        and STACKSIZE) can only be used for built-in apps.

        helloxx_main.c
        Add LOADABLE_APP condition to main().

        Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>

    Approved-by: GregoryN <gnutt@nuttx.org>
2018-08-03 12:05:01 -06:00
Gregory Nutt
f0b4f14396 Eliminate some new warnings reported in build testing. 2018-07-20 10:10:09 -06:00
Alan Carvalho de Assis
3cc79be2fb examples/lvgldemo/ and graphics/littlevgl/: pdate LVGL to version 5.1.1 2018-07-19 08:02:25 -06:00
Masayuki Ishikawa
9240ef5536 Merged in masayuki2009/nuttx.apps/fix_symtab_related (pull request #146)
Fix symtab related

* apps/tools: Add +x to mksymtab.sh

    Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>

* apps/examples/nsh: Fix compile errors with CONFIG_EXAMPLES_NSH_SYMTAB=y

    Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>

Approved-by: GregoryN <gnutt@nuttx.org>
2018-07-17 03:51:44 +00:00
Gregory Nutt
4db29bc2eb apps/examples/elf: Correct some Kconfig coments. 2018-07-16 12:10:16 -06:00
Gregory Nutt
878fa8afd5 Squashed commit of the following:
cosmetic

    import/:  Add Makefile.symtab which can be used to compile the dynamically created symbol table C file.

    Add tools/mksymtab.sh
2018-07-15 11:21:53 -06:00
Gregory Nutt
aea8d948d4 apps/examples/nsh: The symbol table name and size variale names can now be configured. 2018-07-14 16:47:06 -06:00
Gregory Nutt
5ecec24084 There many occurences of the global variable g_exports and the opportunity for collisions. Make the global variable names unique. 2018-07-14 16:36:25 -06:00
Gregory Nutt
e778a6990d Correct more improper global variable naming: All must begin with g_ 2018-07-14 16:23:42 -06:00
Gregory Nutt
7c1082bfcc apps/examples/nsh: Clean up some rather complex conditional compilation associated with the previous commit. 2018-07-13 06:52:56 -06:00
Masayuki Ishikawa
0ea260e1c3 apps/examples/nsh: Add logic to automatically register an application symbol table as part of NSH initialization. 2018-07-13 06:28:36 -06:00
Masayuki Ishikawa
6b938816d1 Merged in masayuki2009/nuttx.apps/fix_helloxx (pull request #144)
apps/examples/helloxx: Add main() for CONFIG_BUILD_KERNEL

Signed-off-by: Masayuki Ishikawa <masayuki.ishikawa@gmail.com>

Approved-by: GregoryN <gnutt@nuttx.org>
2018-07-13 11:52:46 +00:00
Gregory Nutt
654ee7e6f9 apps/examples/elf, module, posix_spawn: Correct naming of global variables that violations the naming requirements of the coding standard. 2018-07-12 09:53:38 -06:00
Gregory Nutt
db9c56e723 apps/examples/powerled: Eliminate a warning about an uninitialized variable. 2018-07-08 13:40:20 -06:00
Mateusz Szafoni
e66470df68 Merged in raiden00/apps (pull request #143)
initial commit for examples/dsptest - unit test for Nuttx DSP library

Approved-by: GregoryN <gnutt@nuttx.org>
2018-07-07 17:09:43 +00:00
Gregory Nutt
db77b1ec6c apps/examples/tcpblaster: Fix an error in time calculation. 2018-07-06 14:44:26 -06:00
Gregory Nutt
19b8a52500 apps/examples/tcpblaster/tcpblaster_server.c: Start time was not being initialized on the server side on the first pass through loop so the first output record had a crazy time. 2018-07-05 16:39:31 -06:00
Gregory Nutt
749eccb999 Squashed commit of the following:
apps/examples/tcpblaster:  Some improvements/fixes in statistics reporting.
    apps/examples/tcpblaster:  Add performance measurement functionality.
    apps/examples/tcpblaster:  Initial commit is just apps/examples/nettest/ with naming changes.
2018-07-05 16:03:54 -06:00
Alan Carvalho de Assis
36e04b3533 apps/examples/gps: Add GPS example using MINMEA lib 2018-06-09 17:54:18 -06:00
Gregory Nutt
c36a5c12cc apps/examples/ostest: Signal handling tests should use the same configurable stack size as used in other tests, not PTHREAD_STACK_DEFAULT. 2018-06-07 09:52:02 -06:00
Marco Krahl
0c867bc603 Merged in MarcoKrahl/apps/ltdc (pull request #139)
examples: Adds example to test framebuffer overlay

Signed-off-by: Marco Krahl <ocram.lhark@gmail.com>

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2018-06-06 16:05:49 +00:00
Masayuki Ishikawa
0123480851 Merged in masayuki2009/nuttx.apps/i2sloop_test (pull request #137)
apps/examples/i2sloop: Add i2sloop application

This application can be used to test I2S loopback

  nsh> i2sloop &

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2018-06-06 12:45:51 +00:00
Gregory Nutt
6aa3e57004 Triva typo fixed. Also modify weird definition in import/Makefile. Still weird, but at least the directory exists. 2018-05-31 15:31:31 -06:00
Gregory Nutt
634dd7709b apps/, Various Makefiles: Fix mixed references to nuttx/lib. These need to be changed to nuttx/staging. 2018-05-30 11:08:13 -06:00
Alan Carvalho de Assis
9298bafa82 apps/examples/nxdemo: Add nxdemo application 2018-04-28 16:42:16 -06:00
Gregory Nutt
529cde02a2 apps/exmples/ostest: Eliminate a warning. 2018-04-22 15:29:59 -06:00
Juha Niskanen
d9210579b2 apps/examples/ostest: do not call AIO test without CONFIG_EXAMPLES_OSTEST_AIO 2018-04-11 07:09:47 -06:00
Tiago Almeida
5b85750307 apps/examples/max31855: Add an example to read multiple max31855 sensors 2018-04-09 15:19:14 -06:00
Bob Feretich
6a6ee2ffd2 apps/examples/adxl372_test and lxm330spi_test: Add ADXL372 and LSM330 tests. 2018-04-09 13:23:53 -06:00
Mateusz Szafoni
4d38b98054 Merged in raiden00/apps (pull request #134)
examples/powerled: add arch initialization; examples/smps: fixes in some printf and in Kconfig

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2018-04-07 12:45:35 +00:00
Gregory Nutt
c026d5ea09 apps/exmaples/smps: Fix types in Kconfig. All power, voltage, current values were strings with no default. I assume they should be 'int' with what default? 2018-04-04 15:30:01 -06:00
Alan Carvalho de Assis
a62b8ff299 apps/examples/cc3000: This commit removes the CC3000 example. 2018-04-04 09:38:53 -06:00
Gregory Nutt
12baeaa22d apps/examples/elf: Add an option to strip debug symbols even if the debug symbols are enabled in the base code. 2018-03-25 10:13:50 -06:00
Gregory Nutt
9dcf0c5ecb apps/examples/elf: Use strip command to make ELF binaries MUCH smaller. 2018-03-25 09:39:18 -06:00
Gregory Nutt
e413211e6e apps/examples/elf: Remove some debug code that was left in the previous commit. 2018-03-24 12:49:37 -06:00
Gregory Nutt
dbdfad8ff5 apps/examples/elf: Extend the ELF program module demo so that you can use compressed ELF programs with CROMFS. 2018-03-24 11:36:20 -06:00
Gregory Nutt
28ce015fbb Remove canutils/libuavcan and examples/uavcan. libuavcan has not built for a year or so. The basic problem is that as NuttX advances, the old frozen versino of libuavcan has become absolute because it violates the portable POSIX OS interface. No one is maintaining the port so there is no alternative but to remove it. 2018-03-23 07:29:06 -06:00
Gregory Nutt
96b034d18d apps/examples/cromfs: Update Kconfig comments. 2018-03-20 19:53:29 -06:00
Gregory Nutt
08083d3b2e apps/examples/cromfs: Add an example of how to build a CROMFS file system image. 2018-03-20 08:44:16 -06:00
Gregory Nutt
de248dd952 apps/posix_spawn: Eliminate a warning. 2018-03-16 12:18:26 -06:00
Gregory Nutt
d1a3a58fbe apps/system/lzf: Move the LZF tool from apps/examples/ to apps/system. 2018-03-16 09:10:01 -06:00
Gregory Nutt
947cbf6d7b apps/examples/nsh and posix_spawn: Must not call exec_setsymtab() directly. That is a non-POSIX internal OS interface. 2018-03-16 08:51:49 -06:00
Boris Astardzhiev
df7f00b412 apps/examples/lzf: Fix name composition and set defaults early in main. 2018-03-15 10:47:51 -06:00
Gregory Nutt
177cc93051 apps/examples/lzf: unlzf and lzcat are not supported. 2018-03-15 09:23:44 -06:00
Gregory Nutt
7c70ca5006 apps/examples/lzf: lzf_compress() now expects the hash table as user allocated input parmeter rather than declaring the huge array on the stack. 2018-03-15 08:52:13 -06:00
Gregory Nutt
d05f6ccf85 apps/examples/lzf: Fix another coding standard issue. 2018-03-15 07:59:49 -06:00
Boris Astardzhiev
f771da6952 apps/examples/lzf: Add the test case from Marc Alexander Lehmann's LIBLZF3.6 librrary 2018-03-14 14:50:18 -06:00
Gregory Nutt
18c07e5713 apps/examples/netloop: Update network loopback example so that it can be used to test TCP KeepAlive. 2018-03-12 13:34:41 -06:00
Gregory Nutt
b3f638b40c Squashed commit of the following:
apps/examples/ft80x:  Fix some errors in co-processor demos.
    apps/examples/ft80x:  Correct an error in the spinner demo.
    apps/examples/ft80x:  Change some unimportant warnings to informational output to reducing debug output.
2018-03-10 10:29:10 -06:00
Gregory Nutt
018bb4dd73 apps/examples/ft80x: Text is handled by the coprocessor and, hence, must use RAM_CMD, not RAM_DL. 2018-03-09 15:51:55 -06:00
Gregory Nutt
b0a0a39f7a Squashed commit of the following:
apps/examples/ft80x:  Fix some size calculations.  Add option to disable primitive tests... just too boring to have to watch over and over again.
    apps/graphics/ft80x:  Fix a typo in backlight fade logic; Fix error in formmatted display light debug dump output.
    apps/graphics/ft80x:  Fix some warnings when debug features are enabled.
2018-03-09 12:31:29 -06:00
Gregory Nutt
305e470a90 apps/graphics/ft80x: Add controls for enabling/disabling the audio amplifier; Add general interfaces for controlling FT80x GPIOs. 2018-02-27 08:48:15 -06:00
Gregory Nutt
685d379542 apps/graphics/ft80x: Add interface to play midi sounds; apps/examples/ft80x: Add an example using stencils. 2018-02-26 15:26:11 -06:00
Gregory Nutt
cccac4932b apps/graphics/ft80x and apps/examples/ft80x: Fix some compile issues with other configuration options are selected. 2018-02-25 18:24:13 -06:00
Gregory Nutt
4eeadd7b5d apps/graphics/ft80x: Ooops 5 touch points, not 4. apps/examples/ft80x: Re-order to some tests. 2018-02-25 11:45:56 -06:00
Gregory Nutt
e15526f683 apps/graphics/ft80x: Add more touchscreen interfaces. apps/examples/ft80x: Add an interactive example using buttons, keys, and touchscreen input. 2018-02-25 11:20:39 -06:00
Gregory Nutt
9b1b912861 Add a changes in places missed in the last commit. 2018-02-24 13:12:23 -06:00
Gregory Nutt
20cd72f75b apps/examples/ft80x: Fix some dangling compile issues when bitmap examples are disabled. 2018-02-24 12:09:15 -06:00
Gregory Nutt
4e4e22bb9a apps/examples/ft80x: Need to clear display before showing example title display. 2018-02-23 15:40:44 -06:00
Gregory Nutt
9095bd4f1b apps/graphics/ft80x: Add interfaces to control the backlight. apps/examples/ft80x: Fade the display on and off between each example. 2018-02-23 10:49:38 -06:00
Gregory Nutt
557fba6c4c apps/examples/ft80x: Add another coprocessor demo: screen saver. 2018-02-22 18:43:18 -06:00
Gregory Nutt
d2b19602e9 apps/examples/ft80x: Add another coprocessor example: keys 2018-02-22 13:20:00 -06:00
Gregory Nutt
15cd6fc382 apps/examples/ft80x: Add two more coprocessor demos: clock and gauge. 2018-02-22 12:30:58 -06:00
Gregory Nutt
4f6984d714 apps/graphics/ft80x: Add capabilitilies to send commands to the co-processor outside of the context of a display list. apps/examples/ft80x: Add another copressor example.. spinner animation. 2018-02-22 10:01:50 -06:00
Gregory Nutt
2436e3f85a apps/graphics/ft80x: Add routine to wait for logo animation to complete. apps/examples/ft80x: Add more graphic demonstrations. 2018-02-21 19:17:28 -06:00
Gregory Nutt
516eb6eb82 apps/examples/ft80x: Add another co-processor demos. 2018-02-21 15:42:47 -06:00
Gregory Nutt
3ee5bd15cf apps/examples/ft80x: Add another co-processor demos. 2018-02-21 14:32:20 -06:00
Gregory Nutt
157da4f1ab apps/graphics/ft80x: Add support for reading/writing multiple registers. Add interface to obtain the touchscreen transform matrix. apps/examples/ft80x: Add more co-processor demos. 2018-02-21 11:50:06 -06:00
Gregory Nutt
a2b232f832 Squashed commit of the following:
apps/examples/ft80x:  Add another co-processor demo
    ft80x: Add a few more debug message.
2018-02-20 18:46:17 -06:00
Gregory Nutt
ecfdf073fc Squashed commit of the following:
apps/graphics/ft80x:  Replace polling logic with gentler signal logic when waitinf for the CMD FIFO to become empty.
    apps/examples/ft80x:  Add first co-processor example.
    apps/graphics:  Extend library to manage display lists either in display memory (RAM DL) or provided directly to th co-processor FIFO (RAM CMD).
    apps/examples/ft80x:  Some minor clean-up.  Trivial changes for coprocessor support.
2018-02-20 15:23:05 -06:00
Dmitriy Linikov
2f2fb92ae3 Merged in hardlulz/modem-3.0-nuttx-apps/fix-sem-EINTR (pull request #133)
Added ECANCELED condition to DEBUGASSERT-s checking sem_wait result

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2018-02-20 18:37:32 +00:00
Gregory Nutt
c755ac0316 apps/examples/ft80x: Add a few more demos of GPU primitive operations. 2018-02-19 16:32:33 -06:00
Gregory Nutt
64a4622437 apps/graphics/ft80x and apps/examples/ft80x: Fix a few compile-relate issues introduced with last merge. 2018-02-19 13:22:23 -06:00
Gregory Nutt
7c9f8ef9eb Squashed commit of the following:
apps/graphics/ft80x:  Add support for accessing graphics ram.  apps/examples/ft80x:  Add more primitive graphics demos.
    apps/examples/ft80x:  Add a couple more demos of primitives.  Use new ft80x_dl_create() to simplify.
    apps/graphics/ft80x:  Add ft80x_dl_create() which simplies writing of very simple display lists.
2018-02-19 13:14:16 -06:00
Gregory Nutt
16d7d1b74c Squashed commit of the following:
apps/examples/ft80x:  Add one display example.  Many more are needed but this is enough to get started with testing (when I eventually have hardware).
    apps/examples/ft80x:  Add the bare framework for a test of the FT80x
2018-02-18 16:54:11 -06:00
Alan Carvalho de Assis
6708dcb00c examples/bmp180: Add BMP180 application example 2018-02-04 07:31:23 -06:00
Alan Carvalho de Assis
d704a8515f apps/examples/veml6070: Add VEML6070 Application Example 2018-01-28 09:08:15 -06:00
Philippe Coval
f888b0a741 Fix documentation mistake about standalone problem
I guess author meant "standalone program" not "standalone problem" ?

Then, it was replicated elsewhere in code base,
and fixed accordingly with this patch.

Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
2018-01-19 12:30:00 +01:00
Gregory Nutt
157e59b004 apps/examples/lvgldemo: Can no call boardctl() to initialize graphics hardware if needed. 2018-01-18 07:12:31 -06:00
Gregory Nutt
bfd8d1d6aa apps/examples/touchscreen: Elimint BOARDIOC_TSCTEST_SETUP. 2018-01-17 09:28:10 -06:00
Gregory Nutt
692180a9e9 Eliminate a warning 2018-01-16 18:31:48 -06:00
Gregory Nutt
673845eba0 Remove all references to the now non-existent boardctl(BOARD_TSCTEST_TEARDOWN). 2018-01-16 18:01:56 -06:00
Gregory Nutt
15bb9839ae apps/examples/lvgldemo: Remove references to CONFIG_EXAMPLES_LGVLDEMO_ARCHINIT (which was never defined anyway) and to all references to board control. The board bringup logic must register the touchscreen driver. BOARDIOC_TSCTEST_SETUP is deprecated. 2018-01-16 17:27:31 -06:00
Gregory Nutt
6895b1e7ce apps/examples/lvgldemo: Fix cloning errors in printf statements. 2018-01-16 16:32:37 -06:00
Gregory Nutt
cf002176e0 apps/example/lvgldemo: Add .gitignore file 2018-01-16 15:56:04 -06:00
Alan Carvalho de Assis
f2028411bf Squashed commit of the following:
apps/examples/lvgldemo:  Fix up some include paths
    apps/examples/lvgldemo:  The last final now conforms to the NuttX coding style.
    apps/graphics/littlevgl:  Two more files are closer to the NuttX coding style.
    apps/graphics/littlevgl:  Two more files are closer to the NuttX coding style.
    apps/examples/lvgldemo:  Three more files are closer to the NuttX coding style.
    apps/examples/lvgldemo:  Two more files are closer to the NuttX coding style.
    apps/examples/lvgldemo:  Two more files are closer to the NuttX coding style.
    Add include/graphics/.gitignore
    apps/include/graphics:  Remove lvgl.h.  graphics/littlevgl/Makefile now copies the file into position.
    apps/graphics/littlevgl:  Add .gitignore file
    apps/graphics/littlevgl:  Most of these files follow the coding style now.
    apps/graphics/littlevgl:  This gets a couple of files closer to the NuttX coding style.
    apps/examples/lvgldemo:  Add lvgldemo example
    apps/graphics/littlevgl:  Add littlevgl library
2018-01-16 15:35:55 -06:00
Gregory Nutt
e2e53117a5 Remove some section headers when the sections are empty. 2018-01-13 08:35:44 -06:00
Gregory Nutt
8566a16a82 examples/userfs: Add truncate() support for userfs 2018-01-03 16:01:40 -06:00
Gregory Nutt
6134eedb71 apps/examples/lis3dsh_reader: Convert a forbidden c99 construct to c89 style. 2017-12-16 07:32:55 -06:00
Gregory Nutt
2e4aa6a557 apps/examples/pdcurses: Clean up charset example so that the display geomtry is better on very wide displays (wide with respect to the width of a character). 2017-11-30 12:04:38 -06:00
Gregory Nutt
4a140f70d0 apps/examples/pipes: Fix some kruft left in last commit; Also clean up some coding standard problems. 2017-11-29 15:27:20 -06:00
Gregory Nutt
1956f66ee6 apps/examples/pipes: Eliminate some warnings. 2017-11-29 15:19:29 -06:00
Gregory Nutt
9c69257325 Eliminate some warnings 2017-11-28 12:53:15 -06:00
Alan Carvalho de Assis
9655ab02f7 apps/examples/nunchuck: Add Nunchuck Example Application 2017-11-28 12:18:46 -06:00
Gregory Nutt
cab8363d44 apps/graphics/pdcurses: Fix some miscellaneous, harmless typos and standard violations. 2017-11-27 17:31:22 -06:00