Commit Graph

3267 Commits

Author SHA1 Message Date
Gregory Nutt
7ba2110c83 apps/graphics/pdcurs34: This commit brings the basic public domain pdcurses library into NuttX. This library is complete but not yet usuable because it still requires the NuttX interfacing code needed hook pdcurses into the NuttX graphics drivers. Also test cases are needed to verify the pdcurses integration. 2017-11-17 13:12:59 -06:00
Gregory Nutt
626f41084b apps/nshlib: Correct error introduced to conditional compilation 2017-11-14 08:42:16 -06:00
Gregory Nutt
e37f4b7004 apps/nshlib: Big simplification of last change. /proc/kmm, umm, and progmem have been replaced with a single procfs file called /proc/meminfo. The NSH free command now degenerates to a simple dump of /proc/meminfo. 2017-11-13 13:35:04 -06:00
Gregory Nutt
0cda4cec15 apps/nshlib: The free commands no longer used mallinfo() to get the state of the use heap. Two reasons: That is not useful information in the kernel build. And (2) there are other memory resources of interest in other configurations such as the Kernel heap in PROTECTED and KERNEL builds, and the prog mem uses when FLASH is used to hold modifiable data. The free command has been extended to just dump the content of procfs entries and to include all of these other memory resources of the procfs entries are available. 2017-11-13 12:55:03 -06:00
Gregory Nutt
fd63b607b5 apps/system/free: Removed because it violates the portable POSIX OS interface. 2017-11-13 07:59:38 -06:00
Gregory Nutt
5022efc7fc Remove .gitsubmodules 2017-11-12 14:32:53 -06:00
Gregory Nutt
68affc6c08 netutils/ftpc: Eliminate warnings about types of inputs to netlib_ipv4adaptr() and about ftp_cmd_pasv() being defined but not used. 2017-11-12 13:31:36 -06:00
Gregory Nutt
402306635a system/composite: Eliminate warning about dumptrace being defined but not used. 2017-11-12 10:11:30 -06:00
Anthony Merlino
f489bcd6f9 Merged in antmerlino/apps/ftp-ipv6 (pull request #122)
FTP: Adds support for IPv6 and fixes various transfer issues

* netutils/ftpd: Fix support for IPv6 FTP server

* netutils/ftpc:Adds support for IPv6 sockets

* ftpc: Must convert port received by EPSV reply to network order

* ftpc: Data socket address for passive connection should be same as server address

* ftpc: Must skip human readable string in EPSV response before scanning for port

* ftpc: Don't send PASS command if USER command was sufficient. ie no password required

* ftpc: Generically handle permanent negative completion in shard ftpc_cmd logic

* ftpc: Minor addresssing fix

* ftpc: Tweak logic for overriding network debugging output

* FTP: Adds option for setting stack size of various threads in FTPD and FTPC

* netutils/ftpd: Fixes build error setting IPv4 address. sin_addr => sin_addr.s_addr

* netutils/ftpd: Protects against partial write returns by looping in that case

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-11-06 23:41:30 +00:00
Gregory Nutt
efd1279025 apps/examples/ltdc: Remove apps/examples/ltdc. It violates the portable POSIX interface by calling directly into OS code. 2017-11-06 11:31:32 -06:00
Gregory Nutt
7a0d29fc59 apps/examples/userfs: Handle the O_TRUNC open flag. 2017-11-06 07:15:20 -06:00
Gregory Nutt
3dd64af3db apps/examples/userfs: Fixes a bug with double freeing open data when dup'ed files are closed. 2017-11-05 17:43:04 -06:00
Gregory Nutt
9ce13f74e7 apps/examples/userfs: Add some (unnecessary) checks for NULL pointers. 2017-11-05 12:33:38 -06:00
Mateusz Szafoni
568c2638e8 Merged in raiden00/apps (pull request #121)
smps, powerled examples: fix floating point format in printf

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-11-05 14:18:08 +00:00
Mateusz Szafoni
6d37b6a570 Merged in raiden00/apps (pull request #120)
examples: add SMPS driver example

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-11-05 12:33:06 +00:00
Anthony Merlino
115dff06e7 Merged in antmerlino/apps/i8sak-fixes (pull request #119)
i8sak: Channel setting is now saved locally, so when performing a startpan or assoc, the channel previously set is still used, even though the MAC layer gets reset.  Also fixes a few build issues

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-11-03 16:23:42 +00:00
Gregory Nutt
a7157d0e3c include/netutils/netlib.h: In order to avoid pre-processing warnings, NETLIB_SOCK_FAMILY must always be assigned a value, even if there is no real meaning value for it. 2017-11-03 09:57:33 -06:00
Dmitriy Linikov
dea8d93f64 Merged in hardlulz/modem-3.0-nuttx-apps/fix-compile-nsh_routecmds (pull request #118)
Fixed the compilation of nsh_routecmds.c, broken after commit 6b9d23c6aa

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-11-03 12:28:19 +00:00
Gregory Nutt
35da4e7fd4 fsutils/mkfatfs: Remove more unused macros 2017-11-02 19:03:50 -06:00
Gregory Nutt
92a44978db fsutils/mkfatfs: Remove some unused macros 2017-11-02 19:02:04 -06:00
Gregory Nutt
782526aa21 apps/fsutils/mkfatfs: When fsutils/mkfats was split off from the operating system, there were a few dangling things left. Some references to functions in the OS (which are not available in the protected and kernel modes) and several types and function prototeypes that don't exist is apps/fsutils/mkfatfs. 2017-11-02 18:45:55 -06:00
Gregory Nutt
7556eb3814 nshlib/: Fix some botched conditional compilation. 2017-11-02 17:13:49 -06:00
Gregory Nutt
20119c3647 apps/examples/userfs: Fix check for open with write+append mode. 2017-11-01 16:59:28 -06:00
Anthony Merlino
b0bcca49ed Merged in antmerlino/apps/i8shark (pull request #116)
Adds i8shark, a sniffer "adapter" that captures all 802.15.4 traffic, packages it into a Wireshark ZEP packet, and sends it to a host running Wireshark.

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-11-01 20:38:22 +00:00
Anthony Merlino
0c2adff987 Merged in antmerlino/apps/i8sak_update (pull request #115)
i8sak: Changes 'notif' to 'primitive' corresponding to the changes in the Kernel

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-11-01 20:32:29 +00:00
Gregory Nutt
342b51e9a6 apps/examples/userfs: Fix bad logic in test stat() implementation. 2017-11-01 09:15:40 -06:00
Dmitriy Linikov
9170155838 Merged in hardlulz/modem-3.0-nuttx-apps/fix-misprint-in-cmd_wget (pull request #114)
Fixed misprint in cmd_wget

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-11-01 13:04:49 +00:00
Dmitriy Linikov
65e9205344 Merged in hardlulz/modem-3.0-nuttx-apps/fix-i2ctool-write (pull request #113)
Fixed i2ctool write operation in `no restart` mode (flag `-n`).

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-11-01 13:03:54 +00:00
DL
bf209bcf1d Fixed misprint in cmd_wget 2017-11-01 06:18:40 +03:00
DL
42ec1aad65 Fixed i2ctool write operation in no restart mode (flag -n).
It seems that I2C driver has changed a bit since i2ctool was written,
so now i2ctool sends repeated start even if `no restart` flag (-n)
was passed to it.
2017-11-01 06:11:53 +03:00
Gregory Nutt
769ffb8a4b apps/examples/userfs: Add a test case for verifying UserFS. 2017-10-31 09:00:49 -06:00
Gregory Nutt
6b9d23c6aa Correct and standardize some naming used in the previous commits. 2017-10-30 14:16:37 -06:00
Gregory Nutt
dafc88ed25 include/netutils/netlib.h: Broaden socket definitions of previous commit. 2017-10-30 14:11:42 -06:00
Gregory Nutt
51b369589b include/netutils/netlib.h: Add definitions needed when only local Unix domain sockets are supported. 2017-10-30 11:34:59 -06:00
Alan Carvalho de Assis
8aa72a0ad4 apps/examples/obd2: Add OBD2 example application 2017-10-28 13:38:47 -06:00
Alan Carvalho de Assis
a1f1f68b72 apps/canutils/libobd2: Add libobd2 for NuttX 2017-10-28 13:33:30 -06:00
Gregory Nutt
ef353ed632 Fix parsing of empty strings when CONFIG_NSH_CMDPARMS is not defined. Problem noted by Juha Niskanen. 2017-10-27 06:41:26 -06:00
Gregory Nutt
62f7838c5e nshlib: Tighten up some conditional logic 2017-10-26 16:07:42 -06:00
Gregory Nutt
40d9701ea0 nshlib: Remove a dangling function that is no longer used after last mount/df chagnes 2017-10-26 13:38:30 -06:00
Gregory Nutt
1f1d114901 Update some comments 2017-10-26 13:31:57 -06:00
Gregory Nutt
3788928cbf nshlib: df command no long uses the non-standard OS interface foreach_mountpoint(). No simply cats /proc/fs/blocks or /proc/fs/usage. 2017-10-26 13:28:37 -06:00
Gregory Nutt
20076688c2 nshlib: mount command no long uses the non-standard OS interface foreach_mountpoint(). No simply cats /proc/fs/mount when there are no arguments to the mount command. 2017-10-26 12:17:03 -06:00
Anthony Merlino
a8bf5718f5 apps/nshlib: ifconfig improvements 2017-10-24 17:26:17 -06:00
Gregory Nutt
a27294d788 apps/system/ping6: Use inet_ntop() to improve the appearance of the ping6 IPv6 address output. 2017-10-24 15:38:37 -06:00
Gregory Nutt
bf9bc28fcf system/ping and ping6: Fix a typo and also a place where = used when == intended. 2017-10-24 12:27:27 -06:00
Gregory Nutt
749ea9e881 This commit removes the ping6 command from NSH and replaces it with the apps/system/ping6 built-in command. The NSH ping6 command had to be removed because it violated the portable POSIX OS interface. The apps/system/ping6 command uses the sem-standard IPPROTO_ICMP6 socket interface.
Squashed commit of the following:

    apps/system ping and ping6:  Fix a backward test.
    apps/system/ping6: ping6 logic now builds without error.
    apps/system/ping and ping6:  Minor clean-up to configuration settings.
    apps/system/ping6:  Minor clean-up to be able to configure CONFIG_SYSTEM_PING6
    apps/nshlib:  Remove support for ping6 from NSH.
    apps/system/ping6:  Add IPPROTO_ICMPv6 ping6.  Initial commit is simply a clone of the IPPROTO_ICMP ping logic.
    Rename CONFIG_NET_ICMPv6_PING to CONFIG_NET_ICMPv6_SOCKET.
2017-10-24 11:19:41 -06:00
Gregory Nutt
bccf0092a4 nshlib: Remove some dangling IPv4 ping logic. system/ping: Add DNS hostname support. 2017-10-23 09:59:03 -06:00
Gregory Nutt
ed9dd1db53 Update a README.txt file 2017-10-23 09:22:42 -06:00
Gregory Nutt
c1ec7db8a9 This commite eliminates the ping command from NSH and replaces it with a ping 'built-in' at apps/system/ping. The original NSH version of ping violated the portable POSIX interface and, hence, had to be removed. The new system/ping command uses the new IPPROTO_ICMP AF_INET datagram sockets to implement ping.
Squashed commit of the following:

    apps/system/ping:  Fix some timing issues.
    apps/system/ping:  A few timing related corrections.
    apps/nshlib:  Remove support for the NSH 'ping' command.  The implementation of that command violated the portable POSIX interface and has been replaced with a ping 'built-in' command at apps/system/ping.
    apps/system/ping:  Add larger payload.  Verify content of echoed payload.
    apps/system/ping:  Various fixes for a clean compile
    system/ping: Add new build structure for system ping command.
2017-10-23 08:50:01 -06:00
Alan Carvalho de Assis
51cf069aef apps/examples/adps9960: Add ADPS-9960 example 2017-10-23 07:05:07 -06:00