ChenWen
2abb75fee7
risc-v/esp32c3: Fix some ESP32-C3 Wi-Fi driver issues
2021-07-15 23:20:29 -07:00
Roberto Bucher
fc810e3db4
Restored previous files
2021-07-15 23:19:59 -07:00
Jiuzhu Dong
9e4352ad64
group/child_status: Dynamically expand group child_status
...
Change-Id: I4033e93b6adceb01eebe1c2a12ffe8737042b1a6
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-07-15 20:14:57 -07:00
Xiang Xiao
cee43ce280
arch/sim: Initialize the idle thread stack info correctly
...
and change the default value of IDLETHREAD_STACKSIZE to 65536
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ia54efbbca4b69706150bc4178844b316688a104e
2021-07-16 08:37:53 +09:00
Xiang Xiao
a5ac4463c2
sched/init: initialize all idle thread's tl_task
...
since this patch forget to initialize the idle tls info:
commit 50c08bf45b
Author: Huang Qi <huangqi3@xiaomi.com>
Date: Tue Jun 29 16:01:02 2021 +0800
libc: Move pthread_key_destructor to task_info_s
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: If7d0c0118323fa3dcf44081d675cd57b14eba75a
2021-07-16 08:37:53 +09:00
Xiang Xiao
bd74dc2b88
sched/init: Remove the unnessary CONFIG_SMP check
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I2afaf310b411993e37140b3d7977968a7fda5c3b
2021-07-16 08:37:53 +09:00
David Sidrane
da01a39e39
Revert "Kinetis:Serial No DMA Poll needed"
...
This reverts commit e659ae83b0
.
It turns out the DMA polling is needed. The IDLE INT will
not happen on repetitive signals.
2021-07-15 12:28:04 -07:00
Daniel P. Carvalho
002945cc6c
Add DAC example to nucleo-g431kb
2021-07-15 14:33:15 -03:00
Daniel P. Carvalho
3ca46ea8e2
Change DAC driver to support STM32G4.
2021-07-15 14:33:15 -03:00
Abdelatif Guettouche
e29d14ad66
boards/xtensa/esp32: Delete the drivers directory, it's empty, the build
...
system will pick the common dummy one.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-07-15 08:32:22 -03:00
Abdelatif Guettouche
a6632f969a
boards/xtensa/esp32: Make board level linker script take precedence over
...
the common scripts.
This allows having a more costumized linker script per board.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-07-15 08:32:22 -03:00
Abdelatif Guettouche
0aa35850fc
boards/xtensa/esp32: Update Make.defs to account for the new location of
...
the linker scripts.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-07-15 08:32:22 -03:00
Abdelatif Guettouche
e45facf6a8
boards/xtensa/esp32: Move the linker scripts to the common directory.
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-07-15 08:32:22 -03:00
buyuer
bcc876ec6c
Delete fakesensor init.
...
Because there are no csv file exit.
Signed-off-by: buyuer <dingddding@163.com>
2021-07-15 02:25:32 -07:00
buyuer
0d36b2d889
Fakesensor: support gps by read nema csv.
...
Currently, can only analyze GGA statement.
Signed-off-by: buyuer <dingddding@163.com>
2021-07-15 02:25:32 -07:00
Jiuzhu Dong
9d264af4fc
rptun: fix compile break when disable openamp
...
Change-Id: I63251524d94fae43bfb0a71c324d55bf91d363f8
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-07-14 23:36:14 -07:00
David Sidrane
3e4b3ada5e
syslog:syslog_channel:Fix compiler warnings
...
syslog_channel.c:98:8: error: unknown type name 'sem_t'
syslog/syslog_channel.c:99:14: error: 'g_syslog_default_sem'
defined but not used
2021-07-14 17:38:30 -07:00
mage1
def007e2d7
add #undef for some libc function
...
since it's useful to redirect these functions to others
sometime(e.g. validate the memory before write).
Change-Id: I6253a9231af8809e8362f4bc5a1bd67fb094c3b0
2021-07-14 15:09:58 -03:00
Xiang Xiao
82c17fd6fa
sim/nsh: Enable the attributes and soflinks of pseduo file system
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I3cb610ab6325efae529b66d2168e6501aa20f25d
2021-07-14 10:35:15 -03:00
Xiang Xiao
a0f2f6c362
fs: Move umask to task_info_s
...
and implement the related semantic correctly
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I0587341e2c505e41b5e24e55dba039ed200d65f2
2021-07-14 10:35:15 -03:00
Xiang Xiao
0148e1d501
fs: Support the root file system attributes(mode, uid, gid and time)
...
Note: all attributes is guarded by PSEUDOFS_ATTRIBUTES to save the space
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I664d60382e356068fd920f08aca5b4a49d8d92a9
2021-07-14 10:35:15 -03:00
YAMAMOTO Takashi
09f3a1ec8e
tcp_send_buffered: throttle IOB allocations for send
...
Consider a bi-directional TCP connection:
1. we use all IOBs for tx queue
2. we advertize zero recv window because we have no free IOBs
3. if the peer tcp does the same thing,
both sides advertize zero window and can not drain the tx queue.
For a similar stall to happen, the peer doesn't need to be
a naive tcp implementation like nuttx. A naive application blocking
on send() without draining its read buffer is enough.
(Probably such an application should be fixed to drain rx even
when tx is full. However, it's another story.)
This commit avoids the situation by prevent tx from grabbing
the all IOBs in the first place. (assuming CONFIG_IOB_THROTTLE > 0)
2021-07-14 15:08:18 +08:00
ligd
136662f5f9
serial: add ctrl+@ to force crash system for debugging
...
Change-Id: Iee65ac6c94ff298cfadf4429936b3744c16b8698
Signed-off-by: ligd <liguiding1@xiaomi.com>
2021-07-13 14:45:09 -03:00
Xiang Xiao
c1250dcbd1
sim/nsh: Enable CONFIG_FS_RAMMAP
...
to catch the ram map related build issue
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-07-13 14:39:14 -03:00
Xiang Xiao
1f3a8b5adf
Fix mmap compiler error when CONFIG_FS_RAMMAP equals y
...
fs_munmap.c:122:15: error: ‘struct fs_rammap_s’ has no member named ‘kernel’
fs_rammap.c:110:52: error: expected ‘:’ before ‘;’ token
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-07-13 14:39:14 -03:00
Abdelatif Guettouche
e2705cd86c
boards/xtensa/esp32: Add license headers to the linker script files and
...
correct some old names.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouch@espressif.com>
2021-07-13 10:24:42 -07:00
Fotis Panagiotopoulos
7f361daf60
lpc17_40: style fix in WDT definitions.
2021-07-13 08:32:42 -07:00
Xiang Xiao
30135b5f18
vfs: stat_recursive should return -ENOSYS if stat callback is NULL
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ic342b6fff112d24c7355ddc8aa0937dfc544f1b4
2021-07-13 11:32:52 -03:00
Xiang Xiao
d539998446
fs: fstat shouldn't follow the symbol link
...
since the decision is already done at open time(from path to fd)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Idc1df3c1d7fe60927b0643173f3f40895aaffd4c
2021-07-13 10:05:50 -03:00
Michal Lenc
3d26c3efb6
fix nxstyle errors and warnings
...
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2021-07-13 09:55:29 -03:00
Michal Lenc
cafcb0508f
Documentation/platforms/arm/imxrt: added information regarding tickless mode support
...
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2021-07-13 09:55:29 -03:00
Michal Lenc
28ad7b6376
boards/arm/imxrt/teensy-4.x: update pikron-bb configuration to use tickless mode
...
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2021-07-13 09:55:29 -03:00
Michal Lenc
b2a9f853e8
arch/arm/src/imxrt: added support for Tickless OS
...
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2021-07-13 09:55:29 -03:00
chao.an
83f7c08f65
net/tcp: only print the error when disable the TCP_NODELAY
...
Since we do not have the Nagle's algorithm,
the TCP_NODELAY socket option is enabled by default.
Change-Id: I0c8619bb06cf418f7eded5bd72ac512b349cacc5
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-07-13 09:44:19 -03:00
chao.an
80bfe13b54
drivers/rptun: replace the notification mech from signal to semaphore
...
Change-Id: Ic06b945effa876f5aff2f8ddc1fe5775c75f77b1
Signed-off-by: chao.an <anchao@xiaomi.com>
(cherry picked from commit 8df58e5675cab032da16e371c4686929a19ee897)
2021-07-13 09:44:00 -03:00
Huang Qi
73a0c1d095
libc/string: Skip compile the c version when the optimization is enabled
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
Change-Id: Idbdea04f748243fb9baf7b39d0ed997f7e9a8e3c
2021-07-13 09:42:23 -03:00
Masayuki Ishikawa
fec3bb2a0c
boards: esp32-devkitc: Update wapi_smp/defconfig
...
Summary:
- This commit adds several configs to test Wi-Fi networking
Impact:
- wapi_smp only
Testing:
- Tested with nfsmount, telnet, ping, webserver
- telnet + ping, nfsmount + ping work
- NOTE: nfs + telnet stress test might stop
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2021-07-13 05:12:40 -07:00
Virus.V
063e1d6b74
risc-v/bl602: update wifi firmware and some fixup.
...
1. Added check for repeated connection wifi operations.
2. Invoke the carrier on/off operation in the wrong place.
3. The RTC initialization time is incorrect.
4. Reserve 32K I-Cache space in the linker script.
5. Increase the size of the wifi firmware receiving buffer.
Signed-off-by: Virus.V <virusv@live.com>
2021-07-13 05:12:12 -07:00
Virus.V
4e950c3e30
risc-v/bl602: add boardctl support
...
Signed-off-by: Virus.V <virusv@live.com>
Change-Id: I74280f5cb801e923fb987009ae007aa02677b14d
2021-07-13 02:50:40 -07:00
Sara Souza
48f2b10ee3
risc-v/esp32-c3: Use systimer 0 to RTOS TICK
2021-07-12 21:03:27 -07:00
Sara Souza
c7bf5c7a1d
xtensa/esp32: Make UART TX DMA depends on EXPERIMENTAL and adds caveats regarding its use
2021-07-12 21:03:06 -07:00
Sara Souza
2abeba041d
xtensa/esp32: Fixes termios issue.
2021-07-12 21:02:26 -07:00
zhouliang3
f230ba7b34
Increase the function of crc8 to use custom polynomials
...
N/A
Signed-off-by: zhouliang3 <zhouliang3@xiaomi.com>
Change-Id: I3c53bf25541c1811a05d025b39dfe24cb0613b72
(cherry picked from commit 07b2bd769e608d4c46f8e039d091514b1b3d3ff0)
2021-07-12 20:33:21 -07:00
Xiang Xiao
c3c4053263
fs/profs: Add ordblks in meminfo_progmem
...
forget in commit:
Author: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
Date: Wed Apr 28 11:05:20 2021 +0800
cmd/free: add nused/nfree field in command free
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-07-12 16:49:56 -03:00
Xiang Xiao
7ef29ecce6
profs: Print StackAlloc by procfs_snprintf
...
since snprintf return the wrong number in case of insufficient buffer
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-07-12 16:49:56 -03:00
Huang Qi
e5c278981a
net: Rename IP_TTL to IP_TTL_DEFAULT
...
Since a SOL option IP_TTL exist, we should rename this IP_TTL
in netconfig.h to avoid confusion.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
Change-Id: Ib04c36553f23bce8d362e97294a8b83eaa050cf3
2021-07-12 16:30:37 -03:00
Huang Qi
c303a12f26
include/netinet: Add missing IP_TTL definition
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
Change-Id: Ic0c4bcb840952a4ccf7f262306ba0c3d43e01811
2021-07-12 16:30:37 -03:00
chao.an
80b7394a95
sys/poll: add POLLRDHUP definition
...
Change-Id: I1117279d9a620138789256d699ae32d47eab3a90
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-07-12 16:13:40 -03:00
chao.an
a018a3a26b
bluetooth/filter: add more OGF definition
...
Change-Id: I4f1b98dc63ab2d9eeb523b8040aae88ea285bb9a
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-07-12 16:13:15 -03:00
Peter Bee
695935217b
libc/sysconf: Add MONOTONIC_CLOCK for consistency
...
MIRTOS-107
Add _SC_MONOTONIC_CLOCK to sysconf when CONFIG_CLOCK_MONOTONIC is set
Change-Id: I0ae57798ebe89247a10ccb517e128866d1f907de
Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
2021-07-12 16:07:25 -03:00