Commit graph

61103 commits

Author SHA1 Message Date
Jukka Laitinen
b4ccaf4b1c arch/imx9: Fix uSDHC driver DMA and cache compilation flags
All combinations of CONFIG_IMX9_USDHC_DMA and CONFIG_ARM64_DCACHE_DISABLE
are valid. Only the required alignment of the DMA buffers are different,
If the cache is enabled, cacle-line aligned buffers need to be used.
Otherwise, the USDHC DMA alignment requirement is just 32-bits.

Signed-off-by: Jukka Laitinen <jukka.laitinen@tii.ae>
2026-02-16 10:52:04 -05:00
SPRESENSE
72b67832ea Makefile: Remove make depend files by make distclean
Intermediate files of make depend like .ddc and .dds may remain
when make is interrupted. Remove them using make distclean.

Signed-off-by: SPRESENSE <41312067+SPRESENSE@users.noreply.github.com>
2026-02-16 16:27:57 +01:00
Matteo Golin
56112efbd3 docs/pic32mz-starterkit: Migrate README.txt to RST
Migrate legacy README.txt to RST format.

Signed-off-by: Matteo Golin <matteo.golin@gmail.com>
2026-02-15 13:28:32 +01:00
Matteo Golin
9f54b1bd61 docs/flipnclick-pic32mz: Migrate README.txt to RST
Migrate legacy README.txt to RST format.

Signed-off-by: Matteo Golin <matteo.golin@gmail.com>
2026-02-15 13:28:32 +01:00
Matteo Golin
4b18a8e715 docs/chipkit-wifire: Migrate README.txt to RST
Migrate legacy README.txt docs to RST format.

Signed-off-by: Matteo Golin <matteo.golin@gmail.com>
2026-02-15 13:28:32 +01:00
Matteo Golin
bcf682ccbe docs/guides/bootsequence: Migrate UML diagram to PlantUML
Removes legacy UML diagram image in favour of PlantUML description using
plain text.

Signed-off-by: Matteo Golin <matteo.golin@gmail.com>
2026-02-15 08:47:23 +01:00
Matteo Golin
16aca58275 docs/plantuml: Add PlantUML support to Documentation build
This commit adds support for PlantUML to the Documentation build
process. UML diagrams can be written in PlantUML syntax and then
rendered during the build process. Version control no longer needs to
track these UML diagrams as images, and we can modify them easily.

Signed-off-by: Matteo Golin <matteo.golin@gmail.com>
2026-02-15 08:47:23 +01:00
simbit18
37226646fc boards/arm/samd2l2: CMake added boards
CMake added boards:

 - arduino-m0

 - circuit-express

 - samd20-xplained

 - samd21-xplained

 - saml21-xplained

 - xiao-seeeduino

Signed-off-by: simbit18 <simbit18@gmail.com>
2026-02-13 17:40:55 -03:00
simbit18
5e12faea50 arch/arm/src/sam2l2: CMake build implemented for Microchip's SAM D/L Family
- added Microchip's SAM D/L

Signed-off-by: simbit18 <simbit18@gmail.com>
2026-02-13 17:40:55 -03:00
zhangyuan29
069ceab9c5 lzf: prevent lzf header struct optimization
Add packed attribute to lzf header structs to prevent the compiler
from optimizing lzf_magic array initialization into wider store
instructions (e.g. st.h), which can cause misaligned access
exceptions on architectures that do not support unaligned memory access.

Signed-off-by: zhangyuan29 <zhangyuan29@xiaomi.com>
2026-02-13 11:58:50 +01:00
simbit18
d0417490d2 boards/arm/sam34: CMake added boards
CMake added boards:

  - arduino-due

 - flipnclick-sam3x

 - sam3u-ek

 - sam4cmp-db

 - sam4e-ek

 - sam4l-xplained

 - sam4s-xplained

 - sam4s-xplained-pro

Signed-off-by: simbit18 <simbit18@gmail.com>
2026-02-12 16:09:20 -03:00
simbit18
bd699a47af arch/arm/src/sam34: CMake build implemented for Microchip's SAM3 SAM4 Family
- added Microchip's SAM3 SAM4 Family

Signed-off-by: simbit18 <simbit18@gmail.com>

Update CMakeLists.txt

