Commit Graph

1361 Commits

Author SHA1 Message Date
Gregory Nutt
367093e65c apps/examples/module: Fix some chaos in conditional compilation. 2018-08-07 10:51:04 -06:00
Gregory Nutt
057eb80564 apps/examples/module: When built in the PROTECTED or KERNEL modes, the symbol table is not built by the application. That is because the build will fail since the kernel module depends on internal OS symbols thar are not available to the appliatino build. With this change the examples does not attempt to build the kernel symbol table in these modes. Instead it just copies the kernel module symbol table into the nuttx/pass1 directory where it can be build directly into the OS during pass2 of the build. 2018-08-07 09:15:01 -06:00
Gregory Nutt
af30085f9c apps/examples/module: Fix some error introduced with last changes to this example. Found in build testing. 2018-08-05 17:03:08 -06:00
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
Gregory Nutt
000b52c668 Fix typos in Kconfig files: LCD_PACKEDMSFIRST, not LCD_PACKEDFIRST. 2017-11-26 07:56:16 -06:00
Fabio D'Urso
e414a8f26c apps/examples: CONFIG_QENCODER was renamed to CONFIG_SENSORS_QENCODER: update README.txt 2017-11-25 18:43:04 -06:00
Gregory Nutt
9246d03ebd apps/graphics/pdcurses: Fix some display update calculations. 2017-11-25 18:05:07 -06:00
Gregory Nutt
1fbf30e6fe apps/graphics/pdcurses and apps/examples/fb: Both assume that bits are packed MS first. 2017-11-25 13:14:28 -06:00
Gregory Nutt
f68a44aaea apps/examples/fb: Add a small delay between updating each rectangular region. 2017-11-25 11:42:10 -06:00
Gregory Nutt
f42031e65b apps/examples/pdcurses: Add a very simple example that just shows the entire character set (7-bit only). It adapts to the size of the framebuffer and, hence, can be used with very tiny displays. In fact it looks really dumb on big displays. 2017-11-24 09:46:58 -06:00
Gregory Nutt
52dc96e5c3 apps/example/fb: Restores 0205eeef52. It was correct all along. Also fixes calculation of the end byte position. 2017-11-24 07:10:52 -06:00
Gregory Nutt
966faf3859 Revert "apps/examples/fb: Fix calculation of a mask value."
This reverts commit 0205eeef52.
2017-11-23 11:39:40 -06:00
Gregory Nutt
0205eeef52 apps/examples/fb: Fix calculation of a mask value. 2017-11-22 16:14:28 -06:00
Gregory Nutt
49dab79a30 apps/pdcur34: Define pdc_color_t based on pixel depth, not on specific color format. 2017-11-22 07:22:03 -06:00
Gregory Nutt
b3db0c32ec apps/examples/pdcurses: Eliminate some warnings. 2017-11-19 16:18:32 -06:00
Gregory Nutt
4eac495713 apps/pdcurses/: Fix a few more bugs found in testing; apps/examples/pdcurses: Brings in the remaining pdcurses demo programs. 2017-11-19 16:14:55 -06:00
Gregory Nutt
42bb5643bf Squashed commit of the following:
apps/graphics/pdcur34:  Various fixes from initial testing.  Still does not work

    apps/graphics/pdcurs34/nuttx:  Completes first cut at framebuffer rendering logic.
