Commit Graph

41820 Commits

Author SHA1 Message Date
chao.an df71da9450 bluetooth/filter: add more OGF into ble blacklist
Change-Id: I4f1b98dc63ab2d9eeb523b8040aae88ea285bb9a
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-05-31 21:00:01 +08:00
chao.an 438774a560 bluetooth: fix exclusive deadlock on high priority thread
Change-Id: I0653374507b4372dce1ec1274b38da72f3ac6f03
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-05-31 21:00:01 +08:00
panran 4525cfde3d nuttx:Correct code comment errors
N/A

Signed-off-by: panran <panran@xiaomi.com>
Change-Id: I9c9fa0855ae7851b7268a7ace6b5a86d5562a6b1
2021-05-31 20:01:46 +08:00
liuhaitao 13f2aa3d35 build.sh: correct board for sdk since custom boards used now
Change-Id: Ib920048966ed1b17cd0ff4c5533ec4e915fb52a9
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2021-05-28 14:05:42 +08:00
chao.an caecd75b41 wirelss/bluetooth/bt_buf: add ISO buffer type
Change-Id: I9de3506e9c8f70bbcefafda3319be194dcb7cb0b
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-05-25 21:56:12 +08:00
chao.an 1b4e9fc7da net/dev: link the net device as order of registration
Change-Id: Idd5cc1e1ab01cd0e77d4ca4b7c4ed08b52d668a2
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-05-25 21:53:36 +08:00
Jiuzhu Dong 78f4220106 syslog: set default value for SYSLOG_DEFAULT based on the usage of other syslog channels.
N/A

Change-Id: I702a7e3d4fee2f17419a8b7e184b2646b871b64a
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-05-25 15:22:10 +08:00
liuhaitao 034fa07b2f Revert "tools/mkdeps: generate the full path dependencies"
Revert it to make distclean rightly.

This reverts commit b26784fc05.

Change-Id: Ib389830c026c6907f6b31d01e3129902e96699ed
2021-05-21 16:19:19 +08:00
Jiuzhu Dong 418923540d syslog/ramlog: initialize g_sysdev based on the current ramlog buffer
N/A
by ramlog_initbuf();
Algorithm: Scan the entire ramlog buffer, the position of the head
is the first byte is not empty and second byte is empty. The position
of the tail is the first byte is empty and second byte is not empty.

Change-Id: Ieb9161bd670481cd335e9a901287cd5e589f0849
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-05-20 22:28:11 +08:00
Jiuzhu Dong e318b040f8 syslog/syslog_channel: fix compile warning
N/A

syslog/syslog_channel.c: In function ‘syslog_default_putc’:
syslog/syslog_channel.c:139:10: warning: implicit declaration of function ‘up_putc’ [-Wimplicit-function-declaration]
  139 |   return up_putc(ch);
      |          ^~~~~~~

Change-Id: I30f607c000fefc6a1189397e6ae2320c562a67ec
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-05-20 22:04:25 +08:00
Jiuzhu Dong bd10e5716d syslog/ramlog: save ramlog to fixed section
N/A

we can reload ramlog after hot reboot.

Change-Id: Iee7c105a2358075302121d6bf0047bc54d07e9a6
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-05-20 20:06:38 +08:00
Jiuzhu Dong d2e9d1bf02 syslog: fix bug for support multi syslog channel
N/A

Change-Id: I6d8b5bce8071f11b1903fe1fa0fe8dbc34bf3a09
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-05-20 20:03:37 +08:00
Jiuzhu Dong 36a0dae82a syslog: support ramlog, up_putc, rpmsg_syslog coexist
N/A