Update CMakeLists.txt
2026-02-12 16:09:20 -03:00
raiden00pl
ba64b35806 include/string.h: mark memset and memcpy as used_code
Mark memset and memcpy as used_code to fix issues with GCC LTO and CMake
which throws many "undefined reference to memset" errors.
used_code force the compiler to emit the memset symbol under LTO.

Signed-off-by: raiden00pl <raiden00@railab.me>
2026-02-12 13:19:06 -05:00
zhangyuan29
c99fa1994f net/utils: add union name for tasking compiler compatibility
Some compilers like Tasking do not support anonymous unions/structs.
Add explicit names to the anonymous union and struct members in
snoop_packet_header_s and update all references accordingly.

Signed-off-by: zhangyuan29 <zhangyuan29@xiaomi.com>
2026-02-12 10:49:44 -03:00
Ari Kimari
1c36ba764f drivers/usbdev: Fix usbmsc_unbind() function for composite device
1. Move DEBUGASSERT to correct place
2. Leave it out if composite device
3. Move working thread stop to separate function
4. Call it from unbind function for composite device

Signed-off-by: Ari Kimari <ari.kimari@tii.ae>
2026-02-12 10:29:15 -03:00
Matteo Golin
24dbdcd033 docs/m9s12/demo9s12ne64: Migrate README.txt to RST
Migrate legacy README.txt to RST format.

Signed-off-by: Matteo Golin <matteo.golin@gmail.com>
2026-02-12 10:43:53 +01:00
Matteo Golin
49a149a78f docs/m9s12/ne64badge: Migrate README.txt to RST
Migrate legacy README.txt documentation to RST format.

Signed-off-by: Matteo Golin <matteo.golin@gmail.com>
2026-02-12 10:43:53 +01:00
Jiri Vlasak
508f0d4b73 doc/userled: Fix printf example
It is needed to escape \ itself.

Signed-off-by: Jiri Vlasak <jvlasak@elektroline.cz>
2026-02-12 08:49:18 +01:00
Tiago Medicci Serrano
9cf7d80bab sched/mqueue: Enable receiving messages on an interrupt handler
The internal implementation of `file_mq_receive` did not allow
receiving a message from an interrupt handler. Although it is not
possible to wait for a message in an interrupt context, it is
perfectly possible to retrieve already-existing messages from the
message queue. This commit modifies file_mq_timedreceive_internal
to enable checking the message list and, if no messages exist, it
returns immediately. This enables receiving any existing messages
in an interrupt context.

Signed-off-by: Tiago Medicci Serrano <tiago.medicci@espressif.com>
2026-02-11 13:10:31 -05:00
donghaokun
cbe13affa1 arch/tricore: initialize spinlock used by tricore systimer
Add explicit spin_lock_init in tricore_systimer_initialize() for the lock used by tricore systimer.

Signed-off-by: Haokun Dong <donghaokun@lixiang.com>
2026-02-11 11:28:52 -03:00
buxiasen
255618d838 imx95: add board reset
We suppose to use up_systemreset for nsh reboot command.

Signed-off-by: buxiasen <buxiasen@xiaomi.com>
2026-02-11 14:10:18 +01:00
buxiasen
8cff78cadf arm64/chip/imx9: add cmake support
We should prefer cmake for better compile speed.

Signed-off-by: buxiasen <buxiasen@xiaomi.com>
2026-02-11 14:10:18 +01:00
Matteo Golin
e5077df813 docs/rasperrypi-pico-2: Small typo correction
The header underline did not extend far enough for Sphinx to correctly
parse it as a header.

Signed-off-by: Matteo Golin <matteo.golin@gmail.com>
2026-02-11 10:28:14 +01:00
yaojingwei
24a18d33af v4l2_cap: fix reqbuf return error when set count = 0.
Return success when reqbuf count is zero.


Signed-off-by: yaojingwei <yaojingwei@xiaomi.com>
2026-02-10 16:20:21 -05:00
yangyalei
84bcb12fff nuttx/v4l2: Fix array access out of bounds
Fix out-of-bounds access in v4l2 array handling.


Signed-off-by: yangyalei <yangyalei@xiaomi.com>
2026-02-10 16:20:21 -05:00
vrmay23
6da5100bc0 arch/stm32h7: fix FDCAN clock, ILS register and extended ID
Fix three issues in the STM32H7 FDCAN SocketCAN driver:

