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
YAMAMOTO Takashi
6db2f25f69
system/i2c/i2c_hexdump.c: Fix a printf format warning
2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
2d9ed6a7e7
system/ping/ping.c: Fix printf format warnings
2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
6e0f188ece
system/ping/ping.c: Appease nxstyle
2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
a085678879
system/ramtest/ramtest.c: Fix printf warnings
2020-11-09 04:10:59 -08:00
YAMAMOTO Takashi
0fcb94f999
system/ramtest/ramtest.c: Appease nxstyle
2020-11-09 04:10:59 -08:00
Simon Piriou
a8a70f219d
libuv/adb: add gitignore files
2020-11-08 12:10:11 -08:00
Simon Piriou
c1c488e835
system: add Android Debug Bridge daemon
2020-11-08 13:11:48 -03:00
Simon Piriou
efd81744d1
libuv: fix bugs and add partial pipe support
2020-11-08 13:11:48 -03:00
ligd
ee7b0fc1dd
nxplayer & nxrecorder: make main thread configurable, set to default
...
Change-Id: I730f2dab00da245a79fc61d679296e73efc2374f
Signed-off-by: ligd <liguiding1@xiaomi.com>
2020-11-03 21:45:59 -08:00
Nakamura, Yuuichi
e6e435572b
Add task name recording support for trace command
2020-11-01 19:33:08 -08:00
ligd
d791afff4c
system/cu/cu_main.c: ctrlC will send SIGINT/SIGSTP
...
N/A
Change-Id: I67f02977d206875cf1bd9cae4973c49af1db4c1d
Signed-off-by: ligd <liguiding1@xiaomi.com>
2020-10-27 10:16:55 -07:00
Nakamura, Yuuichi
954c90b4b5
Add SCHED_INSTRUMENTATION_HIRES support
2020-10-21 02:10:51 +08:00
Xiang Xiao
58aa886bad
system/sched_note: Change DRIVER_NOTE to DRIVER_NOTERAM
...
follow up the kernel side change
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-10-20 17:54:45 +01:00
Nakamura, Yuuichi
ef2758c0c5
Add note_syscall args support
2020-10-21 00:42:53 +08:00
Juha Niskanen
2b88677895
system/cu: do not reset baud rate to zero when parity options are used
...
cfsetspeed() now stores baud rate to c_cflag member of
struct termios, so it must not be overridden later on.
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2020-10-20 01:08:22 +08:00
Juha Niskanen
a20cf0980d
system/cu: do not exit directly from getopt loop, bad in flat builds
...
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2020-10-20 01:08:22 +08: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
Nakamura, Yuuichi
7588d458e5
Remove trace command description
2020-10-18 00:23:27 +08:00
Nakamura, Yuuichi
007033f295
Fix note_syscall_leave_s to avoid unaligned access
2020-10-17 23:53:30 +08:00
Nakamura, Yuuichi
71ce72a341
Add trace command for task trace
2020-10-15 16:49:11 +08:00
y
51a96ce935
system/nxplayer/nxplayer_main.c: fix '%d' missing in sscanf
...
Change-Id: Ie69c9d4c38c7d6fe926788c67b992d3922b74d8c
2020-09-27 04:57:12 -07:00
licheng
a375f64f81
nxplayer&nxrecoder: add channel map support
...
Change-Id: I5e5534e7330d816533a6894cf3cd8c4e19984c6f
Signed-off-by: ligd <liguiding1@xiaomi.com>
2020-09-27 00:35:49 -07:00
Masayuki Ishikawa
03c3b2ed0f
system: nxplayer: Fix a compile error if CONFIG_DEBUG_AUDIO_ERROR=y
...
Summary:
- This commit fixes a compile error
Impact:
- Affects nxplayer with CONFIG_DEBUG_AUDIO_ERROR=y
Testing:
- Tested with spresense:rndis
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-09-15 21:15:58 -07:00
Xiang Xiao
3edfb4a3ac
system/readline: Fix the stack overflow when application name is too long
...
shouldn't zero the memory after tmp_name
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I527001af08da0865c4054b7a5b6ccaf60f585c06
2020-09-04 08:57:03 +02:00
Xiang Xiao
68c8a0f708
Fix nxstyle warning
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-08-23 15:44:32 -06:00
Xiang Xiao
837b405624
Change all files come from Xiaomi/Pinecone to Apache License 2.0
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-08-23 15:44:32 -06:00
Ouss4
aa717d59fd
system/readline/readline_common.c: Don't save the command again in the
...
history buffer if it's the one at the top.
2020-08-22 05:11:02 -07:00
Ouss4
a1b8ad9190
system/readline/readline_common.c: Fix nxstyle issues.
2020-08-22 05:11:02 -07:00
Xiang Xiao
9d80399bd5
nsh: Accept the command line arguments like sh
...
Usage: nsh [<script-path>|-c <command>]
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ifb76b27e7fd09d26b1f6e48c391fed0972018041
2020-08-19 14:32:53 -07:00
spiriou
18158ed271
system: add libuv port for NuttX
2020-08-17 11:09:47 -03:00
Oleg Evseev
fcd3937d7c
system/cu: refactor, add option -c to disable \n -> \r\n conversion
...
option -c will disable \n -> \r\n conversion both for serial device and console if it is a tty
refactor: use only one function to set termios parameters, use termious related code and options only if CONFIG_SERIAL_TERMIOS is defined
2020-08-14 00:58:55 +01:00
Xiang Xiao
e6c5ff9208
Remove the unnecessary touch and clean from Makefile
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-08-11 19:10:19 +01:00
SPRESENSE
63cd701958
Makefile: Unify ROOTDEPPATH into DEPPATH
...
DEPPATH is commonly used in nuttx repo, so it to be the same with them.
2020-07-29 15:22:20 +02:00
SPRESENSE
fb26ef28c6
system/hex2bin: Fix compilation error
...
Avoid overwrite the PROGNAME.
2020-07-29 15:22:20 +02:00
SPRESENSE
088df5f156
system: Fix typos
...
Fix typos in following files:
- system/setlogmask/Kconfig
- system/tee/Makefile
- system/telnet/Makefile
- system/spi/Kconfig
2020-07-29 15:22:20 +02:00
Masayuki Ishikawa
f6aa7340bc
system: taskset: Replace license header with Apache License 2.0
...
Summary:
- This commit replaces license headers under system/taskset.
Impact:
- No impact
Testing:
- Buid check only
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-07-29 01:05:31 -05: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
7789bbb470
zmodem: Remove CONFIG_HAVE_INLINE from compiler.h
...
follow up the kernel side change
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-07-06 01:22:42 +01:00
Xiang Xiao
b217de70e5
apps: Remove all stuff related to CONFIG_xxx_CXXINITIALIZE
...
since it is moved to the central place in nuttx side instead
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I544d6110f1ca6460f7c82f970870aa9b1e7ab3dd
2020-07-01 10:03:12 -06:00
Masayuki Ishikawa
fed7a53ef5
system: nxrecorder: Refactor nxrecorder.c
...
NOTE: Remove redundant code regarding audio buffer configuration
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-06-17 13:04:23 +08:00
Gregory Nutt
4f044a4342
system/sched_note/note_main.c: Add interrupt/syscall call decode.
2020-06-16 20:43:18 +01:00
Masayuki Ishikawa
2282310483
system: nxrecorder: Add O_TRUNC when creating a file
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-06-16 17:00:24 +08:00
Matias Nitsche
853439f0e7
composite: nxstyle fixes
2020-06-15 21:21:58 +01:00
Matias Nitsche
22d5712a5a
composite: do not require CDCACM driver to be set, composite interface is generic
2020-06-15 21:21:58 +01:00
YAMAMOTO Takashi
faba0249c1
Include malloc.h instead of stdlib.h for mallinfo()
...
Adapt to the change in the main repo.
mallinfo is meant to be API compatible with Linux,
where it's provided by malloc.h.
(I think the API actually originated with System V. I don't
remember how it was there though. Anyway, I guess the
compatibility with Linux is more important than System V
these days.)
2020-06-15 07:21:52 -06:00
Masayuki Ishikawa
1d4dc43e73
system: nxrecorder: Fix compile warnings in nxrecorder.c
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-06-10 18:15:08 -07:00
Masayuki Ishikawa
2ba9fd55af
system: nxplayer: Refactor nxplayer.c
...
NOTE: Remove redundant code regarding audio buffer configuration
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-06-05 15:21:02 +08:00
Xiang Xiao
d28dcfbee3
zmodem: Fix the build break and warning for host binary
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: If6b324c20fcb245633f3bdc9000bc48f581c7dc6
2020-06-03 13:07:11 +01:00
YAMAMOTO Takashi
6205eb01f2
remove duplicated g_wordsize
2020-05-25 14:42:58 +08: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
ea135b89c6
build: Replace all -I to INCDIR
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-21 17:43:42 +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
Masayuki Ishikawa
8d1f2d52da
system: nxplayer: Introduce max host and file name for http url
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-05-21 18:48:02 +08:00
Xiang Xiao
9be0be5d47
build: host executable should use HOSTEXEEXT not EXEEXT
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-19 08:58:10 -06:00
Xiang Xiao
6a26547dec
build: Move INCDIROPT to common place
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-18 15:37:24 -06:00
Ouss4
cc2ac7452c
system/netdb/netdb_main.c: Eliminate a warning when
...
CONFIG_NETDB_HOSTFILE is not set.
2020-05-14 16:40:12 -06:00
Gregory Nutt
b2d8c501f6
Remove use of set_errno() from application code.
...
The normal assignment errno = errcode should work fine now.
2020-05-07 22:23:19 +01:00
Xiang Xiao
4389885cf6
Move usrsock_rpmsg from system to netutils folder
...
This is a more suitable location
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-06 08:59:53 -06:00
Xiang Xiao
7a99d62ca1
Fix nxstyle warning
...
Signed-off-by: Xiang Xiao <xiaox
iang@xiaomi.com>
2020-05-06 07:31:10 -06:00
Xiang Xiao
8a1f5ee34c
debug: Reduce CONFIG_CPP_HAVE_VARARGS usage
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-06 07:31:10 -06:00
Xiang Xiao
547bad9e2a
Remove the unnecessary BUILD_FLAT dependence from Kconfig
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-29 11:46:53 -06:00
Xiang Xiao
dcc620e6b8
Kconfig: Change !BUILD_PROTECTED && !BUILD_KERNEL to BUILD_FLAT
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-29 07:23:51 -06:00
Xiang Xiao
ef19ca0243
cle.c: Fix warning: assuming signed overflow does not occur when assuming that (X + c) < X is always false
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-27 15:29:37 +02:00
Xiang Xiao
f55c5b67ee
usrsock: Fix warning: the incompatible pointer type
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-27 15:29:37 +02:00
Alin Jerpelea
2749e6467b
system: nxplayer & nxrecorder: nxstyle fixes
...
nxstyle fixes for nxplayer & nxrecorder apps
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2020-04-21 16:41:51 -06:00
Xiang Xiao
650b58d6b2
nshlib: Fix nxstyle warning
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-19 08:07:06 -06:00
Xiang Xiao
de8a56d149
nshlib: Split shell functionality from nsh to sh
...
1.Improve the compatiblity as other OS
2.Avoid call nsh_initialize more than once
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-19 08:07:06 -06:00
Xiang Xiao
3f9302561c
nshlib: Enhance nsh to execute the shell script
...
and support the interactive shell too
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-19 08:07:06 -06:00
Xiang Xiao
7b4d34e352
system/taskset: Call system to launch application instead of nsh_system
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-19 08:07:06 -06:00
Xiang Xiao
e4b101d2ef
system/cu: Echo NULL char too
...
since zero is also a valid character
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-16 20:50:40 +09:00
Gregory Nutt
3e73991857
nxstyle fixes for PR 170
2020-04-11 20:32:53 +01:00
Gregory Nutt
05f2253a33
Remove CONFIG_CAN_PASS_STRUCT
...
This is the companion to PR #766 . It removes the CONFIG_CAN_PASS_STRUCT option as recommended by Issue #620
NuttX PR #766 depends on PR being in place but not vice versa. This PR should be merge-able without #766 and then PR #766 should also pass its checks.
2020-04-11 20:32:53 +01:00
YAMAMOTO Takashi
3ba85167fe
system/ramtest: Change the default of stack size to DEFAULT_TASK_STACKSIZE
...
Given what this program does, it's probably ok to allocate a few more
kilo bytes of the stack.
2020-03-27 02:43:11 -05:00
YAMAMOTO Takashi
eb083265f4
system/flash_eraseall: Bump stack size to DEFAULT_TASK_STACKSIZE
2020-03-27 02:43:11 -05:00
YAMAMOTO Takashi
2ecdf4c554
Change the default of a few stack size configs to DEFAULT_TASK_STACKSIZE
...
These had the larger default for the sim.
It's no longer necessary as DEFAULT_TASK_STACKSIZE
can have different default for each arch.
See also:
commit b1d44a81b4
2020-03-27 02:43:11 -05:00