rtc_ds3231_alarm_set_callback() takes an unsigned alarm id, making
the negative value check impossible.
The id < 0 condition is therefore dead code and can never be true.
Remove it and keep only the upper bound check.
No functional change intended.
Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
Preemptable and preemptible are both commonly used spellings. Infineon
had chosen preemptable as the spelling and lead to CI failures when
using struct members in the PDL. Removing the check in Zephyr allows
for flexibility in spellings of this word.
Signed-off-by: Tom Burdick <thomas.burdick@infineon.com>
Hardware map file generation should at least get you part way now with
Infineon boards with the Cypress derived KitProg3.
Signed-off-by: Tom Burdick <thomas.burdick@infineon.com>
- Update clk-source to 1 for all flexcan instances because
we need to use sysclk as PE clock source and reduce customer's
confused when configuring flexcan clock
If user use a fast external osc and want to choose another choice,
user can change it in overlay files
Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
Document the breaking change in the NXP i.MX GPT counter driver that
introduces a devicetree "run-mode" property and changes the default
from hardcoded free-run to restart mode.
Out-of-tree boards must add `run-mode = "free-run";` to their GPT
devicetree nodes to preserve previous behavior.
This change aligns GPT configuration with the LPTMR driver, providing
consistency across NXP counter drivers in using devicetree properties
for hardware behavior control.
Signed-off-by: Holt Sun <holt.sun@nxp.com>
Add a "run-mode" devicetree property to the NXP i.MX GPT counter
driver to control counter behavior on compare events.
The property supports two modes:
- "restart": Counter resets to 0 when reaching Compare Channel 1 value
- "free-run": Counter continues counting without reset
This change makes the GPT run mode configurable per device instance
instead of being hardcoded. The driver now derives the enableFreeRun
setting from devicetree, defaulting to "restart" mode.
This update aligns the GPT driver configuration approach with the
NXP LPTMR counter driver, which also uses devicetree properties
for runtime behavior configuration.
This provides consistency across NXP counter drivers in how hardware
behavior is controlled through devicetree.
Signed-off-by: Holt Sun <holt.sun@nxp.com>
Add "can dump <device>" subcommand for dumping all CAN RX frames of a given
CAN controller.
Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
xt-clang seems to generate some memory access patterns which
result in the simulator accessing incorrect memory and/or
messing with cached TLB entries when spinlock validation
is enabled. Not exactly sure what's going on here due to
the core of the simulator is built on top of pre-built
binaries provided by the toolchain without any sources so
debugging would be nearly impossible. But at least we have
an easy workaround by disabling spin lock validation.
Fixes#100885
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
Although we have the three layers, SWDP driver API, DAP stack, and USB
backend, to implement a debug probe, there is no way for the user to
instantiate the DAP context, which would allow it to be used with
different backends or to change the configuration at runtime.
The Debug Access Port (DAP) is an implementation of the ARM Debug
Interface (ADI) that is typically integrated into SoC.
With all three layers, we implement a link to the DAP on the SoC.
Let's call it Zephyr DAP Link and use the dap_link prefix. There is also
a MBED DAPLink project that implements similar functionality, but using
a different name would likely cause more confusion.
Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
Move the LUT to convert from simplified format to request packet
expected by the target, and the helper to calculate parity bits to
common header, so that they could be used by other drivers.
Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
Although the DAP subsystem is the only user in the tree, yet, we may have
other subsystems, libraries, or simple samples that could use this API
in the future.
Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
Added arduino_serial and arduino_header node labels to EK-RA4L1 device
tree board definition, allowing compatible shield boards to be used.
Signed-off-by: Ian Morris <ian.d.morris@outlook.com>
The net_linkaddr struct used to use pointers instead of copying the
data. Thankfully this was fixed in
https://github.com/zephyrproject-rtos/zephyr/pull/87027.
Remove the old comment to reflect the current state.
Signed-off-by: Stefan Gloor <stefan.gloor@siemens.com>
If a second UART was not configured in the hardware map, then skip
the testcase instead of failing.
Signed-off-by: Grzegorz Chwierut <grzegorz.chwierut@nordicsemi.no>
add me to the i2c collaborators, that we are going to
have at least 2 reviewers for that area.
I wrote the drivers/i2c/i2c_litex_litei2c.c driver and
the acording i2c core https://github.com/litex-hub/litei2c
Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
print_voltage() always returned success even when sensor operations
failed, making the error check in main() dead code.
Return the actual error codes so failures are correctly propagated
to the caller.
Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
ETHERNET_CONFIG_TYPE_FILTER is not supported
in the set_config, therefore remove
ETHERNET_HW_FILTERING from the
ethernet_hw_caps of this driver.
Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
the enum ethernet_config_type for the
multicast filter is ETHERNET_CONFIG_TYPE_FILTER.
ETHERNET_HW_FILTERING is only the according
ethernet_hw_caps.
Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
Set extended advertising setting in ipm_stm32wb.c with
stm32wb_set_stack_options function call for the BLE stack
Options flags initialization according to the
zephyr Kconfig options.
Signed-off-by: Eric Mechin <eric.mechin@st.com>
Add CRD40L50 board support to the CS40L5x sample application and update
documentation accordingly.
Signed-off-by: Liam Ogletree <liam.ogletree@cirrus.com>
Add support for the Cirrus Logic CRD40L50 demonstration board, which
features a CS40L5x haptics driver, AT25 SPI flash memory, status LEDs,
and a push button.
Signed-off-by: Liam Ogletree <liam.ogletree@cirrus.com>
Co-authored-by: Ricardo Rivera-Matos <ricardo.rivera-matos@cirrus.com>
intel_sha_set_resume_length_dw1() never reports errors
and always returns 0.
The error check at the call site is therefore dead code.
Make the function void and drop the unused error handling.
Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
intel_sha_set_ctl_enable() never reports errors
and always returns 0.
The error check at the call site is therefore dead code.
Make the function void and drop the unused error handling.
Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
Change at_get_raw_string() return type from 'char *' to 'const char *'
to match at_get_string() and improve const-correctness. This function
returns read-only AT command response data that should not be modified.
- Update at_get_raw_string() signature in at.h and at.c
- Update return statement cast from 'char *' to 'const char *'
- Update local variables in hfp_hf.c to use 'const char *':
* bvra_handle: 'id' variable
* chld_handle: 'value' variable
* cnum_handle: 'alpha' and 'speed' variables
- Mark unused 'alpha' and 'speed' in cnum_handle with __maybe_unused
- Change NULL check style from '!id' to 'id == NULL' for consistency
This completes the const-correctness improvements started in the
previous commit for HFP HF AT command string handling.
Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
Add documentation for the Edge Impulse SDK Zephyr module to the external
modules section, including:
- Module overview describing the Edge Impulse ML development platform
- Integration instructions with west.yml manifest configuration
- West extension commands (ei-build, ei-deploy) for model deployment
- License information (BSD-3-Clause-Clear)
- References to official Edge Impulse documentation and tutorials
The Edge Impulse SDK module enables machine learning inference on Zephyr
devices by packaging the Edge Impulse SDK as a reusable Zephyr module
with west integration for streamlined ML model deployment workflows.
Signed-off-by: Eoin Jordan <eoin@edgeimpulse.com>
Remove CONFIG_BT_CTLR_ADVANCED_FEATURES from prj.conf. This option
only controls visibility of advanced features in menuconfig and is
not required by the sample. It also depends on BT_LL_SW_SPLIT which
is not available on all platforms (e.g., ESP32 uses a closed-source
controller blob).
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
Set default values for BLE HCI buffer configuration that match
the ESP32 controller requirements:
- BT_BUF_ACL_RX_COUNT=24: Match controller's ACL buffer count
- BT_BUF_EVT_RX_COUNT=30: Match controller's event buffer count
Enable BT HCI node in device tree for all ESP32 SoCs that
support BLE.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
Implement VS HCI commands for ESP32 BLE controllers:
- Read/Write TX power level with per-handle support
- Read version info (platform, variant, firmware version)
- Read supported commands and features
- Read static addresses from eFuse (C2/C6/H2)
- Read build info (controller version string)
For original ESP32, use the legacy esp_ble_tx_power_set/get API.
For newer variants (ESP32-S3, ESP32-C2, ESP32-C3, ESP32-C6, ESP32-H2),
use the enhanced API that supports per-connection power control.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
Add Espressif platform and variant IDs to hci_vs.h for ESP32 family
SoCs (ESP32, ESP32-S3, ESP32-C2, ESP32-C3, ESP32-C6, ESP32-H2).
Add Espressif Systems to vs_hw_platform() and vs_hw_variant()
functions in hci_core.c for proper vendor identification.
Use CONFIG_SOC_FAMILY guards in vs_hw_variant() to reduce flash
usage by only compiling variant strings for the active SoC family.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
The target event handler i2c_mcux_target_transfer_cb() had a too high
cognitive complexity. Create a function for each event type to reduce
the complexity score.
Signed-off-by: Maximilian Werner <maximilian.werner96@gmail.com>