1. Clock configuration: Allow board.h to override STM32_FDCANCLK.
   Previously the driver hardcoded STM32_HSE_FREQUENCY, ignoring
   any board-specific clock configuration.

2. ILS register bug: Fix putreg32 call that was writing FDCAN_ILS_TCL
   constant instead of the computed regval, causing interrupt routing
   issues.

3. Extended ID filter size: Increase n_extid from 64 to 128. Despite
   the reference manual (RM0433) suggesting 64 max, testing shows
   that 128 is required for reliable extended ID frame reception.
   With 64, some extended ID frames were silently dropped.

Signed-off-by: Vinicius May <vmay.sweden@gmail.com>
2026-02-10 08:34:25 -03:00
Felipe Moura
ef71625ede input: add keyboard matrix driver
Add a generic kmatrix lower-half with polling/debounce, STM32 board adapters, Kconfig options, a public API header, and a test example/documentation.

Signed-off-by: Felipe Moura <moura.fmo@gmail.com>

decouple kbd / keypad.

Fix some comments

add documentation

fix rule issues

Update CMakeLists.txt

update documentation.

improve documentation
2026-02-10 08:15:01 -03:00
zhangyuan29
6c37217c36 drivers/note: noteram ioctl FIONBIO should return -ENOTTY
In file_dup3, the file descriptor is initialized with the O_NONBLOCK flag.
If the inode's ioctl(FIONBIO) call fails with a result other than OK or
ENOTTY, the file may be mistakenly released.

Signed-off-by: zhangyuan29 <zhangyuan29@xiaomi.com>
2026-02-10 08:01:59 -03:00
yaojingwei
c5549143ad sim_camera: support enum pixel format.
Expose enum pixel format support in sim_camera.

Signed-off-by: yaojingwei <yaojingwei@xiaomi.com>
2026-02-09 20:56:46 -03:00
yaojingwei
c2efa96002 drivers/video: optimize critical section.
use spin/mutex lock to replace critial section.

Signed-off-by: yaojingwei <yaojingwei@xiaomi.com>
2026-02-09 20:56:46 -03:00
Andre Heinemans
e83606732d boards/arm: add nxp mr-navq95b support
- Add support for the MR-NAVQ95 which is an open-source development
  board designed for mobile robotics applications.
- Utilizes the NXP i.MX95 processor M7 core
- Configurations:
  'nsh'   A minimal configuration that only enables nsh shell
          on a UART
  'rpmsg' This configuration is similar to nsh but in addition
          it offers the Remote Processing Messaging (RPMsg) service to
          enable heterogeneous inter-core communication.

Signed-off-by: Andre Heinemans <andre.heinemans@nxp.com>
2026-02-06 15:28:12 -03:00
simbit18
99db09d050 boards/arm/s32k3xx: CMake added boards
CMake added boards:

  - mr-canhubk3

 -  s32k344evb

Signed-off-by: simbit18 <simbit18@gmail.com>
2026-02-06 15:27:50 -03:00
simbit18
b4be9a495a arch/arm/src/s32K3xx: CMake build implemented for NXP S32K3 Family
- added NXP S32K3 Family

Signed-off-by: simbit18 <simbit18@gmail.com>
2026-02-06 15:27:50 -03:00
Jiri Vlasak
65f8053305 lcd/ili9341: Improve putrun's checks
Improve checks for the position outside of the LCD's area. Fix the input
when possible.

Slightly improve the documentation.

Signed-off-by: Jiri Vlasak <jvlasak@elektroline.cz>
2026-02-06 14:15:36 -03:00
liang.huang
64d191d32e mm/mm_gran: fix data truncation by using size_t for mask
Use size_t instead of unsigned int for 'mask' to avoid address truncation,
especially when memory addresses exceed 32 bits.

Signed-off-by: liang.huang <liang.huang@houmo.ai>
2026-02-06 08:16:33 -05:00
Matteo Golin
e8b3630224 docs/or1k: Migrate README.txt to RST format
Migrate the or1k documentation from legacy README.txt to RST.