2017-11-19 13:35:20 -06:00
Gregory Nutt
ad54b77f33 apps/graphics/pdcurs34: Add NuttX framebuffer color managment and beginning of some rendering logic. 2017-11-18 19:30:19 -06:00
Gregory Nutt
e33fe59cab apps/example/pdcurses: Add logic to build one of the several pdcurses demo/test programs 2017-11-18 12:33:10 -06:00
Gregory Nutt
eb065a756e apps/examples/pdcurses: Bring pdcurses demos and make them conform to the NuttX coding style (not yet hooked into the build system). 2017-11-17 18:23:23 -06:00
Anthony Merlino
f489bcd6f9 Merged in antmerlino/apps/ftp-ipv6 (pull request #122)
FTP: Adds support for IPv6 and fixes various transfer issues

* netutils/ftpd: Fix support for IPv6 FTP server

* netutils/ftpc:Adds support for IPv6 sockets

* ftpc: Must convert port received by EPSV reply to network order

* ftpc: Data socket address for passive connection should be same as server address

* ftpc: Must skip human readable string in EPSV response before scanning for port

* ftpc: Don't send PASS command if USER command was sufficient. ie no password required

* ftpc: Generically handle permanent negative completion in shard ftpc_cmd logic

* ftpc: Minor addresssing fix

* ftpc: Tweak logic for overriding network debugging output

* FTP: Adds option for setting stack size of various threads in FTPD and FTPC

* netutils/ftpd: Fixes build error setting IPv4 address. sin_addr => sin_addr.s_addr

* netutils/ftpd: Protects against partial write returns by looping in that case

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-11-06 23:41:30 +00:00
Gregory Nutt
efd1279025 apps/examples/ltdc: Remove apps/examples/ltdc. It violates the portable POSIX interface by calling directly into OS code. 2017-11-06 11:31:32 -06:00
Gregory Nutt
7a0d29fc59 apps/examples/userfs: Handle the O_TRUNC open flag. 2017-11-06 07:15:20 -06:00
Gregory Nutt
3dd64af3db apps/examples/userfs: Fixes a bug with double freeing open data when dup'ed files are closed. 2017-11-05 17:43:04 -06:00
Gregory Nutt
9ce13f74e7 apps/examples/userfs: Add some (unnecessary) checks for NULL pointers. 2017-11-05 12:33:38 -06:00
Mateusz Szafoni
568c2638e8 Merged in raiden00/apps (pull request #121)
smps, powerled examples: fix floating point format in printf

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-11-05 14:18:08 +00:00
Mateusz Szafoni
6d37b6a570 Merged in raiden00/apps (pull request #120)
examples: add SMPS driver example

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-11-05 12:33:06 +00:00
Gregory Nutt
20119c3647 apps/examples/userfs: Fix check for open with write+append mode. 2017-11-01 16:59:28 -06:00
Gregory Nutt
342b51e9a6 apps/examples/userfs: Fix bad logic in test stat() implementation. 2017-11-01 09:15:40 -06:00
Gregory Nutt
769ffb8a4b apps/examples/userfs: Add a test case for verifying UserFS. 2017-10-31 09:00:49 -06:00
Alan Carvalho de Assis
8aa72a0ad4 apps/examples/obd2: Add OBD2 example application 2017-10-28 13:38:47 -06:00
Alan Carvalho de Assis
51cf069aef apps/examples/adps9960: Add ADPS-9960 example 2017-10-23 07:05:07 -06:00
Gregory Nutt
35ec1b9244 Squashed commit of the following:
apps/fsutils/mkfatfs:  New user-space fatfs appears to work fine.
    apps/fsutils/mkfatfs:  Move mkfatfs from the OS to here.  Not fully integrated on the intial commit.
2017-10-20 12:35:19 -06:00
Juha Niskanen
63e086d1f7 Merged in juniskane/apps_upstream/examples_alarm_pr (pull request #112)
examples/alarm: add options for reading alarm value and canceling it

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-10-17 16:43:55 +00:00
Gregory Nutt
4bff47a80f graphics/traveler: Conver to use the framebuffer driver. 2017-10-16 07:13:38 -06:00
Gregory Nutt
90d4cf6ede This removes the last traces of single-user mode. 2017-10-15 09:36:55 -06:00
Gregory Nutt
1a170dc73d Remove unused CONFIG_xyz_EXTERNINIT configuration variables. 2017-10-15 08:05:23 -06:00
Gregory Nutt
bfde560c60 exampls/nxhello: Increase the amount of time that the text is displayed before erasing it 2017-10-15 07:25:35 -06:00
Gregory Nutt
f9a9f1410a examples/nxlines now supports only multiuser mode. 2017-10-14 16:52:20 -06:00
Gregory Nutt
2206b6c341 examples/nximage now supports only multiuser mode. 2017-10-14 15:09:43 -06:00
Gregory Nutt
f05351c3b5 Forgot to add a file in the last commit 2017-10-14 14:39:06 -06:00
Gregory Nutt
7e151940cc examples/nxhello now supports only multiuser mode. 2017-10-14 14:18:45 -06:00
Gregory Nutt
fda6713854 graphics/traveler: No longer supports single user graphics mode. 2017-10-14 11:51:58 -06:00
Gregory Nutt
5f7fa0350f examples/lcdrw: Remove this example. It violates the portable OS interface and cannot be retaind. 2017-10-14 11:23:02 -06:00
Gregory Nutt
97e789976e examples/nxtext: The nxtext example no longer supports single user mode. 2017-10-14 11:16:34 -06:00
Gregory Nutt
25ee1352ef examples/nxterm: Minor cleanup 2017-10-14 11:04:44 -06:00
Gregory Nutt
273dd9dd3f examples/nx: The NX example no longer supports single user mode. 2017-10-14 10:55:12 -06:00
Gregory Nutt
fe3e7a7bad examples/ostest: Extend cancellation test to make sure that cancelable threads waiting on a message queue or on a signal can be canceled. 2017-10-12 10:44:06 -06:00
Sebastien Lorquet
e4339355e4 examples/ina219: A simple infinite loop that polls the INA219 sensor and displays the measurements. 2017-10-11 10:49:48 -06:00
Gregory Nutt
cffb1a7f9c Update some comments. 2017-10-11 10:32:59 -06:00
Gregory Nutt
73c10a2607 examples/ostest: Works around a bug in printf() when cancellation points are enabled. printf() is a cancellation point because it calls write(). This is correct according to OpenGroup.org. However, printf holds the stdio library semaphore when it is canceled and this leaves the semaphore in a bad state. No fix for the printf bug yet. 2017-10-10 14:01:49 -06:00
Mateusz Szafoni
ae41122371 Merged in raiden00/apps (pull request #111)
Add powerled driver example

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-10-08 17:31:41 +00:00
Gregory Nutt
1db7d34a84 examples/elf and nxff: Won't build with CONFIG_BUILD_KERNEL because the interface exec() is not available in that configuration. Also, remove a stray comma and a stray semacolon in examples/pty_test/Kconfig and examples/random/Kconfig 2017-10-06 15:13:00 -06:00
Gregory Nutt
926a52bc5e apps/examples/nxflat: A little crap was left in the file from last change. 2017-10-02 14:40:48 -06:00
Gregory Nutt
56814bec38 apps/examples: In elf and nxflat examples, remove low-level interfaces and replace with call to exec(). 2017-10-02 14:32:17 -06:00
Alan Carvalho de Assis
661a593939 apps/examples/flowc: Small improvement to break line if more than 80 . were printed 2017-09-27 12:56:47 -06:00
Alan Carvalho de Assis
0d0d62fca0 apps/examples/flowc: Rename README,.txt to README.txt 2017-09-27 12:52:41 -06:00
Gregory Nutt
21c9b793e2 Add a README file 2017-09-27 06:08:36 -06:00
Gregory Nutt
6a7fddf41d apps/examples/flowc: Add some syslog output to flush the syslog interrupt buffer 2017-09-27 06:00:46 -06:00
Gregory Nutt
ca354f2175 apps/examples/flowc: Fix some errors in receiver's verificationg logic. Add a 'canned' data file so that we don't need to deal with the sender program; we can just 'cat' the canned data file. 2017-09-26 13:13:34 -06:00
Gregory Nutt
d02ec04ff3 Fix some conditional compilation in previous commit. 2017-09-26 10:32:47 -06:00
Gregory Nutt
778ff478e6 apps/examples/flowc: Add a delay between received packets in order to force input flow control. 2017-09-26 10:30:40 -06:00
Alan Carvalho de Assis
873e4ee83e apps/examples/qencode: The QENCODER name was changed to SENSORS_QENCODER fix it here 2017-09-24 14:53:27 -06:00
Gregory Nutt
c221af2f72 Update some comments. 2017-09-23 12:39:01 -06:00
Gregory Nutt
267521af9b Squashed commit of the following:
apps/examples/flowc:  Adds the necessary termios controls to enable hardware flow control

    apps/examples/flowc:  Add a simple test of serial hardware flow control.  This commit just defines the frame work.  Hardware flow control is not yet enabled.
2017-09-23 11:02:21 -06:00
Gregory Nutt
450624c370 Squashed commit of the following:
netutils/netlib:  Add netlib_ipv6adaptor()
    netutils/netlib:  Add netlib_ipv4adaptor()
2017-09-19 15:21:13 -06:00
Alan Carvalho de Assis
22d43409f2 apps/examples/apa102: Add a Rainbow example for APA102 LED Strip 2017-09-18 17:03:20 -06:00
Gregory Nutt
8beab59e0d Trivial changes from review of last PR. 2017-09-14 15:04:43 -06:00
Florian Olbrich
bbade5522d Merged in floxx/apps (pull request #107)
Added a simple reader example for the LIS3DSH acceleration sensor on STM32F4Discovery

* Added a simple reader example for the LIS3DSH acceleration sensor as
    found on STM32F4Discovery.

* Edited lis3dsh_reader_main.c to obey nuttx coding standard.

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-09-14 20:59:05 +00:00
Gregory Nutt
cb13b7ed1b examples/fb: Extend test to include 1-bpp monochrome. 2017-09-13 10:58:29 -06:00
Gregory Nutt
0fd8ade4b5 Rename CONFIG_AUDIO_DEVICES to CONFIG_DRIVERS_AUDIO to conform better to the evolving configuration naming standard. 2017-09-12 14:11:17 -06:00
Gregory Nutt
0cb9810844 examples/fb: Flesh out the framebuffer driver test. 2017-09-12 11:10:16 -06:00
Gregory Nutt
8ac1952d4c examples/fb: Add a simple test for the framebuffer character driver. This initial commit just verfies some interfaces and initialization logic. Still need to add to graphics update logic. 2017-09-12 09:51:47 -06:00
Masayuki Ishikawa
98fb74b82c examples/adc: Fix g_adcstate.count initialization. 2017-09-11 14:01:09 +09:00
Gregory Nutt
928443e385 examples/ostest: sem_open() now returns SEM_FAILED in the event of a failure. 2017-09-08 10:15:46 -06:00
Gregory Nutt
cdf0528933 examples/dac: Lets use printf instead of _info in application code. 2017-09-01 07:39:39 -06:00
Juha Niskanen
318350d289 examples: add DAC example 2017-09-01 11:22:39 +03:00
Masayuki Ishikawa
25237eafe0 apps/examples/nsh: Remove APPNAME, PRIORITY, and STACKSIZE settings from Makefile to avoid showing nsh in Builtin Apps. 2017-08-26 06:18:03 -06:00
Gregory Nutt
7fa2bd1a23 examples/: Correct naming of some configuration variables. 2017-08-24 13:37:36 -06:00
Gregory Nutt
7c26ee7611 Remove a warning of unused local variable. 2017-08-20 11:15:26 -06:00
Gregory Nutt
41ce937ed0 Changes to netlib and nsh so that you build build with PF_IEEE802154 enabled and 6LoWPAN disabled. 2017-08-20 09:09:47 -06:00
Gregory Nutt
6cbf2b9130 Squashed commit of the following:
commit 6fbbca4ce308f5d8130d795342c7639555a7e5bf
Author: Gregory Nutt <gnutt@nuttx.org>
Date:   Sat Aug 19 08:46:27 2017 -0600

    apps/examples/pf_ieee802154:  Add PANID to command line options; Cannot bind to address zero... There is no counterpart to INADDR_ANY for these radios (not now at least).

commit 354111108a88f549248537e79dbf79998f458ded
Author: Gregory Nutt <gnutt@nuttx.org>
Date:   Fri Aug 18 17:47:10 2017 -0600

    PF_IEEE802154:  A few bugfixes

commit f1bb947609ed5e9e8816234653d6c8ee24585079
Author: Gregory Nutt <gnutt@nuttx.org>
Date:   Fri Aug 18 15:17:32 2017 -0600

    Add file missed in last commit

commit 9a73930e864db83609b5cc0d7c940d8efeaade66
Merge: 315b888f c433e07a
Author: Gregory Nutt <gnutt@nuttx.org>
Date:   Fri Aug 18 12:08:03 2017 -0600

    Merge remote-tracking branch 'origin/master' into pf_ieee802154

commit 315b888f4e72523d90b526edc5a82fb97678ff7e
Author: Gregory Nutt <gnutt@nuttx.org>
Date:   Fri Aug 18 12:06:51 2017 -0600

    examples/pf_ieee802154:  Add for testing PF_IEEE802154 sockets.
2017-08-19 08:47:35 -06:00
Gregory Nutt
7a8561728c The last change added .PRECIOUS: $(BIN) to everyway Makefile in hopes the libapps.a will not be deleted on Control-C (unproven so far). However, $(BIN) may contain back slashes in some build platforms and that causes problems for make: It can't handle the backslashes in the .PRECIOUS dependency list. $(BIN) replaced with ../../libapp.a, where the number of ../ depends on the depth of the Makefile in the apps/ source tree. 2017-08-13 11:03:17 -06:00
Gregory Nutt
a66da34f18 All Makefiles: Add .PRECIOUS: apps/libapps.a to every Makefile. Hopefully this will end awkward problems when you Control-C out of a build and libapps.a is deleted. 2017-08-13 09:35:14 -06:00
Gregory Nutt
0bc7bce916 Eliminate warning about an unused global variable. 2017-08-12 16:40:09 -06:00
Gregory Nutt
4477cbcbd1 Fix some misplaced semicolons as found in build testing. 2017-08-12 14:27:48 -06:00
Gregory Nutt
45eb06c3c2 apps/examples/nximage: Remove unused global variable. 2017-08-12 12:48:38 -06:00
Gregory Nutt
a063227e58 Eliminate a warning about unused static data. 2017-08-12 12:15:21 -06:00
Gregory Nutt
4ee084ab24 Remove references to obsoleted CONFIG_NETDEV_MULTINIC and CONFIG_NETDEV_MULILINK. 2017-08-08 18:37:00 -06:00
Gregory Nutt
69b004790d Update .gitignore 2017-08-08 11:12:19 -06:00
Gregory Nutt
444922ea93 apps/examples/udp: Enable testing with the broadcast address. 2017-08-08 08:16:47 -06:00
Gregory Nutt
0c34ebb72f Typo: USE_NOFITY_POLL -> USE_NOTIFY_POLL 2017-08-02 17:32:27 -06:00
Gregory Nutt
c7e7b42b06 examples/nettest/: Loopback option shoudl be available in Kconfig for PktRadio. 2017-08-01 17:22:01 -06:00
Gregory Nutt
411e053460 Review of last PR. Changes to make consistent with NuttX coding standard. 2017-07-28 09:14:47 -06:00
Giorgio Groß
5f73f290a1 Implement powermonitor example for ltc4151 current and voltage monitor 2017-07-28 15:26:11 +02:00
Gregory Nutt
915b42f870 apps/examples/ipforward: Test extended to test forwarding of ICMPv6 multicast messages. 2017-07-09 12:05:23 -06:00
Gregory Nutt
1657d1fff5 apps/examples/ipforward: A few fixes, but still no cigar. 2017-07-07 17:32:37 -06:00
Gregory Nutt
37bb767089 Completes code for apps/examples/ipforward. Still untested. 2017-07-07 15:00:00 -06:00
Gregory Nutt
47a42852e5 apps/examples/ipforward: Add beginning of an IP forwarding example using only TUN devices. 2017-07-07 15:00:00 -06:00
Gregory Nutt
3e37dbc4ab apps/examples/nettest: Fix incorrectly named file. 2017-07-05 12:52:46 -06:00
Gregory Nutt
abc01c0e5b apps/examples/keypadtest: REMOVED and warehoused in the Obsoleted repository. This was just a bad clone of apps/examples/hidkbd for a keypad driver that was removed years ago.  It also uses illegal function calls into the OS.  So it has no purpse:  It is redundant, it uses illegal interfaces, and is a test for non-existent code. 2017-07-04 15:57:30 -06:00