Gregory Nutt
370bd94a6b
netutils/netlib/netlib_getdevs.c: Add comments and a placeholder for the RTM_NEWROUTE response.
2019-11-12 10:37:40 -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
Xiang Xiao
0276088d5a
apps/system/usrsock_rpmsg/usrsock_rpmsg_server.c: Fix usrsock_rpmsg_server.c:554:7: warning: 'i' may be used uninitialized in this function [-Wmaybe-uninitialized].
2019-11-11 09:06:18 -06:00
Xiang Xiao
b4482370cf
Make.defs: Fix nuttxtoolsunlink.sh: Command not found.
2019-11-11 09:04:10 -06:00
Gregory Nutt
438777cd38
netutils/netlib/netlib_getroute.c: Add function to retrieve routing tables using netlink.
2019-11-10 12:36:34 -06:00
Gregory Nutt
e260ea779c
apps/netutils/netlib/netlib_getnbtab.c: Add a utility function that will return a list of all network devices in the UP state.
2019-11-09 17:38:02 -06:00
chao.an
6bdc814836
apps/system/usrsock_rpmsg/Make.defs: Correct configured application name.
2019-11-09 10:03:24 -06:00
Gregory Nutt
2507cc15e8
netutils/netlib/netlib_getnbtab.c: Add support for retrieving a snapshot of the IPv6 neighbor table using Netlink sockets.
2019-11-08 11:30:32 -06:00
Jianli Dong
caecdd6079
apps/system/usrsock_rpmsg: Add rpmsg based usrsock implementation.
2019-11-08 09:32:45 -06:00
Juha Niskanen
eaeb6cc105
nshlib/Kconfig: Add missing NSH_DISABLE_DMESG, typos.
2019-11-08 07:52:22 -06:00
Gregory Nutt
f4f1ddccd7
netutils/netlib/netlib_getarptab.c: Per an old Linux Journal article, the nl_pid fild of struct sockaddr_nl should be set to the PID of the task that created the Netlink socket. Also fixes a warning.
2019-11-07 14:08:03 -06:00
David Alessio
91276ba94e
apps/system/cu/cu_main.c: (1) Fix early exit. getc(stdin) can return 0 the first time around. (2) Set optind to zero. getopt() was being left in a bad state, causing parsing errors on second use. (3) Fix priority of cu_listen(). (4) Add suppor for -h.
2019-11-05 07:07:02 -06:00
Gregory Nutt
de9101a1d9
apps/netutils/netlib/netlib_getarptab.c: Fix typos in comments.
2019-11-04 12:31:13 -06:00
Dave Marples
dbd4e67241
apps/system/cle/cle.c: This commit modifies the cle to use the streams file interface more consistently and has removed the observed race conditions. It was previously a mix of streams and fileio. It also simplifies the VT100 cursor position handling.
2019-11-04 11:35:18 -06:00
Gregory Nutt
af6719d78d
netutils/netlib/netlib_getarptab.c: Do not initialize response buffer, it is write-only. Also add a check to assue that the sequence number in the response is the same as the sequence number in the request.
2019-11-04 09:04:17 -06:00
Gregory Nutt
75c9ed72d1
apps/nshlib/README.txt: Update README to at least mention the new pmconfig command.
2019-11-04 07:48:51 -06:00
ligd
42aaecf1d1
apps/nshlib: Add new NSH command, 'pmconfig'.
2019-11-04 07:44:33 -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
eca2171ab5
apps/nshlib/nsh_netcmds.c: Fix some alignment in output of 'arp -t' command.
2019-11-03 20:10:56 -06:00
Gregory Nutt
b65c3dac0e
netutils/netlib/netlib_getarptab.c: Misc fixes from initial testing with the 'arp -t' commeand.
2019-11-03 19:29:20 -06:00
Gregory Nutt
400995dec6
nshlib/nsh_netcmds.c: Add a -t option to the arp command which will enable printing the entire ARP table.
2019-11-03 16:19:14 -06:00
Gregory Nutt
768218ee81
netutils/netlib/netlib_getarptab.c: Add a function to read the entire ARP tableusing NETLINK_ROUTE protocol.
2019-11-03 15:13:47 -06:00
Gregory Nutt
29160741d8
apps/nshlib/README.txt: Update to include the new rptun command.
2019-11-03 09:50:13 -06:00
Gregory Nutt
c3dd0b9c06
apps/nshlib/README.txt: Update to include the new rptun command.
2019-11-03 09:44:02 -06:00
ligd
611bc6c139
apps/nshlib: Add rptun cmd for boot remote core.
2019-11-03 09:36:49 -06:00
Xiang Xiao
93017735ef
apps/nshlib/nsh.h: nsh: Remove the redundant check for netcmd. Checking FS_PROCFS and FS_PROCFS_EXCLUDE_NET is enough and make the type of network device could be shown by ifconfig.
2019-11-03 09:33:57 -06:00
Xiang Xiao
7f653a87f7
Makefile: Fix warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
2019-10-29 07:55:02 -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
06acc559a1
apps/nshlib: Tighten up some of the conditional logic for mkrd.
2019-10-26 12:26:16 -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
c8a066f699
apps/nshlib/nsh_fscmds.c: The NSH mkrd command was in violation of the NuttX portable POSIX interface. it was calling the internal OS function ramdisk_register() directly. No only is this a violation of the interface specification, but also prevents use of mkrd in PROTECTED or KERNEL buils.
...
With this commit, the NSH mkrd command now used the BOARDIOC_MKRD boardctl() command. This command is availabe in all build modes. The effect of this change is to move the hear of the NSH mkrd command into to OS and provide user-space access via boardctl().
2019-10-26 09:42:51 -06:00
Gregory Nutt
3e4db5cb40
examples/nxlines/Kconfig: Correct nxlines example program name.
2019-10-19 14:39:19 -06:00
Xiang Xiao
1b2880ba46
apps/Application.mk: Fix main redefine warning by using per file CFLAGS/CXXFLAGS.
2019-10-19 12:49:56 -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
David S. Alessio
e050dce32d
apps/system/spi: Add options to spec devtype, id for chip select.
2019-10-18 07:43:38 -06: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
Gregory Nutt
5d59abe442
graphics/twm4nx/Makefile: Fix a recently introduced error that broke all Twm4Nx configurations.
2019-10-17 17:03:55 -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
75cd1dfd74
apps/: Move the common variable definitions from other build-related files into apps/Make.defs.
2019-10-17 11:40:39 -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
Xiang Xiao
fa0aded666
apps/system/cle/cle.c: Fix warning, re-order to follow coding standard.
2019-10-17 11:20:20 -06:00
David Alessio
0d8ed9c0de
Merged in david_alessio/apps/bugfix/spitool-exch-parse-txdata (pull request #202 )
...
Bugfix/spitool exch parse txdata
* friendlier I2C "knock-knock" uses only read request
While many I2C slave devices have multiple indexed registers, some have
only one register and it's not indexed. For example, the I2C bus switch
TCA9548A has only a Control Register, attempting to index to "Reg[0]"
alters its contents to 0x00 disabling all subordinate buses. This patch
fixes that problem by simply trying to read something/anything from the
slave. This also helps coax out slaves with register files that start
from a higher index, i.e. the AT24CS0x, FLASH chips with a UUID that
appears as a 2nd I2C slave at (address+8), report their serial number at
Reg[80]-Reg[8F] and will NAK a read of Reg[0].
* modify get/set to prevent write of reg index if not specifed
* correctly parse exch txdata args, if any
* should always call the board's deselect
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-10-17 14:05:44 +00: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
Gregory Nutt
69022c9f2b
apps/system/i2c: Fix up some complaints from nxstyle.
2019-10-15 06:30:57 +08:00