Alan Carvalho de Assis
73576e0d02
Fix cmake-format wrong execution order
2024-03-12 20:03:15 +08:00
Yanfeng Liu
5bf6ea0c20
fs/mount: harden nx_mount logic
...
This adds variables initialization and empty device path checks to
harden logic of nx_mount.
Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
2024-03-12 19:44:48 +08:00
Yanfeng Liu
813f67f93b
mm_heap/mm.h: revising comments
...
Revising comments to be in line with code
Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
2024-03-12 19:44:48 +08:00
Marco Casaroli
1be1149fdd
arch/esp32 bringup openeth
2024-03-12 08:31:06 -03:00
Marco Casaroli
9af8299af5
arch/esp32 add config for qemu-openeth
2024-03-12 08:31:06 -03:00
Marco Casaroli
d048caf1d2
arch/esp32 add openeth mac driver
...
This driver is used with QEMU, to make it possible
to use networking.
This is not the MAC in ESP32, however, it can be used with QEMU.
The code was shamelessly copied from 31dac92e5f
2024-03-12 08:31:06 -03:00
p-szafonimateusz
768c5a28a1
arch/x86_64: move common Make.defs to common
...
cosmetic change to simplify intel64 Make.defs
Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
2024-03-12 08:30:37 -03:00
chenwen@espressif.com
277ca97b44
xtensa/esp32: Fix wrong interrupt number
...
Signed-off-by: chenwen@espressif.com <chenwen@espressif.com>
2024-03-12 14:36:50 +08:00
Nicolas Lemblé
63782c7ff2
arch/xmc4 Add tickless support
2024-03-11 13:56:07 -03:00
chao an
be482cd830
sched/pthread: replace pthread_sem_give() to nxsem_post() to unify the post method
...
replace pthread_sem_give() to nxsem_post() to unify the post method
Signed-off-by: chao an <anchao@lixiang.com>
2024-03-11 22:57:26 +08:00
Eren Terzioglu
61689237f6
docs/esp32c6: Add spiflash docs for esp32c6
...
docs/esp32c6: Remove sotest docs esp32c6
docs/esp32c3: Add spiflash docs esp32c3
docs/esp32c3: Remove sotest docs esp32c3
docs/esp32h2: Add spiflash docs esp32h2
docs/esp32h2: Remove sotest docs esp32h2
2024-03-11 22:57:10 +08:00
SPRESENSE
bac0228825
drivers/video/isx012: Fix buffer overrun of isx012_putreg()
...
The maximum size of ISX012 register is 4 bytes.
So, extend temporary buffer size.
Detected by CodeSonar 141893
2024-03-11 15:44:39 +01:00
SPRESENSE
3419f018a4
drivers/video/isx019: Delete unnecessary code
...
Because of misunderstanding spec, unnecessary codes exist.
Delete them.
2024-03-11 15:44:39 +01:00
SPRESENSE
baa2dc5cad
drivers/video/isx019: Store initial gamma value
...
Set initial gamma value to enable application to get
the correct initial gamma value.
2024-03-11 15:44:39 +01:00
SPRESENSE
2b04210b16
drivers/video/isx019: Fix default ISO sensitivity
...
ISX019's ISO sensitivity is in auto adjustment mode by default.
Then, default ISO sensitivity value should be auto adjusted value.
2024-03-11 15:44:39 +01:00
SPRESENSE
ae970a8ed3
drivers/video: Fix bug that can not use scene mode
...
Because the mode is set in scene parameter table,
All scene modes was recognized as disabled.
2024-03-11 15:44:39 +01:00
SPRESENSE
8f0ed67339
drivers/video/isx019: Fix mismatch bug of HUE value
...
Because the ratio between API value and ISX019 register value
is 128 : 90 about HUE, some different API values become the
same register value.
So, store the value specified by application in setting,
and return the stored value in getting so that the gotten value
is the same as the setting value by application.
2024-03-11 15:44:39 +01:00
SPRESENSE
de3bee313e
drivers/video/isx019: Fix control type about some parameters
...
About IMGSENSOR_ID_EXPOSURE_AUTO, IMGSENSOR_ID_ISO_SENSITIVITY_AUTO,
and IMGSENSOR_ID_EXPOSURE_METERING, enumerations are defined.
So, control type should be not integer but integer menu.
2024-03-11 15:44:39 +01:00
SPRESENSE
865c88e34b
drivers/video: Add elems setting
...
Add elems setting to ioctl(VIDIOC_QUERY_EXT_CTRL)
for V4L2 compatibility.
2024-03-11 15:44:39 +01:00
SPRESENSE
fd5c2d4922
drivers/video/isx019: Fix bug that read value is not correct
...
About parameter whose register size is less than 4 bytes,
when transfer read value to API parameter, cast appropriately
to avoid the following problems.
- Read value includes garbage value
- Negative value becomes huge positive value
2024-03-11 15:44:39 +01:00
SPRESENSE
33f7923d72
drivers/video/isx019: Fix bug that initial exposure time is not correct
...
Because exposure time calculation needs the cxd56xx clock value,
get the cxd56xx clock value before saving initial value.
2024-03-11 15:44:39 +01:00
SPRESENSE
76e91a69f7
drivers/video/isx019: Fix maximum value of exposure time
...
Modify maximum value of exposure time from 102000 to 2740
according to hardware specification.
2024-03-11 15:44:39 +01:00
SPRESENSE
dc82022769
drivers/video/isx019: Fix control type of some parameters
...
Fix control type of some parameters according to specification.
2024-03-11 15:44:39 +01:00
SPRESENSE
fdf9f00952
drivers/video/isx012: Fix control type of some parameters
...
Fix control type of some parameters according to specification.
2024-03-11 15:44:39 +01:00
SPRESENSE
f1bc6aada3
drivers/video/isx019: Fix supported ISO sensitivity
...
Support not continuous values but discrete values.
2024-03-11 15:44:39 +01:00
SPRESENSE
75a0a08a4d
drivers/video: Modify control id definition
...
Modify control id definition to avoid duplication even if
the control ids belong to the same control class.
Also, not refer to control class in driver.
2024-03-11 15:44:39 +01:00
Juha Niskanen
47026978bf
libs/libc/string: fix memmem() boundary case when needle is at end of haystack
...
This fixes calls like memmem("hello", 5, "lo", 2);
Also zero-length needle is deemed to exist at beginning of haystack.
This behavior matches memmem() on Linux, FreeBSD, NetBSD and OpenBSD.
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2024-03-11 22:06:19 +08:00
chao an
68c21df444
sched/pthread/join: remove unused joininfo
...
remove unused joininfo, minor issue found from code reading
Signed-off-by: chao an <anchao@lixiang.com>
2024-03-11 22:05:33 +08:00
Yanfeng Liu
836715a2d6
tools/minidumpserver.py: support quit with gdb
...
This patch supports quiting of minidumpserver along with gdb so that
to reduce usage efforts.
Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
2024-03-11 20:59:07 +08:00
Yanfeng Liu
5ac401d941
mm/kconfig: fix typo in MM_DEFAULT_ALIGNMENT
...
This fixes minor typo in MM_DEFAULT_ALIGNMENT
Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
2024-03-11 13:12:34 +08:00
chao an
d468ff3eeb
sched/group: set clear flag if the group is not really needed
...
The delete flag is not synchronized with the life cycle of the group,
if the flag set before waitpid(), the tcb will be mistakenly deleted
by group_del_waiter(), use-after-free will happen.
Regression by:
| commit 29e50ffa73
(origin/master, origin/HEAD)
| Author: chao an <anchao@lixiang.com>
| Date: Mon Mar 4 09:19:27 2024 +0800
|
| sched/group: move task group into task_tcb_s to improve performance
|
| move task group into task_tcb_s to avoid access allocator to improve performance
|
| for Task Termination, the time consumption will be reduced ~2us (Tricore TC397 300MHZ):
| 15.97(us) -> 13.55(us)
|
| Signed-off-by: chao an <anchao@lixiang.com>
Signed-off-by: chao an <anchao@lixiang.com>
2024-03-11 13:58:25 +09:00
Rodrigo Sim
82d3ffc3b0
board/stm32f401rc-rs485: Add support to PWM/DAC
...
Signed-off-by: Rodrigo Sim <rcsim10@gmail.com>
2024-03-11 10:11:45 +08:00
chao an
29e50ffa73
sched/group: move task group into task_tcb_s to improve performance
...
move task group into task_tcb_s to avoid access allocator to improve performance
for Task Termination, the time consumption will be reduced ~2us (Tricore TC397 300MHZ):
15.97(us) -> 13.55(us)
Signed-off-by: chao an <anchao@lixiang.com>
2024-03-10 11:45:46 -03:00
Xiang Xiao
615c4bc6e9
net/local: Fix the wrong direction of threshold setting
...
reader should set POLLIN threshold, writer should set POLLOUT threshold.
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-03-10 11:44:33 -03:00
Xiang Xiao
b0e3a35c39
net/local: Skip poll_notify in local_event_pollsetup if no event happen
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-03-10 11:44:33 -03:00
Xiang Xiao
155768bae3
net/local: Fix minor issues found in code reading
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-03-10 11:44:33 -03:00
Yanfeng Liu
2f4e90b1e9
tools/minidumpserver.py: add support for rv64
...
This patch adds rv64 targets support and checked with gdb-multiarch
on Ubuntu. It also marks `-arch` parameter optional as it often can
be learnt from ELF file.
Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
2024-03-10 21:25:00 +08:00
Pressl, Štěpán
9f7f3a6e3a
SAMV7: fix typos in Kconfig PWM0 fault input selections - inv. polarity
2024-03-09 18:32:58 -03:00
raiden00pl
8210604886
boards/stm32h7: add Waveshare OpenH743I board
2024-03-10 01:47:39 +08:00
raiden00pl
be1750d041
arch/nrf91: fix compilation for SPI
...
remove references to unsupported SPI freq and SPI4 which is not supported
2024-03-10 01:43:11 +08:00
raiden00pl
d33846046e
arch/nrf{52|53|91}: fix typo
...
fix typo sndlock -> sndblock
2024-03-10 01:43:11 +08:00
raiden00pl
b7db53b6e1
nrf52/common: support for lsm9ds1 uorb
2024-03-09 11:53:57 +08:00
raiden00pl
79e8aa5e21
sensors: add uorb support for lsm9ds1
2024-03-09 11:53:57 +08:00
Eren Terzioglu
11efa29192
esp32h2/scripts: Add simpleboot support for esp32h2
2024-03-09 11:53:47 +08:00
Eren Terzioglu
11a061cad8
esp32c6/scripts: Add simpleboot support for esp32c6
2024-03-09 11:53:47 +08:00
p-szafonimateusz
0fe777abd4
arch/intel64: move timer frequency configuration to common files
...
this logic can be common for intel64 chips
Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
2024-03-09 11:52:29 +08:00
p-szafonimateusz
636b2309e4
arch/intel64: cosmetic changes for TSC
...
cosmetic changes for TSC:
- remove unused variables
- add g_ prefix to global variables
Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
2024-03-09 11:52:29 +08:00
p-szafonimateusz
0a24f60e1b
arch/intel64: select the system clock source with choice option
...
this will make it easier to add other sources as system clock
Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
2024-03-09 11:52:29 +08:00
Yanfeng Liu
02d097ac4d
riscv/k230: minor revision on PMP settings
...
This patch simplifies PMP handling for K230 using common APIs.
It also uses `g_misa` variable to expose the MISA issue.
Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
2024-03-09 11:52:13 +08:00
p-szafonimateusz
b1fd3da0f6
intel64/intel64_irq.c: support interrupts up to 255
...
From now all intel64 interrupts are supported.
Required step towards MSI/MSI-X
Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
2024-03-08 20:18:39 -03:00