Commit Graph

705 Commits

Author SHA1 Message Date
Alin Jerpelea
ec339bc49a Makefiles: Gregory Nutt: update licenses to Apache
Gregory Nutt is the copyright holder for those files and he has submitted the
SGA as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-07 21:35:33 -05:00
Xiang Xiao
58293abb8e Follow up task_spawn change from kernel side
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-06-01 12:45:26 +09:00
Xiang Xiao
213e60232f Include assert.h in necessary place
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-05-31 08:51:22 +02:00
Gustavo Henrique Nihei
b843486386 readline: Reset offset when top command is issued repeateadly 2021-05-24 22:01:21 -05:00
Xiang Xiao
82ed7bf5b1 Include debug.h for xerr/xinfo/xwarn caller
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-05-24 19:52:54 +09:00
Xiang Xiao
1ee948e0c8 Include assert.h for DEBUGASSERT caller
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-05-24 12:34:37 +09:00
Xiang Xiao
d3f8f423d5 Include debug.h for xerr/xinfo/xwarn caller
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-05-24 12:33:17 +09:00
Michał Łyszczek
19e2ffe37e system/psmq: update to v0.2.1
This release breaks API and ABI by making use of library way
easier and more safe. No app in a nuttx tree uses psmq, so
nothing in-tree will be broken by this change.

Updated license files to Apache 2.0.

Tested on nucleo-f091

Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
2021-05-23 23:57:25 +01:00
jturnsek
6b53a1959b Arrow keys not working when in INSERT mode 2021-05-20 04:23:10 -05:00
Xiang Xiao
7ef50558ab system/system: Include errno.h
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-05-20 08:42:05 +01:00
Michał Łyszczek
ccc8ddaf5d system/embedlog: update to v0.6.0
Changes from v0.4.0
- add thread safety code
- add option to print function info (name) in logs
- abi/api stabilization
- bug fixes + increased reliability

Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>

---
v1 -> v2 [suggested by Brennan Ashton]
 - fix path to embedlog_main.c in header comment
 - change license from bsd3 to apache2.0
2021-05-16 11:30:29 -03:00
Simon Piriou
e4db4df673 system: adb: fix shell service
Fix wrong dup2 return value check after:
fs: file_dup2 shouldn't hold the file list lock
1e5bfa623aa93b918566e8dc0e2f9c1a1037f45e

Fix issue in adb shell introduced in:
nsh: Pass the correct command lines to nsh_consolemain
6aca60133c
2021-05-08 22:51:25 -07:00
Gustavo Henrique Nihei
73a8c65ec9 system/spi: Adopt CPHA as the abbreviation for clock phase 2021-05-06 00:24:43 -07:00
Gustavo Henrique Nihei
5b26068635 system/spi: Fix NxStyle issues 2021-04-27 02:29:45 -05:00
Gustavo Henrique Nihei
63d59b0acf system/spi: Print sent data in the same way as received.
This eases the comparison for testing SPI with looped back MOSI and MISO
signals.
2021-04-27 02:29:45 -05:00
Xiang Xiao
52d853e642 system/nxplayer: Fix error: 'outstanding' undeclared
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-03-29 01:46:29 -07:00
Gustavo Henrique Nihei
6f75c1b3d6 system/i2c: Add command for resetting an I2C bus 2021-03-12 11:08:09 +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
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
YAMAMOTO Takashi
bb620bb95c netdb: Fix usage and comment 2021-01-27 11:38:16 +01:00
Xiang Xiao
ee443edf6a system/argtable3: Update to the latest version(v3.2.0.7402e6e)
and remove 0001-feat-Switch-to-FreeBSD-getopt-library.patch
since it is already included in the new official release

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-01-16 14:13:25 -08:00
Xiang Xiao
35f3b609fe system/argtable3: Update to the latest version(v3.1.5.1c1bb23)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-01-14 15:18:05 +09:00
Xiang Xiao
6aca60133c nsh: Pass the correct command lines to nsh_consolemain
Change-Id: Ic6617cecb6949054e6bdce8757523e7a60d83eb0
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-01-13 16:40:18 +08:00
chenwen
756dc32fd0 netutils/iperf: Add iperf example.
system/argtable3: Add an ANSI C library for command-line parsing.
2021-01-07 08:43:26 -06:00
Nakamura, Yuuichi
bfa826d30d system/trace: Fix fprintf format warnings 2021-01-06 10:27:34 +01:00
chao.an
54bbfee30e system/readline: check the control ascii only to support multi-languages
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-01-05 08:02:25 +01:00
ligd
0e4c29be03 system/nx: update mqueue_open return value
Change-Id: Ic8d7763fa2da01312cb0e02b4aaf73893cad471a
Signed-off-by: ligd <liguiding1@xiaomi.com>
2021-01-03 21:15:00 -06:00
danguanghua
a4f240e0e1 system: nxlooper: add nxlooper for loopback test
N/A

