Commit Graph

1689 Commits

Author SHA1 Message Date
Xiang Xiao
dcc620e6b8 Kconfig: Change !BUILD_PROTECTED && !BUILD_KERNEL to BUILD_FLAT
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-29 07:23:51 -06:00
Xiang Xiao
7da4a34aac examples: Remove all '#undef __KERNEL__' from source code
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-28 08:58:14 -06:00
liuhaitao
e8b5c47eb8 examples/unionfs: clean up the residual files after 'make distclean'
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-04-28 13:31:22 +08:00
Xiang Xiao
3bd2bc04b5 examples/unionfs: Remove [a|b]testdir.h in distclean
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-25 20:38:04 -06:00
Gregory Nutt
7b2e06b674 Fix errors from DEFAULT_TASK_SIZE change
There were several places where default sector and buffer sizes of 2048 were changed to DEFAULT_TASK_STACKSIZE.  This is not correct.  This was noted by Xiao Xiang.
2020-04-25 16:13:28 -03:00
Alin Jerpelea
c9eaf0beaa examples: i2sloop: nxstyle fixes
nxstyle fixes for i2sloop exaple

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2020-04-21 16:41:51 -06:00
Alin Jerpelea
3cdb81077b examples: i2schar: nxstyle fixes
nxstyle fixes for i2schar exaples

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2020-04-21 16:41:51 -06:00
Xiang Xiao
0c84e22aaf example: Remove all APPNAME from Makefile
which doesn't use anymore

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-19 10:29:34 -06:00
Xiang Xiao
4431d770b4 .gitignore: Add more entries found during prcheck testing
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-19 10:29:34 -06:00
Xiang Xiao
b813944a7a example/nettest: tcpclient and tcpserver to .gitignore
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-19 21:48:38 +08:00
YAMAMOTO Takashi
1b572ff169 Use MODULESTRIP where appropriate 2020-04-17 14:43:33 +08:00
Qi Huang
5018ee264c graphics/littlevgl: Fix lvgl internal warning with patch
examples/lvgldemo: Fix build warning with specific config

Signed-off-by: Qi Huang <huangqi3@xiaomi.com>
2020-04-16 19:06:05 +08:00
liuhaitao
b8dc15f646 examples/thttpd: align to elf/posix_spawn exmaples to fix depend build warning
Build warning logs as below:
arm-none-eabi-gcc: warning: ./hello/Makefile: linker input file unused because linking not done

Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-04-15 11:39:15 -03:00
Qi Huang
771811c1d7 examples/lvgldemo: Fix nxstyle
Signed-off-by: Qi Huang <huangqi3@xiaomi.com>
2020-04-15 11:38:24 -03:00
Qi Huang
2bb4cbf9ca examples/littlevgl: Add missing btn event handler
Signed-off-by: Qi Huang <huangqi3@xiaomi.com>
Change-Id: I4048fbd4907e465fe8f3a1a57c8ff830730a5bc3
2020-04-15 11:38:24 -03:00
Qi Huang
94b8dbe7aa examples/lvgldemo: Port all demos to LVGL V6.1.2
Signed-off-by: Qi Huang <huangqi3@xiaomi.com>
Change-Id: Ie139af71e88d887bffefcd9b97977124c5a9e1c3
2020-04-15 11:38:24 -03:00
Qi Huang
13606dc253 apps/examples/lvgldemo: Port new simple demo from LVGL V6.1.2
Signed-off-by: Qi Huang <huangqi3@xiaomi.com>
Change-Id: I1051edc15b6f66ce34d2f813964e0e8630ec351f
2020-04-15 11:38:24 -03:00
Qi Huang
b7e96b473d apps/examples/lvgldemo: Update the lvgl init procedure
Signed-off-by: Qi Huang <huangqi3@xiaomi.com>
Change-Id: I36d250d7839a86d486dcb8f720fcf12f9b954327
2020-04-15 11:38:24 -03:00
Qi Huang
1fa30e59d3 apps/examples/lvgldemo: Port tp_cal.c for LVGL V6.1.2
Signed-off-by: Qi Huang <huangqi3@xiaomi.com>
Change-Id: I1fead13274822276e08d3f54016b079b174a1544
2020-04-15 11:38:24 -03:00
Qi Huang
25876e8222 apps/examples/lvgldemo: Update fb flush callback for LVGL V6.1.2
Signed-off-by: Qi Huang <huangqi3@xiaomi.com>
Change-Id: I72a6ff628f2ea2b0b505e444c84b266ba3a28d87
2020-04-15 11:38:24 -03:00
Qi Huang
20f3db7317 apps/examples/lvgldemo: Update touchpad read callback for LittleVGL V6.1
Signed-off-by: Qi Huang <huangqi3@xiaomi.com>
Change-Id: I8df8ff81832ce651a4c2678d534a6aeb85cff6a7
2020-04-15 11:38:24 -03:00
Gregory Nutt
58085e5983 Run nxstyle against files modified in previous commit. 2020-04-12 19:17:49 +01:00
Gregory Nutt
f95d753759 Fix warnings noted in PR build checks.
userfs_main.c:547:7: warning: variable 'ret' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
      if (*relpath == '\0')
          ^~~~~~~~~~~~~~~~
    userfs_main.c:564:10: note: uninitialized use occurs here
      return ret;
             ^~~
    userfs_main.c:547:3: note: remove the 'if' if its condition is always false
      if (*relpath == '\0')
      ^~~~~~~~~~~~~~~~~~~~~
    userfs_main.c:543:10: note: initialize the variable 'ret' to silence this warning
      int ret;
             ^
              = 0

    test_motor.c:1068:14: warning: explicitly assigning value of variable of type 'float' to itself [-Wself-assign]
      expected_e = expected_e;
      ~~~~~~~~~~ ^ ~~~~~~~~~~
