liuhaitao
e3166ecac0
Revert "make/archive: replace the dependency to preprequisite list"
...
This reverts commit 9c946e2af6 .
Change-Id: Ia8b7726d036c861d5eda51765d330e894e0d214a
2021-05-07 16:38:39 +08:00
ligd
4a219c2889
serial: add ctrl+@ to force crash system for debugging
...
Change-Id: Iee65ac6c94ff298cfadf4429936b3744c16b8698
Signed-off-by: ligd <liguiding1@xiaomi.com >
(cherry picked from commit 659679bbb0d7b405e19eb00b13c5b8b388eaf68d)
2021-05-06 22:05:07 +08:00
Jiuzhu Dong
6b78e90fc1
syslog/ramlog: get ramlog size by ioctl
...
N/A
Change-Id: I092334f3247c6c13f3be35169f192bd0777435ef
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com >
Signed-off-by: ligd <liguiding1@xiaomi.com >
2021-04-25 14:22:05 +08:00
Jiuzhu Dong
d3843bf334
lirc: fix bug about lirc_raw_event
...
N/A
Change-Id: If00d0a7e4e4f9a0d9119b6a170cffd993f23f71a
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com >
2021-04-09 12:28:54 +08:00
Xiang Xiao
0d12e8bae5
libc/assert: Reference the expression in all case
...
to avoid the warning "defined but not used"
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
Change-Id: I55b7c092d0f2e5882fc1784987657c10cdf2d90b
2021-04-06 14:47:51 +08:00
chao.an
823d2c6243
wireless/bluetooth: add pending command filter
...
Change-Id: I4243ffce4299154452cf232fa4d98b568ff86234
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-03-24 18:31:46 +08:00
chao.an
49dda1dd8f
wireless/bluetooth: break the pending read if circbuf is available
...
Change-Id: Ie3496c9f46bd1890dcbab157d5bbc1d2ce2b4da1
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-03-24 18:29:25 +08:00
Jiuzhu Dong
35229a917b
rtc/rpmsg: support server and client to set time each other
...
N/A
Change-Id: I5d13f424cb636a79a9fd98c275786771c213ddb8
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com >
2021-03-22 12:16:58 +08:00
Jiuzhu Dong
d07669e2ed
fs: delete NFILE_DESCRIPTORS for allocating dynamically
...
N/A
Change-Id: Id06d215063796d222b9792d25ab2d6742167729f
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com >
2021-03-17 21:15:04 +08:00
Jiuzhu Dong
07a69b728c
rpmsg/rtc: add server to response client request about getting time
...
N/A
Change-Id: I1380adcb8a4f489353666b98f7143fe171d7d798
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com >
2021-03-16 15:16:12 +08:00
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