Commit Graph

1375 Commits

Author SHA1 Message Date
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