Petro Karashchenko
155566c592
boards/sim: enable SIM_WALLTIME_SIGNAL for citest
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-08-02 19:48:24 -07:00
Petro Karashchenko
e26b015644
Revert "tools/ci/testrun: increase ostest timeout on CI"
...
This reverts commit eab86b72c4
.
2023-08-02 19:48:24 -07:00
zhangyuan21
0cb8fdfe83
usbdev: set ep0 priv only not define CONFIG_USBDEV_COMPOSITE
...
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-08-02 17:42:28 -03:00
zhangyuan21
9893bfd45a
rndis: fixed wrong incorrect macro definition
...
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-08-02 17:42:28 -03:00
Tiago Medicci Serrano
17447622bf
esp32s3/wifi: support the Wi-Fi to work with protected build
...
- Added Wi-Fi related symbols to the kernel-space linker;
- Allocate more RAM to the kernel (to be useb by the Wi-Fi driver).
- Create a specific defconfig.
2023-08-02 21:38:44 +02:00
Tiago Medicci Serrano
1197a80741
esp32s3: Enhance protected build linker scripts and memory layout
...
Instead of setting kernel/user space instruction and data ROM as
hard-coded values on linker, set them according to the max size
of the kernel image set by CONFIG_ESP32S3_KERNEL_IMAGE_SIZE. This
is done by making KIROM, UIROM, KDROM and UDROM dependent on the
kernel size value. Also, override CONFIG_NUTTX_USERSPACE config
according to CONFIG_ESP32S3_KERNEL_IMAGE_SIZE by using a custom
PREBUILD definition.
2023-08-02 21:38:44 +02:00
raiden00pl
4f83811a09
nucleo-f446re: add systemview configuration
2023-08-02 08:05:37 -07:00
raiden00pl
1d858ec03f
stm32: initialize perf counter if sytemview enabled
2023-08-02 08:05:37 -07:00
raiden00pl
3fb378a54d
note_initialize.c: add debug messages
2023-08-02 08:05:37 -07:00
raiden00pl
dbc28cbf75
note_sysview.c: note_sysview_initialize should return error value
2023-08-02 08:05:37 -07:00
raiden00pl
7f6cb66dc0
note_driver.c: fix warning
...
CC: note/note_driver.c note/note_driver.c:180:19: warning: 'g_note_lock' defined but not used [-Wunused-variable]
180 | static spinlock_t g_note_lock;
|
2023-08-02 08:05:37 -07:00
simbit18
8ce16e9bd9
Fix Kconfig style
...
Remove spaces from Kconfig
2023-08-02 16:57:09 +02:00
zhangyuan21
3625385541
arch_memcpy: Optimize arch memcpy for armv7-m and armv8-m
...
Use ldm and stm instruction to optimize performance when
both src and dst are 32-bit aligned.
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-08-02 16:52:25 +02:00
Zhe Weng
d563717827
fs/romfs: Fix FIOC_FILEPATH for dup'ed file
...
The FIOC_FILEPATH ioctl needs rf->rf_path, which is not initialized for
dup'ed romfs file and cause problems.
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-08-02 06:12:25 -07:00
Bowen Wang
477602e657
mm_heap: mm dump and panic only valid for the heap own by OS
...
When other code use nuttx memory manager by call mm_xx api directly,
it better to let other code to control weather dump or panic when
malloc failed.
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2023-08-02 06:11:59 -07:00
Tiago Medicci Serrano
ea2ec888b8
Build system: Add PREBUILD definition
...
Add PREBUILD definition and `prebuild` recipe to call it before
the `mkconfig` tool, at the beginning of the build process. This
`prebuild` step enables running CPU/board-specific operations
before building the firmware, like tweaking or overriding configs
that need to be set after the board configuration.
2023-08-02 06:10:57 -07:00
Fotis Panagiotopoulos
0fcf6f2e41
open: Use file mode only when O_CREAT is specified.
2023-08-02 06:08:20 -07:00
Alan Carvalho de Assis
bace5e9b59
Fix some ESP32 Peripheral help comments
2023-08-02 05:40:42 -07:00
yangguangcai
05af311e68
qemu:add qemu rtc driver.
...
Signed-off-by: yangguangcai <yangguangcai@xiaomi.com>
2023-08-02 03:27:55 -07:00
shipei
238eba14ad
alsa/sim_alsa.c:fix ioctl AUDIOIOC_GETBUFFERINFO error
...
when executing ioctl AUDIOIOC_GETBUFFERINFO,the priv->pcm is still NULL,
so it will return -ENXIO,we can remove this check at the start of ioctl
and add in the case where it is used.
Signed-off-by: shipei <shipei@xiaomi.com>
2023-08-02 03:27:12 -07:00
dongjiuzhu1
e9b22401b9
drivers/sensors/fakegps: support fakegps base on gps driver
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-08-01 23:09:46 -07:00
dongjiuzhu1
2945252b71
sensor/gps: support gps driver model
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-08-01 23:09:46 -07:00
yintao
e503f86256
mm/cirbuf: Fix cannot continue read when tail > head
...
when head=0, tail has not yet rolled back, and at this time tail>head still has data to read
Signed-off-by: yintao <yintao@xiaomi.com>
2023-08-01 23:09:46 -07:00
dongjiuzhu1
33bd797bb3
mm/circbuf: skip buffer content according position in circbuf_peekat
...
The circbuf_peekat should copy valid content from the specfied position
of buffer, so skip the area from this position to the tail.
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-08-01 23:09:46 -07:00
dongjiuzhu1
1920ff31d3
libs/libc/gpsutils/minmea: move minmea library from apps/gpsutils
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-08-01 23:09:46 -07:00
wangyingdong
032a456c83
net/local:Add support for MSG_DONTWAIT to SOCK_STREAM
...
Signed-off-by: wangyingdong <wangyingdong@xiaomi.com>
2023-08-01 22:55:40 -07:00
hujun5
0b2b5b781c
fs: remove sched_[un]lock
...
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2023-08-01 23:15:37 +02:00
Xiang Xiao
82e76961cd
serial: Simplify the echo process
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-08-01 15:59:28 -03:00
Michal Lenc
888b8e59dd
pcf8574: fix incorrect function comment
...
Comment for pcf8574_register_update() function was incorrect as it was
probably copied from different driver function.
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2023-08-01 20:36:54 +02:00
simbit18
1b8714f79f
fix incorrect comments
...
boards/arm/cxd56xx/drivers/sensors/bmi160_scu.c: fix incorrect comments to the Right of Statements.
drivers/sensors/ak09912.c: fix incorrect function description ak09912_putreg8 and ak09912_getreg8
2023-08-01 13:24:16 -04:00
Peter van der Perk
2e3c144f44
imxrt: fix txdeadline add ecc/fd support
2023-08-01 10:10:41 -07:00
yangyalei
6a5cf6d3ff
ltp: fix review questions
...
Signed-off-by: yangyalei <yangyalei@xiaomi.com>
2023-08-01 09:35:36 -07:00
zhangyuan21
8f39ba6ae4
arch: update g_running_tasks when context switch occurred
...
When supporting high-priority interrupts, updating the
g_running_tasks within a high-priority interrupt may be
cause problems. The g_running_tasks should only be updated
when it is determined that a task context switch has occurred.
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-08-01 09:35:18 -07:00
simbit18
34c56139aa
drivers/sensors/bmi270.c: fix define BMI270_TEMPERATURE
...
fix BMI160_TEMPERATURE_0 ->BMI270_TEMPERATURE_0
fix BMI270_TEMPERATURE_1 ->BMI270_TEMPERATURE_1
2023-08-01 18:06:59 +02:00
lpxiao
3341a6d2a9
Optimize stm32 RTC accuracy
2023-08-01 18:02:09 +02:00
guanyi
55a727b1ce
ltp: sigprocmask fix
...
1. change signal/sig_procmask.c and pthread/pthread_sigmask.c together
2. clear signals unconditionally
Signed-off-by: guanyi <guanyi@xiaomi.com>
2023-07-31 22:29:31 -07:00
dongjiuzhu1
f8ce0cd4ca
fs/pseudofile: config pseudofile feature
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-07-31 22:22:58 -07:00
dongjiuzhu1
8336ee78b8
vfs/fs_pseudofile: fix coverity issue
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-07-31 22:22:58 -07:00
dongjiuzhu1
0f6d0eac52
fs/pesudofile: support pseudo-file operation
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-07-31 22:22:58 -07:00
dongjiuzhu1
917728bad9
driver/ftl: pass the number of eraseblock for ftl_get_cblock
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-07-31 22:22:25 -07:00
dongjiuzhu1
80004ef07d
fs/nfs: fix coding style issue
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-07-31 21:41:30 -07:00
Petro Karashchenko
eab86b72c4
tools/ci/testrun: increase ostest timeout on CI
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-07-31 18:58:48 -07:00
Petro Karashchenko
effb0a1cad
drivers: restore C89 compatibility by avoiding binary constants
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-07-31 18:56:40 -07:00
Petro Karashchenko
f3b5465969
drivers: remove redundant parentheses
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-07-31 18:56:40 -07:00
Petro Karashchenko
f00c6d3047
arch/arm: fix declaration of extern types
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-07-31 18:56:40 -07:00
Petro Karashchenko
6621dc016b
net/udp: remove FAR from non-pointer variables
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-07-31 18:56:40 -07:00
yangyalei
f40eee50d6
pwd: Add initial implementation of getpwent
...
fix ltp sigqueue testcase crash in getpwent:
nsh> ltp_sigqueue_3_1
core dumped
Signed-off-by: yangyalei <yangyalei@xiaomi.com>
2023-07-31 07:50:10 -07:00
yangyalei
4ecff53e2c
sigaltstack: Add initial implementation of sigaltstack
...
fix ltp testcase compile error:
ltp/testcases/open_posix_testsuite/conformance/definitions/signal_h/31-1-buildonly.c:16:13: \
error: ‘sigaltstack’ undeclared (first use in this function)
16 | dummyvar = sigaltstack;
| ^~~~~~~~~~~
Signed-off-by: yangyalei <yangyalei@xiaomi.com>
2023-07-31 07:50:10 -07:00
yangyalei
30367fd4cd
sched: inherit parent priority by default, except idle
...
Signed-off-by: yangyalei <yangyalei@xiaomi.com>
asdfas
Signed-off-by: yangyalei <yangyalei@xiaomi.com>
2023-07-31 07:50:10 -07:00
yangyalei
3721af647a
Add _POSIX_THREAD_PRIORITY_SCHEDULING define
...
fix ltp_pthread_rwlock_rdlock_2_2 testcase error:
nsh> ltp_pthread_rwlock_rdlock_2_2
Posix Thread Execution Scheduling not supported
Signed-off-by: yangyalei <yangyalei@xiaomi.com>
2023-07-31 07:50:10 -07:00