wanggang26
d827ee5ffc
refine: set file mode when oflags contains O_CREAT
...
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2023-09-23 15:20:51 +08:00
Shanmin Zhang
582e0ab51f
goldfish: add goldfish sensors driver
...
Implemented Goldfish Sensors:
Accelerometer
Gyroscope
MagneticField
AmbientTemperature
Proximity
Light
Pressure
RelativeHumidity
MagneticFieldUncalibrated
GyroscopeFieldUncalibrated
HeartRate
Unimplemented Goldfish Sensors:
(sensor type is not defined nuttx)
Orientation
HingeAngle0
HingeAngle1
HingeAngle2
WristTilt
Verification:
uorb_listener -r 1 sensor_accel
uorb_listener -r 1 sensor_mag
uorb_listener -r 1 sensor_gyro
uorb_listener -r 1 sensor_prox
uorb_listener -r 1 sensor_light
uorb_listener -r 1 sensor_humi
uorb_listener -r 1 sensor_baro
uorb_listener -r 1 sensor_temp
uorb_listener -r 1 sensor_hrate
Signed-off-by: Shanmin Zhang <zhangshanmin@xiaomi.com>
2023-09-23 15:20:25 +08:00
xinbingnan
a104fdc3a5
tools/minudumpserver: support auto start GDB and execute some commands
...
VELAPLATFO-16485
like
```bash
./nuttx/tools/minidumpserver.py -l log.log -e vela_ap.elf -a arm --gdb prebuilts/gcc/linux/arm/bin/arm-none-eabi-gdb -i
```
Signed-off-by: xinbingnan <xinbingnan@xiaomi.com>
2023-09-23 15:19:20 +08:00
xuxin19
8d1cb466f4
Unix.mk:replace process substitution to pipe avoid out of order
...
process substitution `>(..)` have different behaviors in different shells,unreliable execution order will lead to the problem of being unable to intercept errors.
pipe are used here to ensure that `kwarning` is generated before the if statement.
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2023-09-23 15:15:22 +08:00
wangbowen6
d15a69a406
parsememdump.py: support the sequence number parse
...
In https://github.com/apache/nuttx/pull/9335 , the sequence numbuer
is added to the memory node, the memdump log changed also, so update
the parsememdump.py script to keep in sync.
Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
2023-09-23 15:13:00 +08:00
wangming9
029bbf6bbd
arch/arm: Enable FPU on qemu and goldfish platforms
...
Signed-off-by: yangguangcai <yangguangcai@xiaomi.com>
2023-09-23 08:42:00 +02:00
yintao
da7d6ef37b
sim_rptun: unlink shm when quit
...
if not unlink shm, the shared memory object still exists in host /dev/shm after quit
if nuttx is started with administrator privileges, or if it is restarted with user
privileges, there will be a problem with the permission to open this shm file
Signed-off-by: yintao <yintao@xiaomi.com>
2023-09-23 08:39:38 +02:00
laoniaokkk
4256dd934f
Fix onchip flash erase fail
2023-09-23 12:36:11 +08:00
wanggang26
7f5e6bd383
hostfs: mask bit fields of not support
...
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2023-09-23 05:28:57 +09:00
Theo
52096aeb80
Add activation of SPI0 on arduino due
2023-09-23 01:46:23 +08:00
xuxin19
b53af5602d
give a prompt when apps dir cannot be found
...
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2023-09-22 21:37:30 +08:00
raiden00pl
0a78095bb7
Kconfig: add ICS license option
2023-09-22 20:41:10 +08:00
raiden00pl
3ad3b66e11
boards/thingy52: use RTT console as default
...
External JLink is required to program the board, so the console via RTT
is available anyway. It is much more convenient to use than soldering the
P4 connector and working with an external UART converter.
2023-09-22 19:46:43 +08:00
raiden00pl
59cf80cf90
boards/nucleo-h745zi: access CM4 core NSH over uart rpmsg
...
Command on the CM7 core:
nsh-cm7> cu -l /dev/ttyproxy
NuttShell (NSH) NuttX-10.4.0
nsh-cm4>
2023-09-22 19:46:26 +08:00
raiden00pl
8833501084
arch/stm32h7/dualcore: don't use stm32_hsem interface for cores synchronisation
...
stm32_hsem functions can use debug messages but cores synchronisation is done when
the OS is not yet fully initialized
2023-09-22 19:46:26 +08:00
raiden00pl
0e01836f09
serial: add an option that selects uart rpmsg as console
2023-09-22 19:46:26 +08:00
SPRESENSE
7f574210a7
drivers:alt1250: Correspond to shutdown
...
ALT1250 driver to support shutdown.
2023-09-22 13:51:28 +08:00
wanggang26
e930476b4b
enable O_CLOEXEC explicit
...
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2023-09-22 13:51:00 +08:00
wangyongrong
2d817deecb
armv8m/strcpy: add arch optimize version
2023-09-22 08:52:25 +08:00
guoshichao
abfb7da553
libs/libc/libc.csv: add the implemented wchar api declaration
...
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2023-09-22 08:51:07 +08:00
guoshichao
5bd8e56cbe
libs/libc/wchar: add fputws implementation
...
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2023-09-22 08:51:07 +08:00
guoshichao
d67090c47e
libs/libc/wchar: add putwc implementation
...
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2023-09-22 08:51:07 +08:00
guoshichao
a9b2857754
libs/libc/wchar: add putwchar implementation
...
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2023-09-22 08:51:07 +08:00
guoshichao
f8b5f613e2
libs/libc/wchar: add fputwc implementation
...
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2023-09-22 08:51:07 +08:00
guoshichao
d386df4424
libs/libc/wchar: add wcswidth implementation
...
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2023-09-22 08:51:07 +08:00
guoshichao
7c0685c53d
libs/libc/wchar: add wcwidth implementation
...
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2023-09-22 08:51:07 +08:00
guoshichao
f9c8461c72
libs/libc/wchar: add wcswcs implementation
...
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2023-09-22 08:51:07 +08:00
guoshichao
199bc57035
libs/libc/wchar: add wcstok implementation
...
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2023-09-22 08:51:07 +08:00
guoshichao
9070743fe8
libs/libc/wchar: add wcsstr implementation
...
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2023-09-22 08:51:07 +08:00
guoshichao
20802fcf5c
libs/libc/wchar: add wcsspn implementation
...
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2023-09-22 08:51:07 +08:00
guoshichao
181a2d916d
libs/libc/wchar: add wcspbrk implementation
...
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2023-09-22 08:51:07 +08:00
xinbingnan
524cb33729
tools/minudumpserver: support auto parse log file feature
...
VELAPLATFO-16476
1. support to extract log and list all possible dumps from a full log file
Signed-off-by: xinbingnan <xinbingnan@xiaomi.com>
2023-09-22 08:47:47 +08:00
dulibo1
b57e43b4d0
clk:fix some issues when use rpmsg clk
...
1.check the rpmsg name when clk_register.
2.clk_get rpmsg clk print error:
clk/clk.c:1231:3: runtime error: null pointer passed as argument 2, which is declared to never be null
3.fix some function miss keyword FAR.
4.clk_disable_unused may disable rpmsg clk which disable the clk that maybe used by others
Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
2023-09-22 08:47:23 +08:00
zhuanglin
13ee3f8117
sched/clock Add special handling for TCB null pointer cases
...
Adding a judgment in the code that null return values are not referenced for dereference
Signed-off-by: zhuanglin <zhuanglin@xiaomi.com>
2023-09-22 08:46:50 +08:00
dulibo1
2db471fab3
regulator:fix some issues when use rpmsg
...
1.client get the regualtor which is enabled by server, will disable the regualtor.
2.regulator_rpmsg_server_unbind will disable regualtor which maybe used by other client.
3.regulator_rpmsg_server_unbind will be deadloop when the regulator is always_on;
4.regulator_rpmsg_client_destroy does not match server cpu name,may destory by stop other rptun dev
Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
2023-09-21 19:41:34 -04:00
dulibo1
da1cd59f35
regualtor:fix regulator_register check rpmsg regulator which leads to recursion
...
Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
2023-09-21 19:41:34 -04:00
Daniel P. Carvalho
f0bc20c815
Fix I2C1 pinout.
2023-09-22 00:54:07 +08:00
simbit18
4f985f4367
Fix Kconfig style
...
Remove spaces from Kconfig
Add comments
2023-09-22 00:35:48 +08:00
raiden00pl
4c9c0c8be2
debug: add support for IPC (interprocessor communication) debug messages
2023-09-22 00:02:51 +08:00
wanggang26
db2f204cc4
mmcsd: support dump cid and csd with mmc-utils
...
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2023-09-21 22:40:39 +08:00
TaiJu Wu
707dd12090
fix: disable esp32s3-devkit/ksta_softap spinlock
...
Link time happened error when CI/CD test.
ref: https://github.com/apache/nuttx-apps/pull/2076
Signed-off-by: TaiJu Wu <tjwu1217@gmail.com>
2023-09-21 10:34:59 -04:00
simbit18
34bb0b6544
Fix nuttx coding style
...
Remove TABs
Remove spaces
Fix indentation
2023-09-21 10:03:13 -04:00
raiden00pl
dafa4e4413
arch/nrf{52|53|91}/serial: fix serial registration when ther is no console on serial
2023-09-21 20:31:03 +08:00
raiden00pl
f0155b9099
arch/nrf{52|53|91}/serial: fix warning if HAVE_UART_CONSOLE not defined
...
warning: control reaches end of non-void function [-Wreturn-type]
2023-09-21 20:31:03 +08:00
raiden00pl
3e79d21100
arch/arm: fix undefined reference to arm_serialinit when RTT console used
2023-09-21 20:30:27 +08:00
raiden00pl
0b00a02f81
sensors: add suffix _uorb to all sensors that use the new sensor framework
...
This'll make it easier to identify sensors supporting the new sensor approach
2023-09-21 20:30:08 +08:00
wanggang26
40a2adf720
procfs: fix a typo
...
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2023-09-21 15:02:27 +03:00
SPRESENSE
a3d17a18a7
drivers/modem/alt1250: Fix bug that errno was not converted correctly
...
Fix bug that errno was not converted correctly.
2023-09-21 13:54:21 +03:00
SPRESENSE
125f4a2ad0
drivers/modem/alt1250: Fix bug that modem version could not be taken
...
Fix bug that modem version could not be taken.
2023-09-21 17:44:12 +08:00
zhanghongyu
9267dbc7c2
bcm_driver: revert packed attribute for scan structure
...
These structures need to be aligned with the firmware, packed_struct will cause the scan information from Wi-Fi firmware not to be parsed by broadcom Wi-Fi driver. Therefore, we need to remove the packed_struct of the structure associated with the scan information.
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2023-09-21 14:03:12 +08:00