which record and play raw data using audio subsystem
to verify audio record and playback function

Signed-off-by: danguanghua <danguanghua@xiaomi.com>

Change-Id: I2c768b8e8234a31f9622cb9955f785329cf402a5
Signed-off-by: danguanghua <danguanghua@xiaomi.com>
2020-12-25 02:26:52 -06:00
Huang Qi
3040c59ae9 Replace all wget with curl
wget is missing from some system (like macOS and Windows native),
it's better to use curl to simplify build environment.

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2020-12-21 22:45:46 -06:00
danguanghua
f210010466 system: enable O_CLOEXEC when openning audio device
N/A

to avoid multiple open operations of audio_open

Change-Id: Id283def4811c71f3c0bd38dc1a480afce303c4c3
Signed-off-by: danguanghua <danguanghua@xiaomi.com>
2020-12-19 07:56:18 -06:00
Masayuki Ishikawa
9f542c42e5 system: adb: Fix compile issues in adb_main.c
Summary:
- This commit fixes compile issues for the following condition
- CONFIG_ADBD_BOARD_INIT=n && CONFIG_BOARDCTL_RESET=y

Impact:
- adb only

Testing:
- Tested with stm32f4discovery:adb (not pushed yet)

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-12-17 00:32:54 -06:00
Xiang Xiao
16c6e1f0b8 system: nxplayer and nxrecorder shouldn't hardcode message length to 16
the audio driver may config a very large buffer count,
so let's adjust the message queue length dynamically.

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-12-14 16:30:11 +01:00
danguanghua
3d42c6460f fix build bread if CONFIG_AUDIO_MULTI_SESSION enabled
N/A

Change-Id: I785f44a4381965df700000cbd33faeb2d2e24f6e
Signed-off-by: danguanghua <danguanghua@xiaomi.com>
2020-12-11 08:06:31 -06:00
Simon Piriou
d37a1d2f1b system/adb: fix shell issue and add reboot feature 2020-12-08 10:13:34 -06:00
chao.an
fe915679b1 style/Document: remove unnecessary trailing whitespace
N/A

Signed-off-by: chao.an <anchao@xiaomi.com>
2020-11-28 12:20:10 +01:00
YAMAMOTO Takashi
ec0f0b7fbc system/nxrecorder/nxrecorder.c: Fix a syslog format 2020-11-27 02:43:30 -06:00
YAMAMOTO Takashi
ce3ca22152 system/nxrecorder/nxrecorder.c: Don't assume debug macro expansion 2020-11-27 02:43:30 -06:00
YAMAMOTO Takashi
ed768d1159 system/nxplayer/nxplayer.c: Fix a syslog format 2020-11-27 02:43:30 -06:00
YAMAMOTO Takashi
db07ae43ee system/nxplayer/nxplayer.c: Don't assume debug macro expansion 2020-11-27 02:43:30 -06:00
YAMAMOTO Takashi
69da172c5f system/cle/cle.c: Fix syslog formats 2020-11-23 18:23:24 -08:00
dongjiuzhu
6189a8df4b app/system/readline: fix compile break
N/A

Change-Id: I562b96492be9976611199e6215c55c03f1e154c8
Signed-off-by: dongjiuzhu <dongjiuzhu1@xiaomi.com>
2020-11-17 20:12:57 -08:00
YAMAMOTO Takashi
a760f95b5d system/zmodem/zm_receive.c: Fix a printf format warning 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
423d748cee system/zmodem/zm_receive.c: Appease nxstyle 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
36819dbad9 system/lm75/lm75.c: Fix a printf format warning 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
4f8104ca3f system/lm75/lm75.c: Appease nxstyle 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
b8e1819bf0 system/ramtest/ramtest.c: Fix printf format warnings 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
c59ab94567 system/vi/vi.c: Fix a printf format warning 2020-11-13 05:51:23 -08:00