Commit Graph

1489 Commits

Author SHA1 Message Date
Xiang Xiao
9a27d4a697 Makefiles: Remove .PRECIOUS if Makefile doesn't touch libapps. 2019-10-01 11:48:55 -06:00
Gregory Nutt
13667a2f66 examples/romfs: Remove romfs_testdir.h. That file is regenerated whenever the example is built and so should not be in the repository. 2019-10-01 07:38:48 -06:00
Nathan Hartman
b2a3ba57ff Fix typos 2019-09-11 08:59:08 -06:00
ugusto Fraga Giachero
b3057b52ef examples/pwm/pwm_main.c: Update the pwm header path. 2019-09-02 08:01:14 -06:00
Nathan Hartman
3a75edca20 Fix minor typo/copy-paste: 'will be use when'->'will be used when' 2019-08-23 11:59:28 -06:00
Gregory Nutt
ac61c18fcc Move apps/builtins/builtin_forindex.c to nuttx/libs/libc/builtin since it is required by kernel logic as well. Other changes account for movement of builtin.h from nuttx/include/nuttx/binfmt/built.h to nuttx/include/lib/builtin.h. 2019-08-23 09:12:45 -06:00
Manuel Stühn
88d47e469f Merged in manuelstuehn/nuttx-apps/feature/bsd-portable (pull request #190)
change all occurences of /bin/(ba)sh to /usr/bin/env bash which appears more portable

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-08-10 17:16:33 +00:00
Gregory Nutt
e6ba3ccff8 Update comments, README's, etc. to reflect changes to nuttx/boards directory reorganization. 2019-08-09 08:40:22 -06:00
Gregory Nutt
dd36f7ca4d Fix paths in README.txt files which have changed due to the restructuring of nuttx/boards directory. 2019-08-05 10:22:56 -06:00
Gregory Nutt
2a8dccb75d Change name configs/ to boards/ in comments, Documentation, Tools, etc. 2019-08-05 07:33:16 -06:00
Gregory Nutt
eef399b369 apps//examples/uid/uid_main.c: Corrections/updates from futher testing. 2019-08-04 14:38:07 -06:00
Gregory Nutt
1fc73b2d45 apps/examples/uid: Demo used to verify PASSWD and GROUP interfaces. 2019-08-04 08:54:08 -06:00
Nathan Hartman
d6a3beadfb Remove 'executable' bit on several files 2019-08-01 14:19:02 -06:00
Gregory Nutt
b3c705d70c examples/dac/dac_main.c: Fix warning found in build testing. Also lots of coding standard violations. 2019-07-28 17:52:28 -06:00
Gregory Nutt
9e1cda95fb Cosmetic fixes to spacing. 2019-07-27 08:49:34 -06:00
Nathan Hartman
3a21b0b222 apps/examples/webserver/webserver_main.c: Init network & run forever only if not builtin app. Infer from CONFIG_NSH_BUILTIN_APPS if we are a NSH built-in app or not. If built-in app (CONFIG_NSH_BUILTIN_APPS defined) then we assume network is initialized prior to webserver starting and we exit on webserver failure. If running standalone (CONFIG_NSH_BUILTIN_APPS is undefined) then behavior is unchanged: webserver initializes network and runs forever. 2019-07-26 11:04:05 -06:00
Alan Carvalho de Assis
d868e2f726 apps/examples/chrono: Add chronometer apps example. 2019-07-17 12:48:39 +02:00
Masayuki Ishikawa
b12b61df69 Merged in masayuki2009/nuttx.apps/fix_webserver (pull request #179)
apps/examples/webserver: Fix to compile with CONFIG_NETUTILS_HTTPD_SENDFILE=y

Also, in this PR, some configs such as CONFIG_NETUTILS_HTTPDFILESTATS
can be selected by menuconfig.

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

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-07-03 12:20:29 +00:00
Gregory Nutt
18a8032c4d examples/vl53l1x: Remove. The driver does not compile. 2019-06-29 06:28:40 -06:00
Juan Flores
94ac7dceab examples/vl53l1x: Add VL53L1X example demo. 2019-06-28 15:07:13 -06:00
Alan Carvalho de Assis
656157399d industry/abnt_codi, include/industry/abnt_code.h, examples.abntcodi: Adds support for ABNT CODI library. This is an energy meter protocol used in Brazil. 2019-06-15 08:38:04 -06:00
Gregory Nutt
a38c85dbaa Fix a warning found in build testing. 2019-05-25 12:11:12 -06:00
Gregory Nutt
dd35a7cacc apps/: Removed all references to CONFIG_DISABLE_POLL. The standard POSIX poll() can not longer be disabled. 2019-05-21 19:08:12 -06:00
Gregory Nutt
73ab5e2750 Remove some cases in Kconfig files of 'comment' with 'depends on'. That is probably a good practice. I removed these because (1) is not done elsewhere so it is just an inconsistency, and (2) the HTML generation tool at nuttx/tools/kconfig2html.c would need to be extended to parse that case. I don't have time to do that now. 2019-05-19 09:49:50 -06:00
Gregory Nutt
e76bfbb74e Squashed commit of the following:
apps/graphics/twm4nx:  Other toolbar buttons need to be disabled while resizing.  Lots of problems if you decide to iconify or exit while resizing.  CResize now disables all buttons except for the RESIZE button while resizing.

    apps/graphics/twm4nx:  Add an event and logic to support notification of changes in the size of a window to NxTerm.

    Various updates to adapt to change in boardctl() interface.

    apps/graphics/twm4nx:  Correct an error in the NxTerm resize logic

    apps/graphics/twm4nx:  Update debug output when failures to send a message occur.  The returned value of -1 is not interested, need to show the errno value instead.

    apps/graphics/twm4nx:  Correct the maximum size of a message.  Recent changes caused message send failures because a message exceed that previous maximum size.

    apps/graphics/twm4nx:  Fix routing of redraw events.
2019-05-16 13:51:57 -06:00
Gregory Nutt
8f5944c4a8 Squashed commit of the following:
include/ and netutils/:  Remove references to CONFIG_DISABLE_SIGNALS.  Signals can no longer be disabled.
    nshlib/:  Remove references to CONFIG_DISABLE_SIGNALS.  Signals can no longer be disabled.
    system/:  Remove references to CONFIG_DISABLE_SIGNALS.  Signals can no longer be disabled.
    testing/:  Remove references to CONFIG_DISABLE_SIGNALS.  Signals can no longer be disabled.
    examples/:  Remove references to CONFIG_DISABLE_SIGNALS.  Signals can no longer be disabled.
2019-04-29 14:53:38 -06:00
raiden00pl
75aca388a4 Merged in raiden00/apps/cjson (pull request #175)
netutils: support for the current version of cJSON

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-04-28 12:34:20 +00:00
raiden00pl
0a6726bc3e Merged in raiden00/apps (pull request #174)
Small fixes

examples/pca9635/pca9635_main.c: fix compilation

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-04-28 11:33:21 +00:00
Gregory Nutt
ad7f76f3a8 apps/examples/pwfb: Fix more cursor-related problems. Currently cursor is presented but the system dies due to memory corruption. 2019-04-10 15:00:36 -06:00
Gregory Nutt
fa05ad35e1 app/examples/pwfb: Add options to reduce the number of windows. This is helpful during debug to reduce the complexity. 2019-04-10 12:33:31 -06:00
Gregory Nutt
99382df286 apps/examples/pwfb: Extend example to verify software cursors. Untested on initial commit. 2019-04-10 09:24:08 -06:00
Matthew Koch
f09bc1a01b Squashed commit of the following:
Add note to file header of MIT-licensed code
    Compat for older kconfig
    Fixup OOB build experience
    Apply coding standards to imported code
    Upgrade littlevgl to 5.3 - demo
    Upgrade littlevgl to 5.3
2019-04-08 06:57:42 -06:00
Gregory Nutt
61eb262142 Various graphics apps: If CONFIG_VNCSERVER=y, don't vnc_default_fbinitialize() directly. That is a violation of the portable POSIX interface. Instead, call boardctl(BOARDIOC_VNC_START);. 2019-04-02 07:06:06 -06:00
Gregory Nutt
11b6bc9447 exmamples/, graphics/NxWidgets: Update NX window clients so that they use the new 'event' callback (vs. the obsoluted 'blocked' callback). 2019-03-25 13:01:52 -06:00
Matthew Koch
fab0ac6e82 Merged in mjkoch/apps/fb (pull request #172)
Add some awareness of overlays to apps/examples/fb

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-03-25 17:09:25 +00:00
Gregory Nutt
25528de5c7 examples/nxhello/nxhello_main.c: Fix trivial typo in printf statement. 2019-03-22 14:47:22 -06:00
Gregory Nutt
e26d78f40a This commit adds apps/examples/pwlines, another test of the pw-window framebuffer lgoic.
Squashed commit of the following:

    apps/examples/pwlines:  The example is complete and verified.

    apps/examples/pwlines:  A little more progress between distractions.

    apps/examples/pwlines:  Beginning of another per-window framebuffer test/examples.
2019-03-20 12:36:46 -06:00
Gregory Nutt
1a6c6e2eb4 Minor typo in README 2019-03-19 12:17:30 -06:00
Gregory Nutt
431333ad16 apps/examples/nxlines/nxlines_bkgd.c: Fix a bad, copy-paste comment. 2019-03-19 08:17:14 -06:00
Gregory Nutt
1bdb63b742 apps/examples/pwfb: Add a toolbar to the example windows. 2019-03-18 12:14:49 -06:00
Gregory Nutt
6513d9107c Update a README file. 2019-03-18 08:15:58 -06:00
Gregory Nutt
16b55d05be apps/examples/pwfb/pwfb_main.c: Fix typo in printf text 2019-03-17 14:39:04 -06:00
Gregory Nutt
13555f30f9 Squashed commit of the following:
apps/examples/pwfb: Solve a race condition by changin some relative priorities.  Also removes a delay kludge that used as a workaround.

    apps/examples/pwfb:  Add rate control.  Examples becomes unstable at high update rates.
2019-03-17 13:51:03 -06:00
Gregory Nutt
11d7ac7abe apps/examples/pwfb/pwfb_motion.c: Trivil spacing fix. 2019-03-17 11:38:59 -06:00
Gregory Nutt
c534f38358 apps/examples/pwfb/pwfb_events.c: Trivial typo in printf() 2019-03-16 17:36:25 -06:00
Gregory Nutt
51befb3fa7 apps/examples/pwfb/pwfb_main.c: Temporarily work around a race condition by adding a delay. 2019-03-16 15:54:08 -06:00
Gregory Nutt
9cd5d5c9ac apps/examples/pwfb: Change b32_t's to b16_t's; don't need so much precision. Some improvements to motion. Add VERBOSE debug output. Still lots of bugs. 2019-03-16 14:14:20 -06:00
Gregory Nutt
98b4394c9d This commit adds a test example at apps/examples/pwfb that will be used for testing the per-window framebuffer feature. The test does not work correctly yet.
Squashed commit of the following:

    apps/examples/pwfb:  Fixes compile and early debug issues.

    apps/examples/pwfb:  Code complete!

    apps/examples/pwfb:  Flesh out the motion logic.

    apps/examples/pwfb:  Add an example/test case that will, eventually be used verify the per-window framebuffer logic.  This is not even code complete at this point.
2019-03-16 12:27:45 -06:00
Gregory Nutt
d33ce2c3ae graphics: nx_openwindow() and nxtk_openwindow() now accept an addtional 'flag' parameter. This argument is not used at present but will, eventually enable a RAM backed, per-window framebuffer. 2019-03-13 12:33:13 -06:00
Gregory Nutt
e063e93f77 apps/examples/nxterm: NxWM passed the size of the NxTK sub-window but nxterm example passed the size of the complete NxTK window. They must be made consistent. 2019-03-09 13:17:22 -06:00
Gregory Nutt
e4e00f716f apps/examples/sx127x_demo/Kconfig: Fix misplaced 'if' 2019-03-07 18:08:31 -06:00
Alan Carvalho de Assis
c019c9d7af apps/examples/modbusmaster/mbmaster_main.c: eMBMasterRegHoldingCB cannot be static. 2019-03-07 16:11:45 -06:00
Gregory Nutt
53e6f4bf13 apps/examples/nxterm, graphics/NxWidgets: Replace illegal direct calls to nxterm_redraw() and nxterm_kbdin() with new boardctl() calls. 2019-03-06 15:23:02 -06:00
Gregory Nutt
6529a8444a apps/examples/nxterm: Most configuration options were not available in the Kconfig file. 2019-03-06 12:52:22 -06:00
Gregory Nutt
061b4338c9 apps/examples/nxterm and graphics/NxWidgets/nxwm: Replace direct calls to nxtk_register with legal, indirect calls via boardctrl(BOARDIOC_NXTERM). Replace calls to (deleted) nxterm_unregister(). The correc way to delete a driver is by unlink'ing it. 2019-03-06 10:53:13 -06:00
raiden00pl
81c7bdd2a1 Merged in raiden00/apps/lora (pull request #170)
examples: add sx127x demo

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-02-25 17:00:11 +00:00
Gregory Nutt
9c05f6540b Some updates due to NuttX renaming: CONFIG_BOARD_INITIALIZE is not CONFIG_BOARD_LATE_INITIALIZE; board_initialize() is now board_late_initialize(). 2019-02-18 13:16:23 -06:00
Michał Łyszczek
5a1fdaae54 apps/examples/ini_dumper: New example program. ini_dumper is example program that dumps content of ini file in pretty ascii table. It is using inih ini library in fsutils/inih. 2019-02-18 07:44:32 -06:00
Michał Łyszczek
c8106558d1 app/sexamples/embedlog: This example program presents most usefull features of embedlog library and how to use them. 2019-02-15 07:24:29 -06:00
Gregory Nutt
b2f46360de apps/: Remove/replace all conditional logic based on CONFIG_NSOCKET_DESCRIPTORS == 0. That value is always greater than zero now. In places just replace with #ifdef CONFIG_NET. 2019-02-11 16:23:55 -06:00
Gregory Nutt
9db029e318 The file system can no longer be disabled. Remove all conditional logic based on CONFIG_NFILE_DESCRIPTORS==0 2019-02-11 13:10:10 -06:00
Gregory Nutt
43e79ac329 Update for corrected name of standard header file. Should be dlfcn.h, not dllfcn.h. I am surprised no one ever noticed before now. 2019-02-09 14:10:16 -06:00
Alan Carvalho de Assis
87f42accc6 apps/eamples/modbusmaster: Add Simple Modbus master example. This example only supports Read/Write HoldingRegisters, but it is easy to extend it to support Read/Write Input/Coils/etc. Originally creatd bey Vytautas in 2016 and updated with minor fixes for this commit. 2019-02-02 08:17:36 -06:00
Xiang Xiao
ff54c47e64 Follow up the kernel signal-related change in:
examples/oneshot/oneshot_main.c:
  examples/alarm/alarm_main.c:
  examples/ajoystick/ajoy_main.c
  examples/djoystick/djoy_main.c
  examples/buttons/buttons_main.c
  examples/zerocross/zerocross_main.c
  graphics/traveler/src/trv_input.c
  graphics/ft80x/
2019-01-27 09:48:29 -06:00
Gregory Nutt
def2c19c68 testing/cxxtest: Move examples/cxxtest to testing. 2019-01-24 15:05:16 -06:00
Gregory Nutt
60dc0a8f2b testing/: Move all file system tests from examples/ to testing/ (fstest, nxffs, smart, smart_test). 2019-01-24 14:44:54 -06:00
Gregory Nutt
b71f6d07ac apps/testing/smp: Move apps/examples/smp to apps/testing/smp 2019-01-23 14:21:13 -06:00
Ken Pettit
c776901ac2 apps/examples/pdcurses: Minor fixes to examples/pdcurses apps to support multi-threading, cleanup RAM, etc. 2019-01-05 13:28:06 -06:00
Alan Carvalho de Assis
25c0387c44 apps/examples/battery: Add Battery Charger Monitor Example 2019-01-04 12:15:05 -06:00
Gregory Nutt
0c615ed586 Fix a few typos. 2018-12-27 08:48:52 -06:00
Masayuki Ishikawa
9b548e8ea2 Merged in masayuki2009/nuttx.apps/add_dep_to_smp (pull request #162)
apps/examples/smp: Add dependency on SMP in Kconfig

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

Approved-by: GregoryN <gnutt@nuttx.org>
2018-12-25 14:15:16 +00:00
Gregory Nutt
1ea316b46c apps/testing: Move apps/examples/ostest to apps/testing/ostest. 2018-12-12 16:37:38 -06:00
Alan Carvalho de Assis
7ddbe8c235 Various initialization functions in configs/: Change /dev/slcd to /dev/slcd0 for consistency 2018-11-25 14:01:37 -06:00
Gregory Nutt
e88a529010 From patch attached to nuttx/ Bitbucket Issue #136 from Vlado Vidovic:
The patch provided in issue 135, which adds support for HTTP Chunked Encoding, covers all paths in the webserver app except CGI callbacks. As a result, if a page being served happens to use CGI, it could generate stream content that does not comply with HTTP Chunked Encoding.

The patch attached amends the webserver app's CGI callbacks to use the HTTP Chunked Encoding sender function instead of using send() directly.
2018-11-23 17:29:07 -06:00
Gregory Nutt
f5e399670f apps/examples/webserver/Kconfig: The webserver "app" allows for DHCP client to be enabled. However, the Kconfig infrastructure does not contain EXAMPLES_WEBSERVER_DHCPC config.
Based on patch from "Anonymous" attached to Bitbucket Issue #130
2018-11-08 18:48:28 -06:00
wangyanjiong
bd86d9c8b8 apps/examples/gpio: Align with gpio driver update 2018-11-08 07:50:42 -06:00
anchao
3432acf7c4 apps/: Rename BINFMT_EXEPATH to LIB_ENVPATH. 2018-11-08 07:31:52 -06:00
Gregory Nutt
aeabc12536 apps/examples/mld: Fix incorrect format of IPv6 Mulitcast address. This resolves the UPD sendto() problem of commit 09691dd48f that was being blamed on the UDP stack. Nope.. cockpit error. 2018-11-07 18:19:09 -06:00
Xiang Xiao
cddfda99f0 apps/netutils/pppd: Refine and fix pppd code.
Reviewers note:  Reviewing the changes I also see that these file did not follow the NuttX codings standard.  I ran all files through nuttx/tools/indent.sh, manually reviewed all files for coding style issues.  I also changed occurrences of non-standard types u8_t, u16_t, and u32_t to the standard uint8_t, uint16_t, and uint32_t.
2018-11-07 12:43:42 -06:00
Xiang Xiao
c1f0653c85 apps/netutils/chat and apps/examples/chat: 'constify' chat variables and parameters 2018-11-07 11:55:09 -06:00
Gregory Nutt
09691dd48f apps/examples/mld: Add logic to set up the routing table before attempting to send the multicast packet. Still some problem, probably in NuttX stack: Still reports that the the multicast address is unreachable. 2018-11-07 10:43:03 -06:00
Gregory Nutt
dc02239347 apps/examples/mld/mld_main.c: Improve test by periodically dumping the content of /proc/net/mld (if available). 2018-11-06 10:41:01 -06:00
Daniel P. Carvalho
bc4735ce2a apps/examples/ina226: Added INA226 example 2018-11-05 16:45:00 -06:00
Gregory Nutt
74ac55308c examples/mld/mld_main.c: ifdef out some bogus logic in the test. 2018-11-05 09:39:55 -06:00
Gregory Nutt
44e2505038 apps/examples/mld: Add a test of MLD. Not much of a test, but it does provide a mechansim for some low-level bring-up operations. 2018-11-04 18:21:32 -06:00
Alan Carvalho de Assis
47e647c56a examples/mlx90614/mlx90614_main.c: Include support to change device address on mlx90614 2018-11-02 07:07:36 -06:00
Gregory Nutt
a26a7f9767 apps/netutils/netlib and apps/examples/igmp: Adapt to use the corrected, semi-standard version of struct ip_msfilter. 2018-10-29 06:51:56 -06:00
Alan Carvalho de Assis
3a4faf944a apps/examples/mlx90614: Add mlx90614 test example 2018-10-28 16:04:15 -06:00
Gregory Nutt
a579bab48a apps/system/progmem: Remove this utility. It makes illegal direct calls into the OS. 2018-10-19 11:44:41 -06:00
Gregory Nutt
f7895ef681 apps/examples/fstest: Add configuration option to customize stack size. Detect when the media is full and stop writing files. Report total file size. 2018-09-29 11:52:39 -06:00
Gregory Nutt
6aacb3e03f apps/examples/fstest: Fix coding error in last commit. 2018-09-29 07:47:46 -06:00
Gregory Nutt
4e6b356123 apps/examples/fstest/Kconfig: SPIFFS GC and integrity check option interferes SPIFFS. Appears to corrupt the file system. Now marked EXPERIMENTAL. 2018-09-28 20:07:40 -06:00
Gregory Nutt
a1be83cda9 apps/examples/fstest: Add logic to dump logic content of SPIFFS 2018-09-28 11:27:01 -06:00
Gregory Nutt
3abd6f2ac8 apps/examples/fstest: Fix a situation where a file system under test could cause the fstest to get stuck in an infinit loop. 2018-09-27 19:34:32 -06:00
Gregory Nutt
65d6e8871c apps/examples/fstest: Call statfs() and show state of file system on each loop. 2018-09-27 17:01:10 -06:00
Gregory Nutt
3ba19b0d9a examples/fstest: For SPIFFS, add garbage collection and file system integrity IOCTL calls. This was to avoid running out of FLASH space while running the fstest (ENOSPC=28). However, it does not work.. still runs out of memory. 2018-09-27 12:28:33 -06:00
Gregory Nutt
4bbfdbb9fa nshlib/, examples/: Update to show newer file system object types returned by stat(). 2018-09-22 13:24:24 -06:00
Eunbong Song
525e52ff70 apps/examples/adc/Kconfig: CONFIG_BOARDCTL_ADCTEST does not exist anymore and should removed as a dependency. 2018-09-18 07:28:34 -06:00
Gregory Nutt
42e99d59ce Correct some network-related configuration variable names. All *_MTU defines were changes to *_PKTSIZE gut that was not reflected in apps/ 2018-09-14 07:06:06 -06:00
Gregory Nutt
c5edf40542 apps/examples/udpblaster: Add option to use poll() on output (only). Also picks up some fixes to various typographical errors. 2018-09-14 06:59:23 -06:00
Gregory Nutt
0d98f640b4 apps/exmples/tcpblaster: Select CONFIG_LIBC_FLOATINGPOINT automatically. Units in output are wrong: Not Kbps bus Kb/Sec. 2018-09-10 13:13:56 -06:00
Gregory Nutt
25c2756a82 apps/examples/tcpblaster: Add an option to use poll() to pace input or output. 2018-09-10 12:13:18 -06:00
Gregory Nutt
305278d1ae Application.mk: Fix some issues when building directories such as fsutils/mkfatfs that have not mainobj. In this case, the MAINSRC is undefined and it would generate a bad linker command line. 2018-09-04 13:00:03 -06:00
anchao
7f5d8dfffe apps/: Fix build break in case sama5d4-ek/elf configuration. Also fix a patch problem in mkromfsimg.h. 2018-09-04 08:05:31 -06:00
anchao
b5cfd93444 apps/: Modification to build system: Unified application compilation rules 2018-09-03 09:29:56 -06:00
Ouss4
316ffaddac apps/ examples/dhtxx: Example for the DHTxx sensor. 2018-09-01 07:49:06 -06:00
Gregory Nutt
7b5c2de165 examples/ostest/signest.c: Attempt to make the nested signal test compatible with the suspend/resume test. Some signals cannot be caught when the suspend/resume configuration is in place. 2018-08-30 13:37:37 -06:00
Gregory Nutt
8b5c28ecc2 apps/ostest/suspend.c: Add a small test for SIGSTOP, SIGCONT, and SIGKILL actions. Currently does not work! 2018-08-30 12:00:41 -06:00
ligd
93f1c13b62 apps/: Call BOARDIOC_FINALINIT after start-up script (or immediately after BOARIOC_INIT is there is no start-up script). 2018-08-28 15:44:03 -06:00
EunBong Song
1ee6fbf296 Merged in ebsong/fork-apps (pull request #152)
Master

* nettest: fix typo!

    NET_LOOPBACK -> CONFIG_NET_LOOPBACK

    Signed-off-by: EunBong Song <eunb.song@samsung.com>

* nettest: fix compilation error.

    Should enable NET_SETSOCKOPT for preventing compilation error.

    Signed-off-by: EunBong Song <eunb.song@samsung.com>

Approved-by: GregoryN <gnutt@nuttx.org>
2018-08-28 13:46:49 +00:00
Gregory Nutt
0d6c9b8fbd apps/examples/ustream: Fix a typo that generates a warning when CONFIG_BUILD_LOADABLE is selected. 2018-08-25 16:56:53 -06:00
Gregory Nutt
2ef04ff0a8 apps/examples/sotest and modules: With recent changes, LDLIBS is initialized to bad value, at least in certain contexts. 2018-08-24 16:24:58 -06:00
Xiang Xiao
5304ec5eec Replace all ASSERT calls to DEBUGASSERT 2018-08-24 06:19:35 -06:00
anchao
220653f21c Squashed commit of the following:
Author: anchao <anchao@pinecone.net>

     apps/, most main() function: Correct CONFIG_BUILD_LOADABLE usage
     Loadable apps/: Correct loadable symbol table generate
     apps/system/ubloxmodem:  Fix build break
     apps/examples/ostest: start restart/waitpid/user test from main loop
     apps/nshlib:  Expand reboot and poweroff commands to include a second, optional mode argument

    Author: Gregory Nutt <gnutt@nuttx.org>

     An attempt to fix build issues.  Does not work.
     apps/examples/ostest:  Fix some inappropriate renaming of static functions introduced with recent patches.
     apps/builtin/exec_builtin.c:  Fix a error introduced by recent comments.  Found in build testing.

    Author: anchao <anchao@pinecone.net>

     apps/builtin/exec_builtin.c:  Try posix_spawn if builtin apps do not have have an entry point.
     apps/Application.mk: introduce MODULE config to simplify tristate(m)
     apps/nsh:  Change the nuttx shell module type to tristate
     apps:  Add loadable application support
     script/mksymtab:  Generate symbol table name by default
     apps/builtin:  Allow loadable applications can register with apps/builtin.
2018-08-23 11:06:15 -06:00
Gregory Nutt
d7bdf06055 apps/examples/module/Makefile: Correct module example build. Change to LDLIBs were causing a failure due to a non-existent (any unnecessary) library in this case. 2018-08-23 10:58:55 -06:00
Gregory Nutt
2f982e9c77 Revert "Squashed commit of the following:"
This reverts commit 25b92edd9f.
2018-08-22 12:06:32 -06:00
Gregory Nutt
4d9b55e623 Revert "apps/examples/ostest: Fix some inappropriae renaming of static functions introduced with recent patches."
This reverts commit b0cefbf1c7.
2018-08-22 12:06:22 -06:00
Gregory Nutt
b0cefbf1c7 apps/examples/ostest: Fix some inappropriae renaming of static functions introduced with recent patches. 2018-08-22 10:40:17 -06:00
anchao
25b92edd9f Squashed commit of the following:
apps/builtin/exec_builtin.c:  Try posix_spawn if builtin apps do not have have an entry point.
    apps/Application.mk: introduce MODULE config to simplify tristate(m)
    apps/nsh:  Change the nuttx shell module type to tristate
    apps:  Add loadable application support
    script/mksymtab:  Generate symbol table name by default
    apps/builtin:  Allow loadable applications can register with apps/builtin.
2018-08-22 09:30:38 -06:00
anchao
9fe6d2e1c3 Remove illegal calls into OS to initialize BINFMT support. This must be moved to the board initialization logic within the OS. 2018-08-22 07:53:35 -06:00
Gregory Nutt
5d72cae1d9 apps/examples/tcpblaster: Fix names several configuration setting that were changed incorrectly in a recent commit. 2018-08-22 07:53:35 -06:00
Gregory Nutt
8de513e36b apps/system/nsh: Move apps/examples/nsh to apps/system/nsh. It has become so entrenched that it is hardly an example these days. May as well formalized it as a system task. 2018-08-18 09:04:43 -06:00
Gregory Nutt
064d4024e4 apps/examples/popen: Add a test of popen/pclose. apps/system/popen: Fix some errors found using the new popen/pclose test. 2018-08-17 14:25:33 -06:00
Juha Niskanen
2e3f1c69d1 apps/examples/usrsocktest: Fix build error, 'daemon' redeclared as different kind of symbol 2018-08-15 06:15:16 -06:00
Gregory Nutt
6d01988fe8 apps/examples/calib_udelay/Kconfig: Select CONFIG_LIBC_FLOATINGPOINT needed by calibration logic. 2018-08-15 06:06:40 -06:00
Juha Niskanen
ed13a3ae27 examples/calib_udelay: Add tool for calibrating CONFIG_BOARD_LOOPSPERMSEC 2018-08-14 06:45:16 -06:00
Gregory Nutt
a89f0e3a07 Add missing function names in function headers. 2018-08-13 15:52:59 -06:00
Gregory Nutt
a57610c2c4 Remove trailing spaces at the end of lines. 2018-08-13 07:47:26 -06:00
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