2020-04-12 19:17:49 +01:00
Gregory Nutt
3e73991857 nxstyle fixes for PR 170 2020-04-11 20:32:53 +01:00
Gregory Nutt
05f2253a33 Remove CONFIG_CAN_PASS_STRUCT
This is the companion to PR #766.  It removes the CONFIG_CAN_PASS_STRUCT option as recommended by Issue #620

NuttX PR #766 depends on PR being in place but not vice versa.  This PR should be merge-able without #766 and then PR #766 should also pass its checks.
2020-04-11 20:32:53 +01:00
Ouss4
d7df165c45 examples/udp: When a host PC is used, take its implementation of hton/ntoh functions. 2020-04-03 18:09:02 -06:00
raiden00pl
dd95e35787 examples/dsptest: fix nxstyle issues 2020-04-03 22:23:23 +01:00
YAMAMOTO Takashi
97b439f180 examples/udp: Avoid using non-standard s6_addr16
Also, fixes endian issues.
2020-04-02 11:39:59 +01:00
YAMAMOTO Takashi
d5ec9f91ae examples/udp: Avoid common symbols 2020-04-02 11:39:59 +01:00
YAMAMOTO Takashi
d55401d3fc examples/udp: Avoid conflicts with host OS definitions 2020-04-02 11:39:59 +01:00
YAMAMOTO Takashi
d79de16657 examples/udp: Appease nxstyle errors 2020-04-02 11:39:59 +01:00
Ouss4
5e245cf34b examples/tcpblaster: When a host PC is used, take its implementation of hton/ntoh functions. 2020-03-31 14:35:57 +08:00
YAMAMOTO Takashi
326c80db72 tcpblaster: Appease nxstyle complaints 2020-03-30 02:12:02 -05:00
YAMAMOTO Takashi
7e6e19d80c tcpblaster: Fix build on macOS
s6_addr is in standard. s6_addr16 is not.
See RFC 2553.
2020-03-30 02:12:02 -05:00
YAMAMOTO Takashi
5f91364d44 tcpblaster: Avoid conflicting with host OS definitions 2020-03-30 02:12:02 -05:00
YAMAMOTO Takashi
e8b0c903bc examples/udpblaster: Fix some nxstyle errors 2020-03-28 11:56:44 -05:00
YAMAMOTO Takashi
60378318d3 udpblaster: Fix build on macOS
s6_addr is in standard. s6_addr16 is not.
See RFC 2553.
2020-03-28 11:56:44 -05:00
YAMAMOTO Takashi
4ac7744c2e Appease nxstyle complaints 2020-03-28 10:21:48 -05:00
YAMAMOTO Takashi
cf30257f1c examples/udpblaster: Avoid conflicts with host OS definitions 2020-03-28 10:21:48 -05:00
YAMAMOTO Takashi
c9c1d2bbc6 Change the default of stack size configs to DEFAULT_TASK_STACKSIZE
Where:
 * Under examples and testing
 * And the default value is less than 2048

Using a bit more memory for examples and tests should not
be a critical problem.
2020-03-27 02:43:11 -05:00
YAMAMOTO Takashi
35933d8131 examples: Replace hardcoded stack sizes to DEFAULT_TASK_STACKSIZE
Where the hardcoded values are less than 2048.
Using a bit more memory for examples should not be a critical problem.
2020-03-27 02:43:11 -05:00
YAMAMOTO Takashi
e7156be066 Change the defaults of stack size configs to DEFAULT_TASK_STACKSIZE
This commit changes only ones with the default 2048 and
leaves the others.
E.g. this leaves SYSTEM_RAMTEST_STACKSIZE, whose default is 1024.
I guess those need to be inspected one-by-one.
2020-03-27 02:43:11 -05:00
YAMAMOTO Takashi
c304624fab Replace "STACKSIZE = 2048" with CONFIG_DEFAULT_TASK_SIZE
For now, I left the following instances because it isn't
clear to me why they are using the different values.
Maybe they need one-by-one inspection.

    examples/igmp/Makefile:STACKSIZE = 1024
    examples/powerled/Makefile:STACKSIZE = 1024
    examples/powermonitor/Makefile:STACKSIZE = 768
    examples/relays/Makefile:STACKSIZE = 512
    examples/smps/Makefile:STACKSIZE = 1024
    graphics/screenshot/Makefile:STACKSIZE = 4096
    system/flash_eraseall/Makefile:STACKSIZE = 1024
    testing/cxxtest/Makefile:STACKSIZE = 4096
    testing/smart_test/Makefile:STACKSIZE = 4096
