Jiuzhu Dong
bf6063cc04
driver/sensor/rpmsg: fix deadlock case: push event in ioctl_ack handler
...
using recursive mutex to fix this issue.
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-08-02 01:28:56 +08:00
Jiuzhu Dong
67f156c2f7
driver/sensor: add cpuname info about failed case
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-08-02 01:28:56 +08:00
Jiuzhu Dong
fa4cebce32
driver/sensor: support sensor data persist
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-08-02 01:28:56 +08:00
Jiuzhu Dong
2a910b7ca9
driver/sensor: using re-entrant mutex for sensor access to avoid deadlock
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-08-02 01:28:56 +08:00
Jiuzhu Dong
74b2be20d0
driver/sensor: move readlast for each user
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-08-02 01:28:56 +08:00
Jiuzhu Dong
6f3873dfa2
sensor: add SNIOC_READLAST
...
If enable SNIOC_READLAST, sensor_read will return 0
when there is no new data until last read.
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-08-02 01:28:56 +08:00
Jiuzhu Dong
2f5727b102
driver/sensor: add _SNIOCVALID check to command
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-08-02 01:28:56 +08:00
Jiuzhu Dong
8de6c29aa4
driver/sensor: enable usensor and rpmsg_sensor
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-08-02 01:28:56 +08:00
Jiuzhu Dong
c5f87bb5c6
driver/sensor: support access remote sensor by rpmsg
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-08-02 01:28:56 +08:00
Peter van der Perk
1cc7f6e63a
Add MIT license kconfig symbol
2022-08-01 17:35:40 +03:00
Jari van Ewijk
1e6054afba
NXP S32K1XX boards: add up_perf_init to support SEGGER SystemView
2022-08-01 16:32:41 +03:00
Jari van Ewijk
a554b9ce89
NXP S32K1XX: fix LPI2C reset
2022-08-01 07:34:03 -04:00
Xiang Xiao
f09f75f2c9
power/axp202: Replace battery_charger_operations_s * with battery_charger_dev_s
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-08-01 13:00:30 +03:00
Xiang Xiao
c26bb35843
Remove the private NULL, TRUE and FALSE macros
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-07-31 22:12:57 +03:00
Sergey Nikitenko
ec59125ad3
stm32wb/mbox: fixing ACL transmit buffer
2022-07-31 10:29:29 +08:00
Sergey Nikitenko
30a80a390d
stm32wb/ble: disable default CPU2 host config option
2022-07-31 10:29:29 +08:00
Sergey Nikitenko
bbdcb82f18
boards/stm32wb/nimble: adding nimble config
2022-07-31 10:29:29 +08:00
Sergey Nikitenko
9db4caca1d
stm32wb/nimble: workaround for unsupported HCI command
2022-07-31 10:29:29 +08:00
Sergey Nikitenko
cf594b2c81
stm32wb/mbox: renaming msg_buf->cmd_buf
2022-07-30 11:45:15 +08:00
Sergey Nikitenko
49af13c507
stm32wb/mbox: fixing txbuf queue
2022-07-30 11:45:15 +08:00
Jiuzhu Dong
f758e0f260
sensor: format custom ioctl argument by stucture sensor_ioctl_s
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-07-30 03:15:23 +08:00
Jiuzhu Dong
2ae5a82607
driver/sensor: add struct file for all sensor_ops_s
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-07-30 03:15:23 +08:00
Jiuzhu Dong
bb07354198
driver/sensors: add open/close api and struct file for sensor_ops
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-07-30 03:15:23 +08:00
Jiuzhu Dong
3fdd036ba6
driver/sensor: add name prefix "sensor_" for sensor register
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-07-30 03:15:23 +08:00
Peter van der Perk
26dbdba5d8
[TCP] Close RAM usage optimization
2022-07-29 23:51:06 +08:00
Michał Łyszczek
e887a4a5b7
stm32wl5: add lower half driver for IPCC
...
Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
2022-07-29 23:11:32 +08:00
Michał Łyszczek
a9f78a64db
drivers/ipcc: add Inter Processor Communication driver
...
This patch adds upper half driver for IPCC character driver. IPCC
is a Inter Processor Communication Controller.
Driver is still immature and not thoroughly tested, thus
CONFIG_EXPERIMENTAL is required.
Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
2022-07-29 23:11:32 +08:00
simbit18
666c2d255a
Update stm32_ina219.c
...
Fix mistakes in syslog
2022-07-29 16:09:25 +03:00
simbit18
7a9b434ae6
Update stm32_max31855.c
...
Fix mistakes in comments
2022-07-29 16:09:25 +03:00
simbit18
9851d4483b
Update stm32_max6675.c
...
Fix mistakes in comments
2022-07-29 16:09:25 +03:00
simbit18
07c0b2844a
Update stm32_mlx90614.c
...
Fix mistakes in comments and snerr
2022-07-29 16:09:25 +03:00
Michael Jung
4ab8f9383d
w25qxxxjv.c: Use PRIxOFF to format off_t
...
Signed-off-by: Michael Jung <michael.jung@secore.ly>
2022-07-29 17:41:25 +08:00
chao.an
0d28168679
arm/allocateheap: fix multiple definition of 'up_allocate_heap'
...
ld: arch/libarch.a(cxd56_allocateheap.c.obj): in function `up_allocate_heap':
arch/arm/src/cxd56xx/cxd56_allocateheap.c:113: multiple definition of `up_allocate_heap'; arch/libarch.a(arm_allocateheap.c.obj):
arch/arm/src/common/arm_allocateheap.c:110: first defined here
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-07-29 11:57:10 +03:00
liyi
b232508bd9
make sure conn's domain is match with addr's family
2022-07-29 13:53:19 +08:00
chao.an
93f719bccb
arm/hostfs: fix build warning
...
arch/arm/src/common/arm_hostfs.c: In function 'host_read':
arch/arm/src/common/arm_hostfs.c:156:24:
warning: passing argument 1 of 'up_invalidate_dcache' makes integer from pointer without a cast [-Wint-conversion]
156 | up_invalidate_dcache(buf, buf + count);
| ^~~
| |
| void *
In file included from arch/arm/src/common/arm_hostfs.c:26:
include/nuttx/cache.h:261:37: note: expected 'uintptr_t' {aka 'unsigned int'} but argument is of type 'void *'
261 | void up_invalidate_dcache(uintptr_t start, uintptr_t end);
| ~~~~~~~~~~^~~~~
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-07-29 08:52:59 +03:00
hejianliang3
e88a49007d
timers/watchdog: fix build warning
...
drivers/timers/watchdog.c:57:5: warning: "CONFIG_WATCHDOG_AUTOMONITOR_PING_INTERVAL" is not defined, evaluates to 0 [-Wundef]
57 | CONFIG_WATCHDOG_AUTOMONITOR_PING_INTERVAL)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: hejianliang3 <hejianliang3@xiaomi.com>
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-07-29 07:25:45 +02:00
zhuyanlin
031c89db89
power: add PM_IDLE_DOMAIN to pm.h and remove definations
...
Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
2022-07-29 11:15:40 +08:00
Michał Łyszczek
a1aee22a4f
boards/stm32wl5/flash: define default procfs mountpoint
...
When nsh is not enabled, CONFIG_NSH_PROC_MOUNTPOINT is not defined.
If in that case procfs is used, compilation will result in error.
Define sane default path for procfs in case nsh is not enable but
procfs is.
Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
2022-07-29 10:44:50 +08:00
Michał Łyszczek
d8b214ce9a
boards/stm32wl5/flash: fix invalid #ifdef config to enable flash
...
Invalid #ifdef macro results in flash never being used.
Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
2022-07-29 10:44:50 +08:00
Michał Łyszczek
7cb421e866
boards/stm32wl5/flash: add support to define bootloader partition
...
Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
2022-07-29 10:44:50 +08:00
Michał Łyszczek
5e75dd9be3
boards/stm32wl5/flash: add missing {} to struct init
...
When CONFIG_ARCH_BOARD_FLASH_CPU2_PROG_SIZE is bigger than 0, compilation
will fail because of missing "{}" in struct initialization.
Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
2022-07-29 10:44:50 +08:00
Michał Łyszczek
d11816cc39
boards/stm32wl5/flash: silent compiler warnings
...
If not all partitions are defined in Kconfig, compiler may show -Wundef
warnings for each: "#if CONFIG_ > 0". Fixed by defaulting values to 0
if they are undefined.
Some variables may be unused if filesystems are not enabled in Kconfig.
These variables are marked as UNUSED() to silent compiler warnings.
Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
2022-07-29 10:44:50 +08:00
raiden00pl
d933a227af
boards/stm32f7: add intial support for ST steval-eth001v1 board
2022-07-28 22:16:40 +08:00
Xiang Xiao
2b0e28e492
vfs: Remove the unnessary check when CONFIG_DEBUG_MM enable
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-07-28 16:52:06 +03:00
Michael Jung
f53c776d97
w25qxxxjv.c: Ensure Quad SPI mode is enabled
...
Certain variants of the W25QxxxJV Quad SPI NOR flash ICs have the Quad
SPI mode disabled after reset. As the w25qxxxjv driver is operating the
device in Quad SPI mode, make sure it gets enabled if required during
device initialization.
Signed-off-by: Michael Jung <michael.jung@secore.ly>
2022-07-28 21:45:34 +08:00
Xiang Xiao
13a7ae3d06
arch: Call board_reset before up_irq_save and spin_trylock
...
since board_reset may call some kernel functions which try
to acquire the lock again
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-07-28 08:18:24 -04:00
raiden00pl
cce7b7ada6
stm32f7: add showprogress in __start
2022-07-28 20:07:31 +08:00
Sergey Nikitenko
82ad4b0e08
stm32wb: adding BLE support
2022-07-28 15:23:34 +08:00
Sergey Nikitenko
9db6aaa5c7
stm32wb: fixing IPCC 'putreg' calls
2022-07-28 15:23:34 +08:00
xiangdong6
f1fdba28a7
include: Add IPTR/IOBJ definitions.
...
In case of other compiler, these deinitions are missed.
Signed-off-by: xiangdong6 <xiangdong6@xiaomi.com>
2022-07-28 12:26:25 +08:00