Change-Id: Ia58c7e195da7ad48f3018a131a78b2f01f94e741
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-05-20 11:04:39 +08:00
Xiang Xiao 191e010c5f include/spawn.h: Add POSIX_SPAWN_SETSID definition
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I7ad654a1cb9b74a9f27f52c88fffa8b487a48f33
2021-05-17 20:03:49 +08:00
Xiang Xiao 88326eac8d libc/pwd: Add NSS_BUFLEN_PASSWD macro
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I739679038b2004cc45d78f540831ba81b088a586
2021-05-17 19:58:28 +08:00
Xiang Xiao 6bb3366fe2 libc: Implement openpty function
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I36e02af0145cd6e740766e7484cc9d5ce410e5e4
2021-05-17 19:58:06 +08:00
Xiang Xiao 874e564c89 drivers/serial: Change the default value of SERIAL_NPOLLWAITERS to 4
since the console is normally opened three time as stdin, stdout and
stderr and remove the dependence on STANDARD_SERIAL because other type
of serial drivers also support the poll through the same codebase.

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ie68322c4647cc838b295491329969869d6ba310b
2021-05-17 19:55:40 +08:00
chao.an 9b94919996 sim/bringup: enable uart bridge
Change-Id: Ib843db54ef0d82e9e808663f5f415123c59b0755
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-05-14 11:54:40 +08:00
Jiuzhu Dong 3c58f96ddb group/group_signal: cancel dispatch signal when the number
MIRTOS-647

of members in the group is zero.

Repetition step:
If using waitpid() to wait a task has exited, the waitpid will use
nxsing_kill with signal number 0 to determine if that task is still
alive, and will call group_signal to dispatch signal for each member
of the group and perform signal handing checks, it will assert at
sched/group/group_signal.c:261.

Change-Id: I75ef015a261101277436d742897ce68fed44b5da
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
(cherry picked from commit 73008471e4e4a5b1e3aa6cc0d25b5295aec32bb1)
2021-05-12 17:50:38 +08:00
liuhaitao cc2966faa6 net/arp: fix merge error in upgrade nuttx-10.1
Change-Id: I397ef438b7bef1f6fa1d30d2edb5713cc2bf0d34
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2021-05-12 16:37:40 +08:00
Jiuzhu Dong 639c2c5cb2 syslog/Kconfig: support config multi syslog channel
N/A

delete choice for select syslog log device

Change-Id: Ifc02e687526506afac46febec375062949869356
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
(cherry picked from commit 795f2d56dad1f30fd23ae1868226ee8379fd4f93)
2021-05-12 13:08:40 +08:00
Jiuzhu Dong 9b4b8cb0ee sched/init: don't check remain stack for idle task
N/A

Change-Id: I0bd5808efabd395157d2530f2423b18f0c1eeabd
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-05-11 21:51:15 +08:00
zhanghu cfcef34ad6 nuttx net warning:add initialization of pointer *aiocbp in lio_listio
nuttx net warning:cancel the conflict between weak and inline in unwind_arch_adjustment