2020-03-27 02:43:11 -05:00
YAMAMOTO Takashi
2f7480d11b Use MODULECC/MODULELD when building modules 2020-03-27 01:01:30 -05:00
YAMAMOTO Takashi
9dca031f26 module: Appease nxstyle complaints 2020-03-26 18:46:13 +01:00
YAMAMOTO Takashi
e30177de4e sotest: Appease nxstyle complaints 2020-03-26 18:46:13 +01:00
YAMAMOTO Takashi
cc966d5414 module: Fix a printf format mismatch ("%s" vs int) 2020-03-26 18:46:13 +01:00
YAMAMOTO Takashi
4a4835030d sotest: Fix a printf format mismatch ("%s" vs int) 2020-03-26 18:46:13 +01:00
Xiang Xiao
f16a765cca
examples: Fix the parallel build break (#138)
1.Remove build target to avoid build and install run parallelly
2.Invoke the sub Makefile just before the parent source code compile
2020-03-23 11:40:44 -06:00
Xiang Xiao
1511403fdf Revert "Don't generate .depend anymore"
This reverts commit cc5ad09caa.
2020-03-22 23:09:40 -05:00
Xiang Xiao
f074d7f376 Makefile: let install depend on the target binary
to ensure the binary get built and install once
2020-03-22 22:42:13 +00:00
Xiang Xiao
258e014025 Revert "Ensure "build" before "install""
This reverts commit 404b330c25.
2020-03-22 22:47:16 +01:00
Xiang Xiao
8a7ea1695d Revert "examples/elf/tests: Ensure "build" before "install""
This reverts commit 2abf0f50e1.
2020-03-22 22:47:16 +01:00
Xiang Xiao
9394424b1e Revert "examples/sotest/lib: Fix dependency"
This reverts commit 0cb3712c19.
2020-03-22 22:47:16 +01:00
Xiang Xiao
cc5ad09caa
Don't generate .depend anymore 2020-03-22 18:15:21 +00:00
Xiang Xiao
6e3a9a2eda Call TESTANDREPLACEFILE instead of mv
To avoid the timestamp change even the content is same
2020-03-22 09:03:08 -06:00
Xiang Xiao
7caef179a2 Fix the typo error 2020-03-22 09:02:57 -06:00
Xiang Xiao
d614ee8efa
Strip the debug information if CONFIG_DEBUG_SYMBOLS isn't enable. 2020-03-22 14:46:58 +00:00
Gregory Nutt
da31673ddf Run nxstyle against all modified .c and .h files 2020-03-22 08:23:28 -05:00
Gregory Nutt
1a9444a68b Remove support for CONFIG_FS_WRITABLE and CONFIG_FS_READABLE 2020-03-22 08:23:28 -05:00
liuhaitao
54b375dc43 examples: Fix elf/module/posix_spawn sometimes parallel build errors at link time
It seems in the time window mksymtab.sh redirect to symtab.c, there is chance symtab.c
would also be built meantime. Then if built before symtab.c write done, link errors may
occur. So use rename and mv operation to reduce the possibility.

Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-03-21 20:46:58 +09:00
liuhaitao
b27d694de4 example/module: update SYMTAB_SRC dependency to fix FSROOT not populated
In parallel build, for example maix-bit:module config, it reports:
nm: 'a.out': No such file
This is caused by FSROOT not populated with chardev when symtab.c
generated. So update SYMTAB_SRC dependency to fix it.

Change-Id: I5bb5d17db41f3bba98ae70a2acdd2ec594736611
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-03-20 19:13:54 +09:00
liuhaitao
47c0df6ae6 Revert "examples: elf: Fix parallel build errors at link time"
This reverts commit 176fd27c8a.
2020-03-20 08:30:15 +09:00
liuhaitao
d7886374bc Revert "examples/posix_spawn: Fix parallel build errors at link time"
This reverts commit 73319a6968.
2020-03-20 08:30:15 +09:00
Masayuki Ishikawa
0e13730afd
Merge pull request #120 from liuguo09/posix_spawn_nightly_build_fix
examples/posix_spawn: Fix parallel build errors at link time
2020-03-19 08:20:44 +09:00
Gregory Nutt
80428f56e2 examples/slcd/slcd_main.c: Fix nxstyle issues. 2020-03-18 11:11:31 -06:00
Pierre-Olivier Vauboin
f17d89d085 examples/slcd: fix priv->fd that was used by slcd_flush before being set 2020-03-18 11:11:20 -06:00
liuhaitao
73319a6968 examples/posix_spawn: Fix parallel build errors at link time
During generating symtab.c, compile seqeuence would start with
incomplete symtab.c. This change will fix such a situation.

Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-03-13 11:33:42 +08:00
Masayuki Ishikawa
176fd27c8a examples: elf: Fix parallel build errors at link time
During generating symtab.c, compile seqeuence would start with
incomplete symtab.c. This change will fix such a situation.

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-03-11 20:53:37 -05:00
Masayuki Ishikawa
b1fd3ec8d8 examples: elf: Fix parallel build errors
NOTE: Apply the same logic as in examples/posix_spawn/Makefile

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-03-11 20:53:37 -05:00
YAMAMOTO Takashi
0cb3712c19 examples/sotest/lib: Fix dependency 2020-03-10 05:19:20 -05:00
Xiang Xiao
3398aad7eb examples/tcpblaster: Fix the nightly build warning
tcpblaster_server.c: In function 'tcpblaster_server':
tcpblaster_server.c:256:71: warning: passing argument 1 of 'localtime' from incompatible pointer type [-Wincompatible-pointer-types]
           strftime(timebuff, 100, "%Y-%m-%d %H:%M:%S.000", localtime (&curr));
                                                                       ^
In file included from tcpblaster_server.c:50:0:
/usr/include/time.h:123:19: note: expected 'const time_t * {aka const long int *}' but argument is of type 'struct timespec *'
 extern struct tm *localtime (const time_t *__timer) __THROW;
                   ^~~~~~~~~
tcpblaster_client.c: In function 'tcpblaster_client':
tcpblaster_client.c:230:71: warning: passing argument 1 of 'localtime' from incompatible pointer type [-Wincompatible-pointer-types]
           strftime(timebuff, 100, "%Y-%m-%d %H:%M:%S.000", localtime (&curr));
                                                                       ^
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-03-09 09:17:07 +01:00
liuhaitao
404b330c25 Ensure "build" before "install"
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-02-27 07:47:32 -03:00
liuhaitao
4c4d8b1c1c examples/elf: update elf_main.c dependency to fix parallel build break
Update elf_main.c depends on tests/symtab.c to make sure romfs.h exist
before compiling elf_main.c.

Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-02-26 10:24:05 -06:00
Bhindhiya
ae36b6f8a9 examples/ipforward: IP Header issue for IPv4 fixed
Also run modified .c file through tools/nxstyle
2020-02-26 07:48:34 -06:00
YAMAMOTO Takashi
2abf0f50e1 examples/elf/tests: Ensure "build" before "install" 2020-02-26 00:05:02 -06:00
Xiang Xiao
16dc851889 Revert "examples: usrsocktest: Fix errors in NoBlockRecv and BlockRecv tests"
This reverts commit 10c715d921.
2020-02-25 18:02:46 -03:00
YAMAMOTO Takashi
45bcfa8b2e examples/elf: Add a few make rules
To fix "don't know how to create tests/dirlist.h" make complaints.
2020-02-25 07:43:23 -06:00
liuguo09
2f23d2a602
examples/elf/tests: Correct symtab.c dependency to fix parallel build break
Correct symtab dependency from build to populate instead, or tests
subdirectory programs would be built twice which resulted in errors
as below:
arm-none-eabi-ld: hello++3.o: file not recognized: file truncated
2020-02-25 13:26:51 +01:00
archer
6751aa26a6
examles/netlink: Fix a typo that resulted in build breakage. 2020-02-25 13:17:51 +01:00
Masayuki Ishikawa
5d37c68a73 examples: discover: Use htonl() instead of HTONL() in discover_main.c
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-02-25 05:02:58 -06:00
Adam Feuer
5a10c0e8e7 tcpblaster reporting and docs improvements
- changed incorrect Kb to correct KB in program output
- added readme

Squashed commit of the following:

commit b81821fd788eb08ffdf5a3084ab3d128788b75da
Author: Adam Feuer <adam@starcat.io>
Date:   Mon Feb 24 16:58:29 2020 -0800

    formatting improvements

commit a70e7109dd90522e6d7f680790d80c9328a8ba9c
Author: Adam Feuer <adam@starcat.io>
Date:   Mon Feb 24 16:58:13 2020 -0800

    formatting improvements

commit c11a5b3c8ee38fe080d121db87b7d26c0baf9f93
Author: Adam Feuer <adam@starcat.io>
Date:   Sun Feb 23 17:03:22 2020 -0800

    remove printf debugging statement

commit 94bcaa89d2df326ed2b560e935d344932c46607d
Merge: fddb3ee4 d6604922
Author: Adam Feuer <adam@starcat.io>
Date:   Sun Feb 23 16:58:35 2020 -0800

    Merge branch 'master' into feature/tcpblaster-improvements

commit fddb3ee4ee9ba185f0f4e01c205620bbcb02e40e
Author: Adam Feuer <adam@starcat.io>
Date:   Sat Feb 22 16:29:51 2020 -0800

    fixed typo

commit d398d6f3803d81e849814548be9671ac33f08168
Author: Adam Feuer <adam@starcat.io>
Date:   Sat Feb 22 16:29:04 2020 -0800

    logging now has timestamp; improved configuration
2020-02-24 20:09:35 -06:00
Xiang Xiao
41d88f06e7 Run codespell -w with the latest dictonary again 2020-02-23 07:10:14 -06:00
Xiang Xiao
d660492289 Run codespell -w against all files
and fix the wrong correction
2020-02-22 14:41:36 -06:00
Masayuki Ishikawa
10c715d921 examples: usrsocktest: Fix errors in NoBlockRecv and BlockRecv tests
NOTE: Because sin_zero field is just a padding, so should be ignored.

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-02-21 00:56:49 -06:00
chao.an
f28eca9dbc Make.defs: Use complete include path 2020-02-19 12:56:10 -06:00
Xiang Xiao
eb8678cfeb Remove CONFIG_DEV_LOWCONSOLE from source code
Follow the nuttx side change
2020-02-18 13:13:29 -06:00
Xiang Xiao
569618220a Change CONFIG_CXX_NEWLONG to CONFIG_ARCH_SIZET_LONG
Follow up nuttx side change
2020-02-18 07:37:54 -06:00
Gregory Nutt
218d8c9fe2 examples/elf/tests/mutex/mutex.c: Fix typo in a previous PR. 2020-02-15 19:08:03 +01:00
Gregory Nutt
1056cce2b5 apps/examples/elf: Correct mount point configuration error.
If an external file system is used but is not mounted by the the ELF example, then a compilation error will occur.  This configuration problem has existed for a long time but was unmasked by a recent PR.  In the failure mode, CONFIG_EXAMPLES_ELF_FSTYPE would not be defined because it depends on CONFIG_EXAMPLES_ELF_FSMOUNT which is not defined.  The resulting mountpoint, MOUNTPT, would therefore be left in an invalid state.  Previous changes to conditional logic now allowed setenv() to run and to attempt to set the PATH variable to MOUNTPT, causing a compile time failure like this:

    CC:  elf_main.c
    elf_main.c: In function 'elf_main':
    elf_main.c:113:32: error: expected ')' before 'CONFIG_EXAMPLES_ELF_FSTYPE'
     #  define MOUNTPT      "/mnt/" CONFIG_EXAMPLES_ELF_FSTYPE
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~
    elf_main.c:364:18: note: in expansion of macro 'MOUNTPT'
       setenv("PATH", MOUNTPT, 1);
                       ^~~~~~~
    elf_main.c:364:3: error: too few arguments to function 'setenv'
       setenv("PATH", MOUNTPT, 1);
       ^~~~~~
    In file included from elf_main.c:47:
    D:\Spuda\Documents\projects\nuttx\master\nuttx-fork\include/stdlib.h:158:11: note: declared here
     int       setenv(FAR const char *name, FAR const char *value, int overwrite);
               ^~~~~~

This problem was found during manual build testing using configuration lx_cpu:nsh.
2020-02-15 18:06:43 +01:00
Gregory Nutt
1d8b738a2b apps/examples/elf: Resolve issue issue 63 2020-02-15 23:55:33 +08:00
YAMAMOTO Takashi
e5dd0b1eb9 mksymtab.sh: Avoid using find -executable
As it seems GNU-find only.  macOS doesn't have it.

-perm is in POSIX and should be more widely available.
2020-02-14 09:13:55 -06:00
YAMAMOTO Takashi
66e7590dd0 examples/elf: Don't bother to honor CONFIG_PATH_INITIAL
As we know where the binaries are, there's little point
to use CONFIG_PATH_INITIAL.
2020-02-14 18:38:07 +08:00
Gregory Nutt
44b8c9c5aa apps/examples/tcpblaster: Fix compile errors in loopback mode. 2020-02-10 21:05:49 +01:00
Masayuki Ishikawa
539d0854dd examples: elf: Fix warnings when compiled for RISC-V 64bit 2020-02-10 14:16:00 +08:00
Xiang Xiao
779197c63e Ensure all source code end with one and only one newline
by this command:
git ls-files -z | while IFS= read -rd '' f; do tail -c1 < "$f" | read -r _ || echo >> "$f"; done
2020-02-09 08:14:49 -06:00
Masayuki Ishikawa
bb3cd0a496 apps: elf: Fix stack corruption in task test
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-02-04 20:56:52 -08:00
YAMAMOTO Takashi
43a36996ca nettest: Avoid conflicts with host definitions 2020-02-04 09:36:50 -06:00
YAMAMOTO Takashi
bcc0f5c0a9 nettest: Avoid common symbols 2020-02-04 09:36:08 -06:00
Xiang Xiao
1d6fcfac13 Build system: Reference tools/define.sh through DEFINE macro 2020-02-03 15:09:33 -06:00
Gregory Nutt
724a34bd3b Run all files modified by pr45 through nxstyle. 2020-02-03 07:38:57 -06:00
Xiang Xiao
37135e5dfe telnetd should listen both IPv4 and IPv6 for the dual stack
Change-Id: Ic1c2878f2eda721ccdf667b0a634289c643f5220
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-02-03 07:17:22 -06:00
Xiang Xiao
1154735ca6 Refine the preprocess conditional guard style 2020-01-31 11:04:10 -06:00
Xiang Xiao
e0dcfa0c55 Remove extra whitespace from files (#43)
* Remove multiple newlines at the end of file
* Remove the white space from the end of line
2020-01-31 08:29:24 -06:00
patacongo
8c9663b6c1
apps/examples/userfs/userfs_main.c: Fix warning (#41)
Fixes warning:

    CC:  userfs_main.c
    userfs_main.c:182:3: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
       ufstest_truncate,
       ^
    userfs_main.c:182:3: note: (near initialization for ‘g_ufstest_ops.truncate’)

Co-authored-by: Gregory Nutt <gnutt@nuttx.org>
2020-01-30 18:58:03 +01:00
patacongo
ba6377078b
apps/testing/mm: Move from apps/examples/mm (#39) 2020-01-30 17:07:00 +01:00
Gregory Nutt
4e509c8659 Revert "examples: hello: Show CPU index when running in SMP mode"
Cannot call up_cpu_index() or any other nonstandard OS application interface.  This not only breaks the portable POSIX OS interface but also would break any PROTECTED or KERNEL mode SMP implementation.

If you want to do something like this in user space, the appropriate thing to do would be to extend prctl().  That is non-posix, but is at least Linux-like and will work in all build modes.

This reverts commit 715517b1a0.
2020-01-30 05:41:13 -06:00
Masayuki Ishikawa
715517b1a0 examples: hello: Show CPU index when running in SMP mode
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-01-30 09:23:12 +01:00
Ouss4
eb1af03259 examples/sendmail: Few fixes to make the example run on a local SMTP
server.
2020-01-25 16:39:21 -06:00
Gregory Nutt
72a934c6c2 Add configuration settings for apps/examples/sendmail.
The sendmail example hasn't been used in years.  I am not sure it was ever debugged.  It is so old that it still expects hand editted .config files.  As a result, all of the configuration settings were missing from the Kconfig file.

This commit adds the missing apps/examples/sendmail configuration settings so that the example at least builds.  I cannot test it because I have no smtp server that I am willing to spam.

This configuration also adds missing configuration dependencies and runs the C files in apps/examples/sendmail and apps/netutils/smtp through nxstyle.

This commit resolves an issue reported by surya prakash rased in the Google group:  https://groups.google.com/forum/#!topic/nuttx/idr-M164Y24
2020-01-24 19:07:54 -03:00
liuguo09
270b97190b Makefile: Fix more warning: jobserver unavailable: using -j1. Add '+' to parent make rule. (#27)
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-01-21 17:44:45 +01:00
liuguo09
50a86f9bc7 examples/posix_spawn: update dependency to fix parallel build break (#26)
In stm32f4discovery:posix_spawn and lc823450-xgevk:posix_spawn parallel build,
it failed since apps/examples/posix_spawn/filesystem/romfs/hello is not available
which is needed by examples/posix_spawn/filesystem/symtab.c.

Change-Id: I588317396f8e3ca4d69d4ec8db8ccad219207048
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-01-21 15:45:32 +01:00
liuhaitao
97fd133025 Add install dependency on chardev BIN to fix parallel build break
chardev bin may not availabe before make install in parallel build,
so add install dependency on chardev BIN here.

Change-Id: If28451ceeeed0a6463544d8c342871cecda5a057
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-01-20 08:16:34 -06:00
liuhaitao
02dbab7679 Makefile: Fix warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
Change-Id: I73d156f55bc82778c64defe5a8dd84bb478c9008
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-01-19 07:24:21 -06:00
Ouss4
de836fed72 examples/lis3dsh_reader/lis3dsh_reader_main.c: Make an infinite loop
look similair to the rest.
2020-01-16 13:39:56 -06:00
raiden00pl
77985058f3 examples/: Add simple HTS221, LSM303 and LSM6DSL examples #19 2020-01-16 20:24:32 +00:00
Xiang Xiao
db61c92100 Fix dhcpd #17
apps/netutils/dhcpd/dhcpd.c:  Fix unused const variable

dhcpd.c:273:29: warning: 'g_anyipaddr' defined but not used [-Wunused-const-variable=]
 static const uint8_t        g_anyipaddr[4] = {0, 0, 0, 0};

apps/netutils/dhcpd:  Make dhcpd interface configurable

apps/netutils/dhcpd:  Lease address directly if hit in address range

apps/netutils/netinit: Initialize dhcpc_state

update the addresses only on request success
2020-01-16 12:06:25 -06:00
Mateusz Szafoni
782a3d25a0 examples/sx127x_demo/sx127x_demo.c: RX/TX only if RX/TX enabled (#18) 2020-01-16 19:02:25 +01:00
Gregory Nutt
b2cd439b10 Remove unselectable CONFIG_NET_TCP_READHEAD dependencies.
NuttX commit 346336bb9e5c9199b82e34d08bf23dd1bc389460 make CONFIG_NET_TCP_READADHEAD unselectable and removed all references to CONFIG_NET_TCP_READHEAD from the the NuttX repositories.  However, there was no corresponding removal of CONFIG_NET_TCP_READHEAD from the apps/ repository.  As a result, there was logic that depended on the selection of CONFIG_NET_TCP_READHEAD that could never be enabled.

This was found during build testing using the configuration olimex-lpc1766stk/thttpd-binfs.  THTTPD was not being build fully because it had dependencies on CONFIG_NET_TCP_READHEAD.  There resulted int numerous new warnings and, finally, the error:

(.../apps.examples.thttpd.o): in function `thttp_main':
thttpd_main.c:(.text+0x104): undefined reference to `thttpd_main'
2020-01-15 11:16:17 -03:00
Alan Carvalho de Assis
921131895e Include the file name to open and the fail error number
Also fix issues reported by nxstyle
2020-01-12 09:49:12 -06:00
Xiang Xiao
857158451b Unify the void cast usage
1.Remove void cast for function because many place ignore the returned value witout cast
2.Replace void cast for variable with UNUSED macro

Change-Id: Ie644129a563244a6397036789c4c3ea83c4e9b09
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-01-02 23:21:01 +08:00
Gregory Nutt
3da8091d30 Include nuttx/symtab.h instead of nuttx/binfmt/symtab.h since symtab.h under binfmt folder is for internal use. 2019-12-10 08:39:22 -06:00
Gregory Nutt
e305592ce6 apps/examples/tcpblaster: Fix several problems with the host is the client and the target in the server. Basic problem was that the host did not know the IP address of the target server due to several bugs and build issues that only seemed to affect this configuration. 2019-12-08 17:11:07 -06:00
Xiang Xiao
0343ea1a1b examples/udpblaster/Makefile: change UDPBLASTER_PROGNAME to CONFIG_UDPBLASTER_PROGNAME to fix the compile error:
apps\include" -Dmain  udpblaster_target.c -o  udpblaster_target.o
<command-line>:0:6: error: expected identifier or '(' before numeric constant
udpblaster_target.c:196:5: note: in expansion of macro 'main'

int main(int argc, FAR char *argv[])
2019-12-02 08:19:07 -06:00
Gregory Nutt
9f1aa3c3dc apps//examples/netlink_route: Correct format when printing ARP table entries. 2019-11-28 16:28:41 -06:00
Gregory Nutt
3ebf71095e Remove all support for the ancient Pascal compiler and pcode interpreter. 2019-11-21 07:04:34 -06:00
Gregory Nutt
5c7c34f559 examples/netlink_route/netlink_route_main.c: Use options to disable individual NETLINK_ROUTE commands. 2019-11-12 10:20:26 -06:00
Gregory Nutt
449290c8da apps/examples/netlink_route: Add test/example of NETLINK_ROUTE 'get' opeations. apps/netutils/netlib: Fixes to NETLINK_ROUTE helpers found by testing with apps/examples/netlink_route. 2019-11-11 13:40:57 -06:00
Juha Niskanen
eaeb6cc105 nshlib/Kconfig: Add missing NSH_DISABLE_DMESG, typos. 2019-11-08 07:52:22 -06:00
Alin Jerpelea
25c59ccbfe apps/examples/charger: Simple charger example that will display on the console voltage and current values. 2019-11-04 07:29:02 -06:00
Alin Jerpelea
9675e55327 apps/examples/bmi160: Add bmi160 example app. This app will read the BM160 data and list it on the NSH console. 2019-11-04 07:28:14 -06:00
Gregory Nutt
0dde32fb43 nshlib/nsh_romfsetc.c and graphics/traveler/trv_romfs.c: Replace direct calls to romdisk_register() with indirect calls via boardioctl(BOARDIOC_ROMDISK). This not only fixes the violation of the portable POSIX OS interface, but also permits use of ROM disks in PROTECTED and KERNEL modes. There are still multiple illegal calls to romdisk_register() from code under apps/examples. These all must also be converted to use boardioctl(BOARDIOC_ROMDISK) someday. 2019-10-26 13:47:03 -06:00
Gregory Nutt
e0dff13094 apps/nshlib/Kconfig and examples/mount/Kconfig: Automatically select CONFIG_DRVR_MKRD is it is needed by the configuration. 2019-10-26 11:45:00 -06:00
Gregory Nutt
0bc798c7a9 apps/examples/mount: Replace illegal call to ramdisk_register() with a call to boardctl(BOARDIOC_MKRD). 2019-10-26 10:22:34 -06:00
Gregory Nutt
3e4db5cb40 examples/nxlines/Kconfig: Correct nxlines example program name. 2019-10-19 14:39:19 -06:00
Gregory Nutt
8cb4896bdb apps/examples/flowc, tcpblaster, and udpblaster: Back out more changes that broke the makefiles fixed by commit 2830892424. This applies the same fix to other Makefiles that follow that same pattern and seem to have the same breakage. 2019-10-18 16:47:57 -06:00
Gregory Nutt
2830892424 apps/examples/udp and nettest: Back out parts of commit e806097c70 that broke the build of these examples. 2019-10-18 16:24:43 -06:00
Gregory Nutt
46612fe1a9 Trivial updates from review of PR. 2019-10-18 08:59:06 -06:00
Alin Jerpelea
67ac8e63c6 Merged in alinjerpelea/apps (pull request #203)
examples: RTTL player exaple

A simple RTTL player demo that is able to play tunes according to
an RTTL song

Refferences
https://en.wikipedia.org/wiki/Ring_Tone_Transfer_Language
https://cs.nyu.edu/courses/fall03/V22.0201-003/notes.htm

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-10-18 14:55:23 +00:00
Gregory Nutt
eb0b5b194f apps/examples/nxterm/Makefile: PROGNAME, PRIORITY, STACKSIZE varialble names did not match declarations in Kconfig file. 2019-10-17 17:51:49 -06:00
Xiang Xiao
403b4a0178 In all Make.defs files, append CONFIGURED_APPS with the consistent ifeq/ifneq. 2019-10-17 11:42:49 -06:00
Xiang Xiao
7808eb62d2 apps/: In all Make.def files, append to CONFIGURED_APPS patch with the absolute path. 2019-10-17 11:33:59 -06:00
Gregory Nutt
3a23523147 Makefiles: This reverts part of commit cf0365ea9. It restores 'conditional' inclusion of TOPDIR/Make.defs. Otherwise all make targets fail if the board has not been configured. That is okay most of the time, but not for things like clean and distclean which should not depend on being configured. 2019-10-15 09:25:48 +08:00
Anjana ‎
da100102a7 examples/serialblaster, serialrx, udpblaster: Update to serial/UDP tests. 2019-10-11 21:23:39 +08:00
Xiang Xiao
92e7b1f400 apps/: In Makefiles remove 'INCDIROPT = -w' which is already defined in apps/Make.defs. 2019-10-07 02:53:47 -06:00
Xiang Xiao
31a7b99f9c apps.: Remove the inappropriate NSH_BUILTIN_APPS coupling
1. Check NSH_NETINIT for self network initialization
2. Check NSH_ARCHINIT for sel arch specific initialization
3. Always show help regardless of NSH_BUILTIN_APPS
4. Loop forever regardless of NSH_BUILTIN_APPS, user could:
  a.change the default behavior by the command line argument
  b.or ctrl+c to break out the loop
2019-10-07 02:37:56 -06:00
Xiang Xiao
e806097c70 Application.mk and main.c files: Change builtin's entry point from main to xxx_main by macro expansion. This change make the entry point fully compliant with POSIX/ANSI standard. 2019-10-06 06:14:56 -06:00
Xiang Xiao
e829f047bc apps/; Change space to tab and help to ---help--- in Kconfig files. 2019-10-05 21:37:19 -06:00
Xiang Xiao
cf0365ea92 Clean up Makefile under apps folder no functional changes. 2019-10-04 08:35:46 -06:00
Xiang Xiao
63c3772888 CONFIG_BUILD_LOADABLE: Check the kernel function callable by BUILD_KERNEL instead of BUILD_LOADABLE since BUILD_LOADABLE could be turned on even with BUILD_FLAT. 2019-10-03 14:10:32 -06:00
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