Commit Graph

100 Commits

Author SHA1 Message Date
Xiang Xiao
8375a2177e Fix nxstyle warning
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-10-18 22:27:57 -07:00
Xiang Xiao
8a63e58936 Change all 'Nuttx' to 'NuttX'
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-10-18 22:27:57 -07:00
Maciej Wójcik
21049ece6e Rewritten READMEs to Markdown 2020-07-25 01:01:51 -07:00
Maciej Wójcik
51e6645f71 Rename README and README.txt to README.md 2020-07-25 01:01:51 -07:00
Xiang Xiao
deaa6c5b7b build: Replace $(TOPDIR)/Make.defs with $(APPDIR)/Make.defs
and move NUTTXLIB defintion to the common place

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-07-09 15:17:37 -03:00
Xiang Xiao
69f013e74e build: Remve the unnecessary .gitignore
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-23 15:56:35 +01:00
Xiang Xiao
ead498a788 build: Remove the workaround for the inexistence of .config/Make.defs
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-21 17:43:42 +01: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
Xiang Xiao
1511403fdf Revert "Don't generate .depend anymore"
This reverts commit cc5ad09caa.
2020-03-22 23:09:40 -05:00
Xiang Xiao
cc5ad09caa
Don't generate .depend anymore 2020-03-22 18:15:21 +00: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
chao.an
f28eca9dbc Make.defs: Use complete include path 2020-02-19 12:56:10 -06: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
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
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
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
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
cf0365ea92 Clean up Makefile under apps folder no functional changes. 2019-10-04 08:35:46 -06:00
Xiang Xiao
f7229b24fe apps/wireless Makefiles: Utilize Directory.mk for consistency. 2019-10-01 11:56:42 -06:00
Xiang Xiao
9a27d4a697 Makefiles: Remove .PRECIOUS if Makefile doesn't touch libapps. 2019-10-01 11:48:55 -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
Anthony Merlino
144a0180e2 Merged in antmerlino/apps/i8sak-eaddr2ip-fix (pull request #196)
i8sak: Fixes conversion from extended address to IPv6 address.

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-08-13 21:19:53 +00:00
Anthony Merlino
ba5b1c78da Merged in antmerlino/apps/i8sak-energy-scan (pull request #195)
wireless/ieee802154/i8sak: Adds support for energy scan result printout.

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-08-13 21:19:29 +00:00
Anthony Merlino
c68dd23509 Merged in antmerlino/apps/i8shark_fcs_suppresion (pull request #194)
i8shark: Adds support for intentionally suppressing passing the FCS so that Wireshark doesn't try to validate it.

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-08-10 18:26:33 +00:00
Anthony Merlino
6228b43a72 Merged in antmerlino/apps/i8sak-seteppanid (pull request #193)
i8sak: Allow setting the endpoint PAN ID

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-08-10 18:18:34 +00:00
Anthony Merlino
906f77a62d Merged in antmerlino/apps/libmac_fcslen (pull request #192)
wireless/ieee802154/libmac: Adds support for getting/setting the FCS length

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-08-10 18:17:54 +00:00
Anthony Merlino
401860c122 Merged in antmerlino/apps/i8sak-fix (pull request #191)
wireless/ieee802154/i8sak: Fixes naming caused by naming change in nuttx

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-08-10 18:16:42 +00:00
Anthony Merlino
28f57f1007 Merged in antmerlino/apps/i8sak-improvements (pull request #188)
I8sak improvements

* wireless/ieee802154: Adds support for getting/setting maxretries and promsicuous mode from i8sak

* wireless/ieee802154/i8sak: Fixes a build warning and handles a few cases where a fault can occur due to not catching missing arguments.

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-07-26 01:54:30 +00:00
Anthony Merlino
c895593fc1 Merged in antmerlino/apps/i8sak-daemon-fixea (pull request #165)
wireless/ieee802154/i8sak: Fixes issues related to re-running daemon. Releases lock when releasing daemon. Re-sets daemon_shutdown so that a subsequent daemon launch does not immediately return.

Approved-by: GregoryN <gnutt@nuttx.org>
2019-01-13 14:19:43 +00:00
Anthony Merlino
1617e0dcf0 Merged in antmerlino/apps/i8sak-txpwr (pull request #159)
wireless/ieee802154/i8sak: Adds support for getting/setting transmit power.

Approved-by: GregoryN <gnutt@nuttx.org>
2018-11-01 19:04:28 +00:00
Anthony Merlino
0989023de7 Merged in antmerlino/apps/i8sak-event-fix (pull request #157)
i8sak: Properly shuts down event thread.

Approved-by: GregoryN <gnutt@nuttx.org>
2018-10-06 20:12:26 +00:00
Anthony Merlino
93f84dcc8f Merged in antmerlino/apps/i8sak-app-fix (pull request #156)
Fixes i8sak name. Accidentally renamed to i8ask in recent changes

Approved-by: GregoryN <gnutt@nuttx.org>
2018-09-12 19:02:34 +00:00
anchao
057b68cd07 apps/: Resolve some make dependency failures. 2018-09-03 10:38:37 -06:00
anchao
b5cfd93444 apps/: Modification to build system: Unified application compilation rules 2018-09-03 09:29:56 -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
2f982e9c77 Revert "Squashed commit of the following:"
This reverts commit 25b92edd9f.
2018-08-22 12:06:32 -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
Anthony Merlino
162fb66ecf Merged in antmerlino/apps/i8sak_daemon (pull request #151)
i8sak: i8sak daemon now gets shutdown if not in use.

Previously, once the i8sak daemon was started, by running any command, it would stay running. This means that if you want to use i8sak to setup your network, but then want exclusive access to the char device, or network device, you have to manually shutdown the i8sak daemon. Now the daemon stays active as long as required to finish any commands, or stays open if a new command keeps it on, but when all work is finished, it shuts down.

Approved-by: GregoryN <gnutt@nuttx.org>
2018-08-19 18:47:40 +00:00
Gregory Nutt
a57610c2c4 Remove trailing spaces at the end of lines. 2018-08-13 07:47:26 -06:00
Gregory Nutt
c1ec9ab9a6 apps/wireless/bluetooth/btsak: Plug remaining, unimplemented commands with stubs so that we can get a clean link and get on with some initial testing. We can finish the GATT queries later. Also updates Makefile to use Application.mk. 2018-04-03 08:16:34 -06:00
Gregory Nutt
9f1a10996b apps/wireless/bluetooth/btsak: Add beginning of a a Bluetooth tool. 2018-04-02 10:47:17 -06:00
Gregory Nutt
139b008fc9 apps/system and wireless: Applications should use the standard clock() interface, not the internal NuttX clock_systimer() interface. 2018-03-14 07:59:44 -06:00
Anthony Merlino
2e8f41ef3b Merged in antmerlino/apps/i8shark-xbee-remove-fcs (pull request #125)
i8shark: Fixes special XBee compensation by purposely chopping off the FCS.

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-12-08 15:25:44 +00:00
Anthony Merlino
4091367401 Merged in antmerlino/apps/i8sak-getset-rxonidle (pull request #124)
i8sak: Adds ability to get/set rxonidle setting for MAC layer

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-11-22 21:37:36 +00:00
Anthony Merlino
96acb66d6a Merged in antmerlino/apps (pull request #123)
i8shark: Adds CONFIG_IEEE802154_I8SHARK_XBEE_APPHDR option to remove XBee's application header before sending to Wireshark. This option will corrupt any traffic received that does not include this application header.

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-11-22 21:37:11 +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