Commit Graph

3334 Commits

Author SHA1 Message Date
mst
62134a0419 apps/system/cle: Usage improvements including command line history (taken from readline) and support for addition control characters. 2018-08-05 16:05:59 -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
3e81973cd5 include/netutils/netlib.h: Eliminate a warning about AF_UNSPEC and AF_INET not defined. 2018-08-03 10:50:24 -06:00
Gregory Nutt
a1e5bf6bf3 apps/system/i2c: Adapt to rename I2C_M_RESTART->i2C_M_START. I2C_M_NOSTOP should be in flags of first message in every write-read and write-write mesage sequence. 2018-08-03 08:47:10 -06:00
Masayuki Ishikawa
d9cb9175ac Merged in masayuki2009/nuttx.apps/refactor_nxplayer (pull request #149)
nxplayer: Refactor nxplayer.c

Apply netlib_parsehttpurl() and remove unnecessary usleep().

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

Approved-by: GregoryN <gnutt@nuttx.org>
2018-07-31 12:16:31 +00:00
Gregory Nutt
822291b6e1 apps/fsutils/mkfatfs: Add some comments. Clean up some coding style issues. 2018-07-22 08:48:38 -06:00
Gregory Nutt
d365707d68 Add definitions for the FAT boot record (FBR). 2018-07-22 08:38:06 -06:00
Gregory Nutt
6916fa028b fs/fat: Clean up some name BS_ and MBR_ refer to the same record and should use the same naming (MBR_). 2018-07-22 06:58:09 -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
1030ea7c80 Merged in masayuki2009/nuttx.apps/fix_mksymtab (pull request #147)
apps/tools: Fix an error in mksymtab.sh

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

Approved-by: GregoryN <gnutt@nuttx.org>
2018-07-19 00:31:26 +00:00
Gregory Nutt
cb9e9510d9 apps/Make.defs: Improve the symtab target. tools/mksymtab.sh: Fix a typo. 2018-07-17 11:42:23 -06:00
Gregory Nutt
296f5839ab apps/tools: Forgot to include a file with last commit. 2018-07-17 11:26:47 -06:00
Gregory Nutt
272bdc0d6e apps Makesystem: Fix an error when building apps/ withtout nuttx/, using only the NuttX export package only and assuming that the nuttx/ directory in not even present. In this case, the problem fixed where the apps/Make.defs file was selecting tools from the /tools directory which does not exist because TOPDIR=apps/import. Instead, for this build case, I have not thought of any option but to duplicate scripts as necessary in the apps/tools directory. Also added a top-level target to compile the symbol table. Misc fixes: quoting in scripts, some errors in script syntax. 2018-07-17 10:42:15 -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
2ecc94f5ce apps/import/Makefile: Eliminate a MAKE sytax error that occurs in some (but not environments) when symtab.c has not been generated. 2018-07-16 08:27:44 -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
Gregory Nutt
4d8b8fa177 apps/netutils/dhcpc: Activates BINDTODEVICE if available, and break up some long lines 2018-06-25 15:19:01 -06:00
Mateusz Szafoni
0abe34183b Merged in raiden00/apps (pull request #142)
testing/unity: add configuration options for exclude setjmp and output color

Approved-by: GregoryN <gnutt@nuttx.org>
2018-06-23 14:58:25 +00:00
Gregory Nutt
3403b1b0e9 apps/nshlib/README.txt: Clarify arguments to the mkrd command. 2018-06-22 11:35:44 -06:00
Gregory Nutt
abcb66cb20 Remove apps/interpreters/micropthon. There are several reasons for this. (1) the current version 1.3.8 is very old and no one is supporting it. (2) the port only includes the core micropython logic and none of the Python libraries. As such it is useless in any real application. (3) There have recently been compile failures reported. It looks like this is due to changes in newlib based toolchains that now bring in incompatible newlib header files. See issue 104 at https://bitbucket.org/nuttx/nuttx/issues/104/build-micropython-138-error. With no one dedicated to the support of micropython, it can no longer be carried in the NuttX apps/ repository. 2018-06-18 08:10:09 -06:00
Gregory Nutt
36d6348368 apps/nslib: Try to eliminate and uninitialized variable warning. 2018-06-17 15:37:42 -06:00
Gregory Nutt
e853fb45ce apps/wireless/wapi: Remove dependency on CONFIG_EXPERIMENTAL from Kconfig 2018-06-17 10:55:16 -06:00
Mateusz Szafoni
133f239763 Merged in raiden00/apps (pull request #141)
testing: add Unity - unit testing library from ThrowTheSwitch.org

* examples/powerled: add arch initialization; examples/smps: fixes in some printf and in Kconfig

* testing: add Unity - unit testing library from ThrowTheSwitch.org

Approved-by: GregoryN <gnutt@nuttx.org>
2018-06-15 12:44:22 +00:00
Gregory Nutt
e4a30d55ee apps/Make.defs: Simplify last fix 2018-06-11 13:22:52 -06:00
Gregory Nutt
bf232771f6 apps/Make.defs: Fix an error introduced with recent chagne. MKKCONFIG may not be defined resulting in failure to create apps/Kconfig. 2018-06-11 10:21:22 -06:00
Alan Carvalho de Assis
36e04b3533 apps/examples/gps: Add GPS example using MINMEA lib 2018-06-09 17:54:18 -06:00
Alan Carvalho de Assis
6aad29e67d apps/gpsutils/minmea: Include wchar.h in minmea.c file to fix wint_t error 2018-06-09 17:45:01 -06:00
Gregory Nutt
301fe2817c Merge branch 'master' of bitbucket.org:nuttx/apps 2018-06-08 07:26:19 -06:00
Masayuki Ishikawa
67e6e330a8 Merged in masayuki2009/nuttx.apps/taskset_command (pull request #140)
apps/system/taskset: Add taskset command for SMP systems

This command can be used to retrieve or set a process's CPU affinity.
For example,

  nsh> taskset -p 4
  pid 4's current affinity mask: 2

  nsh> taskset -p 3 4
  pid 4's current affinity mask: 3

  nsh> taskset -p 1 busyloop &

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

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2018-06-08 13:24:03 +00: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