Commit Graph

5220 Commits

Author SHA1 Message Date
Abdelatif Guettouche
3fc062e9cd fsutils/mkfatfs/Kconfig: Select BCH
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-03-23 23:53:03 -07:00
Sara Souza
3bf2f31716 fixed coding style issue 2021-03-22 09:47:06 -07:00
Sara Souza
afad97d9f8 Apply 2 suggestion(s) to 2 file(s) 2021-03-22 09:47:06 -07:00
Sara Souza
577598d2df Apply 2 suggestion(s) to 1 file(s) 2021-03-22 09:47:06 -07:00
Sara Souza
8e3eca1836 apps/examples: Adds termios example 2021-03-22 09:47:06 -07:00
chao.an
4c256e7db3 netutils/dhcpd: handshake the dhcpd message with server port.
resolve the dhcpd compatibility issues on some strict system, such as Windows XP,7,10

Signed-off-by: chao.an <anchao@xiaomi.com>
2021-03-21 20:55:32 -07:00
Nathan Hartman
017f5ed65c examples/qencoder/qe_main.c: Fix nxstyle errors 2021-03-21 20:52:43 -07:00
Nathan Hartman
331fd61115 examples/qencoder/qe_main.c: Fix printf() format specifier
examples/qencoder/qe_main.c:

    * main(): Call to printf() had "%d" but argument was
      int32_t, leading to compiler warning. Change format
      specifier to PRIi32 (suggested by Gregory Nutt).
2021-03-21 20:52:43 -07:00
chao.an
960e63402e nsh/builtin: Ignore the child status if run the application on background.
N/A

fix the leak of child status if the background process
exceeds "CONFIG_PREALLOC_CHILDSTATUS".

Signed-off-by: chao.an <anchao@xiaomi.com>
2021-03-21 02:18:09 -07:00
Gustavo Henrique Nihei
08f1dd0093 fsutils/mksmartfs: Fix regression caused by BCH separation 2021-03-19 23:11:44 -07:00
Gregory Nutt
9f65362dd4 OS test: Improve reporting from the dual thread sporadic test
Results were difficult to interpret because the counts during the high priority, budget interval were included with other counts during the low priority interval.  This corrects that reporting by using two counts:  One for the low and one for the high priority interval.  This makes the results much easier to interpret.

There should be no impact to anything other that the sporadic scheduler case of the OS test.

Tested using the the stm32f4discovery:sporadic configration.  That configuration has no yet been merged but is available from incubator-apps PR 3097.
2021-03-19 23:11:35 -07:00
Gregory Nutt
1d3dda49a8 Extend Testing of Sporadic Schedule in OS test
This commit adds the test developed by Jan Staschulat with Issue #incubator_nuttx/2935

It is expected to cause the OS test to fail for the time being since that issue reports a bug.

Tested using the (new) stm32f4discovery:sporadic configuratioin.
2021-03-18 19:57:58 -07:00
Jiuzhu Dong
801acce04e dhcpd/telnet: don't need to dupcalite listen socket when task_create
N/A