Signed-off-by: Matteo Golin <matteo.golin@gmail.com>
2026-02-06 08:54:28 -03:00
Andre Heinemans
9ecfff0833 boards/imx95-evk: enable mpu by default
Enabling MPU will fix imx95-evk:rpmsg by making rsc-table and vrings
regions non-cachable. Since the rewrite of RpMsg these regions are not
invalidated anymore.

Signed-off-by: Andre Heinemans <andre.heinemans@nxp.com>
2026-02-05 11:17:47 -05:00
Adwait Godbole
83c11b29a9 tools: fix make host_info flag parsing and config string escaping
Fix incorrect flag handling and string escaping in the `make host_info`
diagnostic target.

Previously, CFLAGS, CXXFLAGS, and LDFLAGS were passed in a form that caused
improper splitting and quoting, which resulted in malformed output and
incorrectly escaped configuration values such as CONFIG_APPS_DIR.

This change ensures that:
- Compilation flags are passed as proper shell strings
- Flags are split correctly using shlex
- Configuration values are escaped exactly once when generating sysinfo.h
- Parsed output matches the contents of the .config file

This change affects diagnostic output only and does not modify the NuttX
build process or generated binaries.

Signed-off-by: Adwait Godbole <adwaitngodbole@gmail.com>
2026-02-05 14:23:19 +01:00
yangyalei
854cd0ca21 nuttx/audio: clear apb buffer when playback dequeue
memset apb buffer to zero when dequeue

Signed-off-by: yangyalei <yangyalei@xiaomi.com>
2026-02-05 08:22:18 -03:00
fangyibo
b13defe9e4 nuttx/audio: ALLOCATE_BUFFER & BUFFERINFO support multiple calling
support multiple applications simultaneously calling ALLOCATE_BUFFER

Signed-off-by: fangyibo <fangyibo@xiaomi.com>
2026-02-05 08:22:18 -03:00
yangyalei
904f391982 nuttx/audio: Add audio_try_enqueue
support upper driver check whether enqueue apb buffer to the lower
driver

Signed-off-by: yangyalei <yangyalei@xiaomi.com>
2026-02-05 08:22:18 -03:00
yangyalei
928b9368b4 nuttx/audio: Add compress audio macros
add compress audio macors and some subfmt

Signed-off-by: yangyalei <yangyalei@xiaomi.com>
2026-02-05 08:22:18 -03:00
yangyalei
8db9865a03 nuttx/audio: Add AUDIOIOC_RESETSTATUS ioctl
use AUDIOIOC_RESETSTATUS to reset application pointer

Signed-off-by: yangyalei <yangyalei@xiaomi.com>
2026-02-05 08:22:18 -03:00
yangyalei
f8ab192285 nuttx/audio: Update app write head in enqueuebuffer
update aplication pointer in enqueuebuffer

Signed-off-by: yangyalei <yangyalei@xiaomi.com>
2026-02-05 08:22:18 -03:00
yangyalei
374a102af7 nuttx/audio: support multiplexing and state machine management
support multiple applications using upper at the same time

Signed-off-by: yangyalei <yangyalei@xiaomi.com>
2026-02-05 08:22:18 -03:00
yangyalei
7d55e26421 nuttx/audio: Direct return non-format configure operation
protect configure lower only once

Signed-off-by: yangyalei <yangyalei@xiaomi.com>
2026-02-05 08:22:18 -03:00
yangyalei
d15f69cdb6 nuttx/audio: Add audio_stop/pause/resume
relayout the code for easy modification

Signed-off-by: yangyalei <yangyalei@xiaomi.com>
2026-02-05 08:22:18 -03:00
yangyalei
bc718c605d nuttx/audio: Add audio_poll
support poll notify read/write enable

Signed-off-by: yangyalei <yangyalei@xiaomi.com>
2026-02-05 08:22:18 -03:00
yangyalei
9c35b01cd8 nuttx/audio: Add audio_mmap
1. mmap hw_ptr_s,
2. mmap apb buffers;

Signed-off-by: yangyalei <yangyalei@xiaomi.com>
2026-02-05 08:22:18 -03:00
yangyalei
06e233079f nuttx/audio: support record/release apb buffer in upper driver
support maintain apb buffer in upper half driver

Signed-off-by: yangyalei <yangyalei@xiaomi.com>
2026-02-05 08:22:18 -03:00