Add a west config option to skip rebuilds by default or not when doing
west flash. Also add corresponding symmetrical CLI options.
Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
Add tests support for RTC driver on these Renesas RA boards:
- ek_ra8m1
- ek_ra8d1
- ek_ra8p1
- ek_ra4l1
Signed-off-by: Khoa Tran <khoa.tran.yj@bp.renesas.com>
RA boards
Add samples test support for RTC driver on these Renesas RA boards:
- ek_ra8m1
- ek_ra8d1
- ek_ra8p1
- ek_ra4l1
Signed-off-by: Khoa Tran <khoa.tran.yj@bp.renesas.com>
Add support for the battery backup (VBAT) functionality on
Renesas RA8 family. This allows the RTC to retain timekeeping
data when the main power supply is lost by switching to the
VBAT domain automatically. This commit add support for these
SoC series: ra8m1, ra8p1, ra8d1
Signed-off-by: Khoa Tran <khoa.tran.yj@bp.renesas.com>
RA8 family
Add a battery backup (VBAT) node to the device tree for the Renesas
RA8 family. This enables support for RTC VBAT domain switching when main
power is lost.
Signed-off-by: Khoa Tran <khoa.tran.yj@bp.renesas.com>
Renesas RA family
Add dts bindings for the battery backup (VBAT) node used
on the Renesas RA family.
Signed-off-by: Khoa Tran <khoa.tran.yj@bp.renesas.com>
uicr/zephyr/zephyr.hex needs to be built after all other zephyr
images.
Instead of adding a dependency on uicr, we check the sysbuild_images
property to find images.
Also, we check it as late possible by using the cmake_language(DEFER
DIRECTORY feature. Which will ensure that running this code will be
one of the last things that the CMake sysbuild program does at
Configure time.
Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
This commit adds `latch-enable` property to power elpm child
node and marks the `polarity` property as required.
Signed-off-by: Ren Chen <Ren.Chen@ite.com.tw>
Relocate the initialization of the gpio-q group and the elpm
module to early SoC preparation hook. The elpm xlpout signal
is connected to the main power rail and is driven by firmware
after bootup. Initializing these modules early ensures that
the power rail remains stable and does not drop.
Signed-off-by: Ren Chen <Ren.Chen@ite.com.tw>
Fix the transmit timestamp value sent in SNTP queries:
* Use sys clock as a time source instead of the uptime,
* As NTP epoch is different from Unix epoch (starts in 1900), adjust
the seconds value with appropriate offset,
* Finally, adjust the fraction calculation to the nanoseconds value
from struct timespec. Do the math in 64-bit to avoid overflows and do
the division at the end for more accurate results.
Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
The macro `NRF_802154_TX_STARTED_NOTIFY_ENABLED` has been removed
from the nRF 802.15.4 Radio Driver.
Setting it in CMakeLists.txt became pointless and is removed.
Signed-off-by: Andrzej Kuros <andrzej.kuros@nordicsemi.no>
The MTU of HFP HF or AG is fixed value. It cannot be configured.
Fix the issue to make the MTU of RFCOMM is consistency with the MTU
of L2CAP.
Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
Enable watchdog node, add alias used in samples and add 'watchdog' to
the supported list (for twister).
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
Add board support for WeAct Studio ESP32-C3-Mini, a compact
development board based on ESP32-C3FH4 with 4MB internal flash.
Features:
- ESP32-C3 RISC-V single-core @ 160MHz
- 400KB RAM, 4MB flash
- USB Serial/JTAG for flashing and debugging
- Wi-Fi 802.11b/g/n and Bluetooth 5 LE
- On-board blue LED (GPIO8)
- Boot button (GPIO9)
- Exposed GPIOs: 0-10, 18-19, 20-21
Supported peripherals:
- USB Serial/JTAG
- I2C (GPIO0, GPIO1)
- SPI (GPIO3-6)
- GPIO
- Watchdog
- TRNG
- Wi-Fi
- Bluetooth
Signed-off-by: Siratul Islam <sirat4757@gmail.com>
Rename the modulino pixels driver to use the official marketing name,
the "smartleds" one was picked incorrectly from the source code of the
on board mcu of the module itself, but that was clearly out of date.
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
The zephyr:code-sample directive automatically adds a link to the sample
source code on GitHub -- remove all manually added links that are just
redundant and subject to bitrot / copy-paste errors.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Properly close down the CMUX channel before shutting down
the modem.
The CMUX Close-Down command should indicate the remote end
to clean up, even if we don't have shutdown script or power-key GPIO.
Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
If we immediately send disconnected event when CLD is received,
we might close the UART pipe before the response is actually send.
Also, shutdown_handler should not retry indefinitely.
Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
This patch adds support for the WeAct Studio STM32G030 Core Board,
a compact and low-cost development platform based on the STM32G030F6P6
microcontroller.
Main features:
- STM32G030F6P6 MCU (32 KB Flash, 8 KB SRAM)
- User LED
- Exposed SWD header for programming/debugging
- UART1 (PB6/PB7) as default console
- I2C2 (PA11/PA12) and SPI1 (PA1/PA6/PA7) peripheral mapping
- 3.3V or 5V input power options with onboard regulator
The board has been tested with the following Zephyr samples:
- samples/basic/blinky
- samples/hello_world
Signed-off-by: Siratul Islam <sirat4757@gmail.com>
mbedtls_ssl_write() function has a limitation, that when the function
returns MBEDTLS_ERR_SSL_WANT_WRITE, the consecutive call to this
function have to contain the same data as the previous call. As there
doesn't seem to be a viable workaround for this at the socket layer
(other than dropping non-blocking support which is not an option), we
need to carry this requirement for non-blocking sockets as well,
therefore document this case in secure sockets documentation.
Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
When bt_l2cap_send_pdu() succeeds, it transfers buffer ownership to the
stack, which must eventually invoke the provided callback. This contract
is honored in all paths where transmission becomes impossible:
- Normal transmission: callback invoked with err=0 after HCI Number of
Completed Packets event (tx_notify_process)
- Send errors (after tx allocated): callback invoked with err=-ESHUTDOWN
via conn_tx_destroy
- Send errors (before tx allocated): callback invoked with the specific
error code in send_buf error_return path
- Connection disconnect: callbacks invoked with err=-ESHUTDOWN via
process_unack_tx -> conn_tx_destroy for all PDUs in tx_pending
However, when a channel is deleted (l2cap_chan_del), PDUs remaining in
the tx_queue are dropped without invoking their callbacks, violating the
ownership contract.
Fix this by extracting and invoking any non-NULL callbacks from the
closure stored in buf->user_data before releasing the buffers. The
callback is invoked with err=-ESHUTDOWN, making this path analogous to
process_unack_tx: both drain queues of unsent PDUs when transmission
becomes impossible due to external events (channel deletion vs connection
disconnect). The only difference is the buffer lifecycle stage - in
l2cap_chan_del, PDUs are still in tx_queue (closure in buf->user_data),
while in process_unack_tx, they've progressed to tx_pending (callback in
bt_conn_tx struct).
Note: conn_tx_destroy() cannot be used here because no bt_conn_tx struct
has been allocated yet - the closure is still in buf->user_data.
Signed-off-by: Aleksander Wasaznik <aleksander.wasaznik@nordicsemi.no>
Document the ownership contract and callback semantics for L2CAP
transmission buffers:
- Extend tx_queue documentation in bt_l2cap_le_chan to explain SDU/PDU
storage, callback handling, and transmission order semantics
- Document bt_l2cap_create_frag responsibilities regarding callback
invocation after HCI Number of Completed Packets or on disconnect
- Document bt_l2cap_send_pdu callback contract: invoked exactly once
after transmission completes or with -ESHUTDOWN on disconnect
These documentation additions clarify the requirements for proper
buffer lifecycle management and callback invocation throughout the
L2CAP transmission path.
Signed-off-by: Aleksander Wasaznik <aleksander.wasaznik@nordicsemi.no>
This PR adds support for glyph c6 board based on esp32c6.
Tested using blinky,hello world and button.
Adapted from esp32c6_devkitc
Signed-off-by: Muhammed Asif <asifp3104@gmail.com>
fix(coap_link_format): Correct parameter constness in func signature
For function coap_link_format:coap_well_known_core_get_len()
the request parameter is declared to be a pointer-to-const,
but the const is missing for one of the two function definitions,
that are chosen via CONFIG_COAP_WELL_KNOWN_BLOCK_WISE.
With this fix the code also compiles when enabling
CONFIG_COAP_WELL_KNOWN_BLOCK_WISE.
Signed-off-by: Felix Kolbe <felix.kolbe@gmail.com>
Adds simplified i2s test for the following platforms:
- esp32_devkitc/esp32/procpu
- esp32s2_saola
Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
Optimizes i2s_esp32_stream_data and i2s_esp32_stream_conf structs and adds
property sanity check according to soc series based on SOC_GDMA_SUPPORTED
feature
Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
Allows to defer processing of an empty tx queue when tx_callback is
executed. This prevents error conditions if the tx dma interrupt is
generated too early, as occurs with esp32 and esp32s2.
Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
Reworks i2s_esp32_read() and i2s_esp32_write() to allow consistent use of
stream->data->state
Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
Deprecate the CONFIG_XOPEN_STREAMS Kconfig option in favour of
CONFIG_XSI_STREAMS, which matches the naming conventions of other XSI
Kconfig options and the actual Option Group name in the specification.
Please use CONFIG_XSI_STREAMS instead.
Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
CONFIG_XOPEN_STREAMS does not follow the pattern of other XSI Option
Groups, where the Option Group name is not the same as the feature
test macro that indicates it is supported by the implementation.
Deprecate CONFIG_XOPEN_STREAMS and rename it to CONFIG_XSI_STREAMS.
For more information, please see
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/\
V1_chap02.html#tag_02_01_05_09
Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>