Change-Id: Id0d613809c4caf902332b16daedebbe45acee7f2
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-03-19 08:21:27 +09:00
Huang Qi
d66bc2c107 interpreters/quickjs: Fix typo in qjsmini.c
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
Change-Id: I3ee4a6bde0df7d158a4b5339ec3ffc027d2f42a3
2021-03-17 11:08:08 +01:00
Huang Qi
4439e0c0b5 interpreters/quickjs: Implement a minimal interpreter
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
Change-Id: I782d509f6fcc86ade34eda5dbe5845603b819e0e
2021-03-16 20:28:04 -07:00
Huang Qi
19b49ba045 interpreters/quickjs: Bump to latest release
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
Change-Id: I1cd96c4333442f8c3a3c58c3f8ae5bfac1734f5c
2021-03-16 20:28:04 -07:00
YAMAMOTO Takashi
6cc1f189d2 examples/mtdpart: select CONFIG_BCH 2021-03-16 20:27:49 -07:00
YAMAMOTO Takashi
ea8cf7bad4 examples/mtdrwb: select CONFIG_BCH 2021-03-16 20:27:49 -07:00
Xiang Xiao
2f1ecbaf74 Change all .cpp suffix to .cxx suffix
follow the coding standard requirement

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-03-16 13:57:48 -07:00
Sara Souza
1673df81d1 apps/examples/watcher: Fixed an assert failure 2021-03-16 11:30:04 -07:00
Jiuzhu Dong
ff4c3c3fb8 thttpd: add THTTPD_NFILE_DESCRIPTORS limits instead of NFILE_DESCRIPTORS
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-03-16 07:56:45 -07:00
YAMAMOTO Takashi
f8cb9db729 iperf: Plug a memory leak 2021-03-16 02:13:25 -07:00
YAMAMOTO Takashi
25d29482ea iperf: plug a thread leak 2021-03-16 02:13:25 -07:00
YAMAMOTO Takashi
5140962436 netutils/iperf/README.md: document what this is 2021-03-15 07:14:16 +01:00
Jiuzhu Dong
4c6ded2661 app: delete NFILE_DESCRIPTORS limits
Change-Id: I3ced2b2b7440a2c79a712cfc97b4cd15d2bddd4c
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-03-12 21:12:07 -08:00
Gustavo Henrique Nihei
6f75c1b3d6 system/i2c: Add command for resetting an I2C bus 2021-03-12 11:08:09 +08:00
ligd
d4259acc15 rpmsgsocket: add rpmsgsocket test case
Change-Id: Ia07b5915da2c9c96fa8137bcaecdf1b120c76853
Signed-off-by: ligd <liguiding1@xiaomi.com>
2021-03-05 07:51:51 -08:00
Dong Heng
208df89ab0 netutils/dhcpd: Fix printf format error based on different chip arches 2021-03-05 07:45:07 -08:00
ligd
89e6fb9a42 apps/md5: fix md5 result error
MIRTOS-325

Change-Id: I0dd6c3e155b8fe41fe8ea6859271168a0d283829
Signed-off-by: ligd <liguiding1@xiaomi.com>
2021-03-03 22:12:24 -08:00
Jiuzhu Dong
681da55d4a netutils/thttpd: fix compile break
change NSOCKET_DESCRIPTORS to NFILE_DESCRIPTORS

Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-03-03 02:02:22 -08:00
Jiuzhu Dong
3708b6e478 net/socket: recover POLLSOCK and keep polling directly by socket
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-03-01 09:20:04 -08:00
Jiuzhu Dong
0e1148cf1d usrsock: delete sock->s_crefs to fix compile break
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-02-25 01:44:45 -08:00
Jiuzhu Dong
459916f81c net/socket: delete config CONFIG_NSOCKET_DESCRIPTORS
N/A

Change-Id: I50376600292a853652af76e2236bb428d1037313
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-02-24 05:53:14 -08:00
Gustavo Henrique Nihei
f7e9d09566 system/i2c: Fix nxstyle issues 2021-02-23 08:49:19 -08:00
Gustavo Henrique Nihei
f167754743 system/i2c: Fix typo in "repetitions" word 2021-02-23 08:49:19 -08:00
YAMAMOTO Takashi
a63bdcbacb system/ntpc: Add ntpcstatus command
An example output:

    nsh> ntpcstatus
    The number of last samples: 5
    [0] srv 178.16.23.50 offset -0.014006560 delay 0.349967444
    [1] srv 5.9.57.158 offset 0.001792161 delay 0.269991633
    [2] srv 206.75.147.25 offset 0.009916600 delay 0.129989672
    [3] srv 162.159.200.1 offset 0.011508908 delay 0.019917401
    [4] srv 185.19.184.35 offset 0.021468135 delay 0.239915030
    nsh>