Change-Id: I0ac7571ca27191b69acdc31f5bc07943c4d87e58
2021-05-11 15:21:43 +08:00
Dong Heng 2af7861b31 riscv/esp32c3: Fix SPI Flash driver internal chip data address error
"g_rom_flashchip" is not in fixed address between all ESP32-C3's different versions.
2021-05-10 19:23:33 +08:00
Gustavo Henrique Nihei 16dd2260f1 risc-v/esp32c3: Uniformize alignment for assembly instructions 2021-05-10 19:23:33 +08:00
Gustavo Henrique Nihei 6b5fe76506 risc-v/esp32c3: Improve interrupt handler documentation 2021-05-10 19:23:33 +08:00
Gustavo Henrique Nihei f948f9fa8d risc-v/esp32c3: Reorder register restoration on interrupt handler epiloque 2021-05-10 19:23:33 +08:00
Gustavo Henrique Nihei 401a1bf751 risc-v/esp32c3: Fix wrong references to ESP32 2021-05-10 19:23:33 +08:00
Gustavo Henrique Nihei a4b24762ea boards/esp32: Allocate .noinit in a dedicated section 2021-05-10 19:23:33 +08:00
Gustavo Henrique Nihei 2bb2d2bc0d boards/esp32c3-devkit: Allocate .noinit in a dedicated section
Previously it was being allocated into .bss section after the _ebss
address. Although functional, this is not intuitive.
2021-05-10 19:23:33 +08:00
Gustavo Henrique Nihei 5a76c52ae2 arch/risc-v: Fix stack alignment according to calling convention
The RISC-V Integer Calling Convention states that the stack pointer
shall always be aligned to a 128-bit boundary upon procedure entry, both
for RV32* and RV64* ISAs (exception to the RV32E ISA, which must follow a
specific convention)
2021-05-10 19:23:33 +08:00
Gustavo Henrique Nihei e0e9f4db1c xtensa/esp32: Change ESP32_RT_TIMER_TASK_PRIORITY comment into help text 2021-05-10 19:23:33 +08:00
Gustavo Henrique Nihei 3782ca8dcc xtensa/esp32: Add missing default value for CONFIG_ESP32_GPIO_IRQ 2021-05-10 19:23:33 +08:00
Gustavo Henrique Nihei 91039bff97 xtensa/esp32: Uniformize Kconfig alignment and styling 2021-05-10 19:23:33 +08:00
Gustavo Henrique Nihei e06fa3cc7e xtensa/esp32: Remove inconsistent usage of comment command 2021-05-10 19:23:33 +08:00
Gustavo Henrique Nihei a35c140d0c xtensa/esp32: Remove redundant dependency 2021-05-10 19:23:33 +08:00
Gustavo Henrique Nihei bfb8eec64a risc-v/esp32c3: Change ESP32C3_RT_TIMER_TASK_PRIORITY comment into help text 2021-05-10 19:23:33 +08:00
Gustavo Henrique Nihei b85090684d risc-v/esp32c3: Uniformize Kconfig alignment and styling 2021-05-10 19:23:33 +08:00
Gustavo Henrique Nihei 672d879d34 risc-v/esp32c3: Remove inconsistent usage of comment command 2021-05-10 19:23:33 +08:00
Gustavo Henrique Nihei 0d32ff6a5c risc-v/esp32c3: Remove redundant dependency 2021-05-10 19:23:33 +08:00
Byron Ellacott 70ab250c5d Add experimental support for an eZ80 toolchain using llvm and GNU binutils.
An additional fix for the RTC driver to lock the RTC after setting values instead of unlocking it is included.
2021-05-10 19:23:33 +08:00
chenwen 98d97f27fd xtensa/esp32: Fix crash issue caused by null pointer operation 2021-05-10 19:23:33 +08:00
Gustavo Henrique Nihei ade6997643 boards/esp32c3-devkit: Add SPI character device driver 2021-05-10 19:23:33 +08:00
Gustavo Henrique Nihei 124a34368c boards/esp32c3-devkit: Add board-specific SPI functions 2021-05-10 19:23:33 +08:00
Gustavo Henrique Nihei 0e0c7a9a47 risc-v/esp32c3: Add driver for General Purpose SPI Master 2021-05-10 19:23:33 +08:00
Huang Qi 9e5aa98495 arch/sim: Fix warning of duplicated object
N/A

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
Change-Id: I91cf182a396fc8f8024faf65c1cc7bf45cf34bbc
2021-05-08 22:11:52 +08:00
ligd 534d1bb3d2 sched: add CONFIG_SCHED_CRITMONITOR_XX for debugging system lantency
Change-Id: Id2a75db28caf1a89552e33391bd90f85cde08dbd
Signed-off-by: ligd <liguiding1@xiaomi.com>
2021-05-08 20:49:51 +08:00
ligd 74d29cf864 sched_critmon: add thread run time to critmonitor
Change-Id: Ib44e45f0f9a1b249b4067db324c9dbdf0cf3f288
Signed-off-by: ligd <liguiding1@xiaomi.com>
(cherry picked from commit 08aeeb5981aeb8787a9d259506185650638b9970)
2021-05-08 20:49:40 +08:00
Xiang Xiao 88ea42d3b1 libc/termios: Implement TCSADRAIN and TCSAFLUSH for tcsetattr
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: If87a4931cd5a55e064f58c19a22c7ce13f538000
2021-05-08 20:49:31 +08:00
Xiang Xiao 71c942ea51 libc/pty: Make ptsname[_r] support PSEUDOTERM_BSD config too
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I82a60ded48ea3437bd5f2b4fe328294d7077b040
2021-05-08 20:49:11 +08:00