ligd
93604983eb
bluetooth: fix ascan report error
...
wireless/bluetooth/bt_uart_filter.c:238:26: runtime error: left shift of negative value -3
Change-Id: Ibd34af7e37b4b16a6168d67460573fc47df35935
Signed-off-by: ligd <liguiding1@xiaomi.com >
2021-03-15 21:27:18 +08:00
丁欣童
e23def2160
fakesensor: replace usleep with nxsig_usleep.
...
N/A
Signed-off-by: 丁欣童 <dingxintong@xiaomi.com >
Change-Id: I636e1ccc5463cf247eb9c8e363d5c746d6c5afe5
2021-03-11 10:18:06 +08:00
Fotis Panagiotopoulos
d02b63d6ed
Re-arranged syslog fields.
2021-03-09 00:53:28 +08:00
chao.an
413405fb6e
drivers/syslog: Prepend Process ID to syslog message
...
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-03-09 00:53:22 +08:00
Fotis Panagiotopoulos
fb8b50c300
Added color output to syslog.
2021-03-09 00:53:16 +08:00
Fotis Panagiotopoulos
0acea9c4a4
Added printing of log priority in syslog.
2021-03-09 00:53:07 +08:00
Fotis Panagiotopoulos
5c4ee27398
Added formatted timestamps in syslog.
2021-03-09 00:52:59 +08:00
chao.an
4b5f6b138e
Revert "drivers/syslog: Prepend Process ID to syslog message"
...
This reverts commit 0cd3389459 .
2021-03-09 00:52:51 +08:00
丁欣童
c52a65890b
drivers/sensor: fakesensor support batch.
...
N/A
Change-Id: I8377e359ceb111519c4da7d84c2e0dc3b7234ad3
Signed-off-by: 丁欣童 <dingxintong@xiaomi.com >
2021-03-08 16:02:19 +08:00
ligd
8d1ec7b2d0
serial/serial_dma.c: fix warnnings
...
serial/serial_dma.c: In function ‘uart_recvchars_done’:
serial/serial_dma.c:407:7: warning: implicit declaration of function ‘nxsig_kill’ [-Wimplicit-function-declaration]
407 | nxsig_kill(dev->pid, signo);
| ^~~~~~~~~~
Change-Id: I9e1c0341ecce3033889d11fff9ec2b9e3dfe303b
Signed-off-by: ligd <liguiding1@xiaomi.com >
2021-03-06 17:35:56 +08:00
ligd
28a667f3f8
drivers/serial/Kconfig: fix configure warnning
...
warning: (TTY_SIGINT) selects SIG_SIGKILL_ACTION which has unmet direct dependencies (SIG_DEFAULT)
Change-Id: Ied9899d18156742ce4998b40d53a481262dcd84a
Signed-off-by: ligd <liguiding1@xiaomi.com >
2021-03-06 17:35:56 +08:00
Jiuzhu Dong
46a3d95047
telent: fix crash about telnet client connect
...
N/A
Change-Id: I9afa15a3d8848e77a70f33f5429b6942e6cf8773
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com >
2021-03-05 10:33:18 +08:00
Xiang Xiao
5aa9333731
mtd/progmem: Add up_progmem_read callback guarded by ARCH_HAVE_PROGMEM_READ
...
since sometime platform code need do some special action during memcpy
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
Change-Id: Id108ef4232376feab3e37e9b3aee9a7927a03bd4
2021-03-04 11:54:59 +08:00
Xiang Xiao
af81097850
mtd/progmem: Let MTD_PROGMEM depend on ARCH_HAVE_PROGMEM
...
and remove the reference of CONFIG_ARCH_HAVE_PROGMEM from code
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
Change-Id: I89a73f138d54718ee8bc9345958675d7a2a34ba8
2021-03-04 11:51:25 +08:00
dongjiuzhu1
bb65de6cae
net: unify socket info file descriptor
...
MIRTOS-255
Change-Id: Iee680c8ac07fe87fb6e7900b4f792e0f1ff5036d
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com >
2021-03-03 22:23:44 +08:00
chao.an
9c946e2af6
make/archive: replace the dependency to preprequisite list
...
Change-Id: Id63f3cd32906461a54cb016ef8078d4d922845e2
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-03-01 21:10:15 +08:00
ligd
df76063a35
Revert "net: unify socket info file descriptor"
...
This reverts commit 27b332283e .
2021-02-26 10:21:02 +08:00
Jiuzhu Dong
27b332283e
net: unify socket info file descriptor
...
N/A
Change-Id: I9bcd21564e6c97d3edbb38aed1748c114160ea36
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com >
2021-02-25 16:53:58 +08:00
Jiuzhu Dong
de92bc7fad
driver/sensor: gets the capacity of the hardware fifo
...
N/A
to hold the number of events
Change-Id: I58a9ad07913c7b189e1fd229ab22e91e220e01f6
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com >
2021-02-09 11:51:09 +08:00
Jiuzhu Dong
94f6836d14
driver/sensor: Fetch(with O_NONBLOCK) will directly return.
...
N/A
when sensor is disable.
Change-Id: I02c02aa447ee0b0d681082b4209ecd36e10f2547
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com >
2021-02-09 11:50:50 +08:00
Jiuzhu Dong
f44a5eeb4a
driver/sensor: replace lower->buffer_size with lower->buffer_number
...
N/A
more efficient
Change-Id: I0823b10248caf75e4dd6a5086ad230ba4a7298f6
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com >
2021-02-09 11:50:30 +08:00
丁欣童
96f1076140
Perfect fakesensor driver.
...
N/A
1.Add semaphore to wake up thread.
2.Unified use container_of.
3.Modify interval unit in order to keep pace
with set_interval() function.
Change-Id: I93ac931e9d004c98d3a5100d26fbdb97f420a9d3
Signed-off-by: 丁欣童 <dingxintong@xiaomi.com >
2021-02-08 14:10:29 +08:00
丁欣童
4fa2a5b4d1
Add fakesensor driver.
...
N/A
This driver can read data from csv file.
Change-Id: Ibf7af0553441b5c05a4a4f3e6ed4786472771be1
Signed-off-by: 丁欣童 <dingxintong@xiaomi.com >
2021-02-07 17:17:23 +08:00
Xiang Xiao
554ebdf851
mtd/ftl: Don't call ferr if return value equals -ENOTTY
...
MIRTOS4BES-22
since -ENOTTY is an expected code to indicate IOCTL isn't supported
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
Change-Id: I62cf58c514be696327ad769ab2f35099154bcb42
2021-02-05 11:17:59 +08:00
chao.an
0687f3e83c
drivers/bluetooth/bridge: correct the reference count condition
...
Change-Id: I771382efc2c61c96a3a20bffcea730c1a28568bc
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-01-26 21:32:50 +08:00
ligd
f4df6ab356
syslog_rpmsg: fix system crash when open CONFIG_SCHED_HAVE_PARENT
...
Reason:
nx_start use syslog at every early time event the idle thread not
full setup, then syslog_rpmsg -> work_queue -> work_signal ->
nxsig_kill -> rtcb is NULL -> crash
Fix:
sched work_queue after is_rpmsg_ept_ready() is true
Change-Id: I225469ff2526e4b810bf3e23473b55d57e64a1ff
2021-01-26 11:12:41 +08:00
chao.an
ed386f09eb
wireless/bluetooth: add packet read support
...
Change-Id: Ie4de39b36a6e21a3d2bc34edcc97e791452f76e7
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-01-15 20:12:02 +08:00
chao.an
96267fe88c
wireless/bluetooth: add BT/BLE dual mode bridge driver
...
Change-Id: I692228fda27df1a4249f11474ff50a1049becf4b
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-01-14 23:30:48 +08:00
chao.an
0cd3389459
drivers/syslog: Prepend Process ID to syslog message
...
Change-Id: I999045034a29acb06f39710436c06b427c543b00
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-01-14 11:56:12 +08:00
chao.an
043ed0e36b
wireless/bluetooth: move H4_* definition to external
...
Change-Id: Ie67a566857c5ed825b6dddc33832f936b5755fbe
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-01-13 16:51:35 +08:00
Xiang Xiao
5bdf084aed
bt_uart_shim: Correct the prototype of bt_uart_shim_getdevice
...
1.Add const to the path argument
2.Return the explicit type(struct btuart_lowerhalf_s *)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2021-01-13 16:12:36 +08:00
Xiang Xiao
09be85dcba
Fix nxstyle warning
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
Change-Id: Idf0acfc238d8598084b5d5c42e0a5e0045d98490
2021-01-13 16:12:22 +08:00
Xiang Xiao
a2c724bd27
bluetooth: Remove the unnecessary forward reference
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2021-01-13 16:10:41 +08:00
Xiang Xiao
18badb068e
fs: Make nx_vxxx and file_vxxx as internal functions
...
these functions are the implementation detail and then
don't need expose to external
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
Change-Id: Ief832391d5b42d1f1645907eb465631650490234
2021-01-13 14:02:24 +08:00
chao.an
1c33ac85f0
wireless/bluetooth: fix nxstyle warning
...
Change-Id: Ie7e2b535297a3ad8696dc574b768471fc44bba9e
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-01-11 13:53:11 +08:00
chao.an
60f03d2a92
wireless/bluetooth: add more hci event definitions
...
Change-Id: I35c034762335cf72f2d46ea383f0136361506e1e
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-01-11 10:18:11 +08:00
chao.an
8b671fd79c
wireless/bluetooth: remove the host dependency
...
Change-Id: I2f7073731fdf920ea69d79462275468f83f2cc4c
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-01-11 10:18:01 +08:00
ligd
87694f68a7
mqueue: add file_mq_xx for kernel use
...
Change-Id: Ida12f5938388cca2f233a4cde90277a218033645
Signed-off-by: ligd <liguiding1@xiaomi.com >
2021-01-08 14:31:37 +08:00
Xiang Xiao
0af4d1e617
fs: Remove the special hack for pty in nx_vopen
...
let's replace the content of file in place instead
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
Change-Id: I538910d55815c7aec656c05dba4eab2fa1d6d964
2021-01-08 11:17:57 +08:00
Xiang Xiao
028c6aa6e6
fs: Add file_pipe function
...
so pty don't need call nx_pipe and then file_detach
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
Change-Id: Ibb8d108abd76bafe53897e5fca35babcf3e1bae9
2021-01-08 11:16:15 +08:00
Xiang Xiao
085543a156
Move the declaration of nx_mkfifo/nx_pipe to nuttx/fs/fs.h
...
the new location is better than nuttx/drivers/drivers.h
since they are part of the file system api.
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2021-01-08 11:16:03 +08:00
ligd
6cc8b30aaf
serial: fix build break caused by previous patch
...
serial/serial_dma.c: In function 'uart_check_signo':
serial/serial_dma.c:82:18: error: 'SIGINT' undeclared (first use in this function)
82 | return SIGINT;
| ^~~~~~
This is canused by:
remove #include <nuttx/mqueue.h> from include/nuttx/fs/fs.h in:
d1ede9ac904d331ee6b22343f5d7f0ead7a113a6
Change-Id: I20260ad3bcceb30207c9c12041dd95de41e13777
2021-01-02 21:14:21 +08:00
zhongan
ae82517934
drivers/serial/uart_16550.c: fix complie warning.
...
N/A
Change-Id: I2c72d49734e7b3a534845ca3cddfe723f9789ba8
Signed-off-by: zhongan <zhongan@xiaomi.com >
2020-12-24 17:16:35 +08:00
chao.an
093e8b994f
crypto/arc4random: rename getrandom to arc4random_buf
...
Change-Id: I5c9f0c9acf5af71f01beceaf06ebe0a2c87676bc
Signed-off-by: chao.an <anchao@xiaomi.com >
2020-12-12 14:38:19 +08:00
chao.an
a44376ad2d
Revert "libs/libc: correct the getrandom(2) prototype"
...
This reverts commit 8411ef1873 .
Signed-off-by: chao.an <anchao@xiaomi.com >
Change-Id: I29e90e01f3b8a0460ee53831d38d96edf7d12ef2
2020-12-12 12:13:42 +08:00
chao.an
511d65392a
libs/libc: correct the getrandom(2) prototype
...
Reference here:
https://man7.org/linux/man-pages/man2/getrandom.2.html
Change-Id: I25b913c4b6533b3888cb2b9c62bb71505a0815c9
Signed-off-by: chao.an <anchao@xiaomi.com >
2020-12-07 14:44:25 +08:00
Huang Qi
099c051473
drivers/audio: Make audio_null play at real speed
...
N/A
Signed-off-by: Huang Qi <huangqi3@xiaomi.com >
Change-Id: I69a52ee2b03836006f613c4dc41837b6123ad2d5
2020-11-30 17:31:21 +08:00
chao.an
90dc86655c
style/Makefile: remove unnecessary trailing whitespace
...
N/A
Signed-off-by: chao.an <anchao@xiaomi.com >
2020-11-30 11:20:05 +08:00
liuhaitao
c24f178af7
Merge remote-tracking branch 'mirtos/master' into dev
...
Change-Id: I85394b24ce27d20ecbb130b85d844ab540507031
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com >
2020-11-25 14:44:27 +08:00
ligd
09778c38b1
rptun: fix rptun rpmsg_unregister_callback fault
...
N/A
Change-Id: I6447e2ec71a4020533336f35e2aa97a860742e63
Signed-off-by: ligd <liguiding1@xiaomi.com >
2020-11-24 21:52:29 -08:00