2021-02-20 01:30:55 -08:00
YAMAMOTO Takashi
8ae1267054 ntpclient: Add ntpcstatus() api to query ntpc status programatically
For now, just provide the latest samples.
2021-02-20 01:30:55 -08:00
Gustavo Henrique Nihei
771d19b94a system/cle: Remove column offset for cursor position 2021-02-19 10:39:21 -08:00
Gustavo Henrique Nihei
08c29110a6 system/cle: Fix cle application build 2021-02-19 10:39:21 -08:00
Byron Ellacott
2e17cd2e6b fsutils: update geometry size (c.f. apache/incubator-nuttx#2861) 2021-02-18 20:38:56 -08:00
Gustavo Henrique Nihei
7ebd1309dd examples/watcher: Add missing dependencies on Kconfig 2021-02-18 17:30:17 +00:00
Michal Lenc
72b3f97e24 canutils: changed print_usage function to static
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2021-02-17 02:27:27 -08:00
Gustavo Henrique Nihei
5cddb39b4e nshlib: Fix dependency on FSUTILS_MKFATFS 2021-02-16 04:04:59 -08:00
Brennan Ashton
75690bc31e Pin Nible release to working commit until stable tag is ready 2021-02-16 09:08:37 +00:00
Gustavo Henrique Nihei
fe5732494b examples/watchdog: Fix printf format warnings 2021-02-15 20:04:07 -08:00
YAMAMOTO Takashi
ab86da4639 netutils/ntpclient/Kconfig: Add NETUTILS_NTPCLIENT_STAY_ON
It's used in the code but missing in Kconfig.
I guess the PR [1] forgot to add this.

Make it "y" by default because it seems like the original behavior
before the PR [1].  I have no strong opinions on the default
either ways.

[1] https://github.com/apache/incubator-nuttx-apps/pull/570
2021-02-15 01:53:37 -08:00
Brennan Ashton
22115cc011 hidkbd: Do not require CONFIG_USBHOST for the app 2021-02-15 00:02:37 -08:00
YAMAMOTO Takashi
f613da4f92 webclient.c: Remove a space after a negative sign
from:

    return - ECONNABORTED;

to:

    return -ECONNABORTED;

The latter style is more commonly used within NuttX code base.

Note: nxstyle doesn't complain on either of them.
2021-02-12 08:51:23 +00:00
chao.an
ebbf2fc072 netutils/dhcpc: configurable Bootstrap flags
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-02-11 21:38:43 -08:00
YAMAMOTO Takashi
ca6907ccbe ntpclient.c: Avoid integer overflows in offset calculation
The current calculation easily overflows if the local time is
around the unix epoch.  I guess it isn't too unusual for
devices without RTC.  Or, the battery is dead.  Or, whatever.

This commit avoids the overflow by simply dividing everything by 2.
While more sophisticated and precise solutions are possible,
I feel that they are overkill for this simple implementation.

For example,

The unix epoch (1970) is 0x83aa7e8000000000 in
64-bit NTP timestamp. (1900-origin)
The timestamp now, as of writing this, is 0xe3cda16b00000000.

With the code before this commit, the offset will be:

(lldb) p (long long)((0xe3cda16b00000000 - 0x83aa7e8000000000) + (0xe3cda16b00000000 - 0x83aa7e8000000000)) / 2
(long long) $16 = -2295952992316162048
(lldb)

with the new code, it would be:

(lldb) p (long long)((0xe3cda16b00000000 / 2 - 0x83aa7e8000000000 / 2) + (0xe3cda16b00000    / 2 - 0x83aa7e8000000000 / 2))
(long long) $17 = 6927419044538613760
(lldb)

It's the correct offset from the unix epoch:

(lldb) p 6927419044538613760 >> 32
(long) $0 = 1612915435
(lldb)

spacetanuki% date -r 1612915435
Wed Feb 10 09:03:55 JST 2021
spacetanuki%
2021-02-09 22:47:20 -08:00