The Xen events channel driver consume 72K of RAM, but may not be
required in all use cases.
Added a XEN_EVENTS Kconfig option so that Xen events can be gracefully
disabled if not required. Updated the relevant CMakeLists.txt and
Kconfig files to guard the inclusion of the Xen events driver and its
source files by this option.
Signed-off-by: Grygorii Strashko <grygorii_strashko@epam.com>
Signed-off-by: Svitlana Drozd <svitlana_drozd@epam.com>
Currently apply_filters is parsing & validating a snippet YAML
file multiple times, duplicating expensive work.
Do the work once per testsuite instead of for each testsuite
multiplied by number of toolchains.
Signed-off-by: Guðni Már Gilbert <gudni.m.g@gmail.com>
Exit from twister in case of user's error e.g. empty list
of tests provided by user instead of throwing unhandled
exception.
Signed-off-by: Lukasz Fundakowski <lukasz.fundakowski@nordicsemi.no>
An unknown event key can occur a lot if only a subset of the keys are used
in lvgl. Demote level from warning to debug.
Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
Increasing FD count in the system for the network stack (native sockets)
only makes sense if native network stack is enabled. Otherwise, just
make it 0. This makes a difference for example when socket offloading is
used and the offloaded implementation makes its own reservation.
Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
The bypass mode in shell.c transfers data in a loop and doesn't need
a large buffer. The previous code conditionally used
CONFIG_SEGGER_RTT_BUFFER_SIZE_DOWN which unnecessarily tied the bypass
buffer size to RTT configuration and could increase stack usage when
RTT buffer is configured larger.
This adds CONFIG_SHELL_BYPASS_READ_BUF_SIZE with a default of 16 bytes,
which is sufficient for the iterative read loop. A build-time assert
ensures the buffer doesn't exceed SHELL_STACK_SIZE.
Fixes: db9dccdc8a
Signed-off-by: Karel Blavka <karel.blavka@hardwario.com>
Adding a configuration flag for IPV4 capabilities which defines
dependencies and selects other functionalities.
By default, IPV4 capabilities are enabled for an OpenThread border
router application.
Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
Separating initialization functions at platform level.
Removing IPV4 packet filtering rules when OT NAT64 service is stopped.
Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
This commits splits the border router services initialization by
separating the ipv6 related services from ipv4 ones.
As there are cases in which a DHCPv4 server is not present in the
network setup, there is no reason to wait for an IPV4 address before
starting the border router. In this case, only IPV6 functionalities
would be exposed.
Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
The Kconfig option to enable the reference voltage test was
accidentally dropped from the testcase configuration in
`231bf62f7f`, causing the test
to never be executed. Re-enable the config to allow the test
to execute.
On a xg24_rb4187c board:
Before:
SUITE SKIP - 0.00% [adc_accuracy_test]: pass = 0, [...]
After:
SUITE PASS - 100.00% [adc_accuracy_test]: pass = 1, [...]
Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
This commit adds the MikroE CAN SPI and MCP25625 Click shield under
the same assignees as other of the CAN driver based shields.
Signed-off-by: Stephan Linz <linz@li-pro.net>
pwm_mcux_sctimer driver doesn't support power management actions.
PM Actions added, as well support to save/restore for pwm channels
configurations after exitig from PM3.
Signed-off-by: Missael Maciel <davidmissael.maciel@nxp.com>
Enable two-uart test for xg24_rb4187c. Modify the pinout for
the uart_loopback fixture to support two complete UARTs including
flow control by connecting pins EXP[4,6,8,10] with EXP[7,9,11,13]
on the expansion header.
Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
When an async transfer finished quickly, the internal state of
the driver could come out of sync with the hardware. The tx/rx
enabled flag and PM lock was taken after starting the DMA
transaction, which caused issues if the DMA complete callback
was called before the flags were updated. Set the flag and take
the PM lock prior to starting the DMA transaction to avoid this.
Also release the PM rx lock upon successful completion of a
transfer. The lock was previously only released when the user
manually called `uart_rx_disable()`.
Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
Add a device tree property to request connecting an instance to stdin/out
(on top of the command line option, and the kconfig option).
And clarify that the kconfig option applies to whichever is the
first instance in whatever order the DT logic happens to order them.
Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
PLL mode on MSIK/MSIS should be enabled only if property `msi-pll-mode` is
present on the generator's DT node. However, the STM32U3 clock driver did
not check this property and unconditionally enabled PLL mode. This is an
issue because PLL mode requires an LSE generator to be provided, which was
asserted at build time, preventing usage of MSIS/MSIK without an LSE even
if the target application did not need the accuracy provided by PLL mode.
Fix by enabling PLL mode for each MSIx generator only if the `msi-pll-mode`
property is enabled on the corresponding DT node.
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
The length is an input parameter, which tells the kernel how big the
storage is. Depending on the socket implementation in use, not setting this
properly can (and should) fail depending on the value of the stack
variable.
Signed-off-by: Michael Zimmermann <michael.zimmermann@sevenlab.de>
5f5db5bf3c added support for IPV6_MULTICAST_HOPS by adding both IPv4 and
IPv6 variants in place where they are used. This made the code a bit
complicated, though. This commit introduces helper functions to solve this.
Signed-off-by: Michael Zimmermann <michael.zimmermann@sevenlab.de>
The default (CONFIG_NUM_IRQS - 1) does not always work, as
proven in other cases in this test. Finding the free IRQ
during runtime is not possible, as DIRECT_DYNAMIC_CONNECT
requires constant value. Thus, added Kconfig option to override
the maximum IRQ offset at build time.
Signed-off-by: Michał Stasiak <michal.stasiak@nordicsemi.no>
In the central search mask of the board and shield catalog, panels
with the corresponding images are only rendered correctly if the
file name of the corresponding image also follows the entry in the
shield.yml file. This has now been corrected.
Signed-off-by: Stephan Linz <linz@li-pro.net>
In the central search mask of the board and shield catalog, panels
with the corresponding images are only rendered correctly if the
file name of the corresponding image also follows the entry in the
shield.yml file. This has now been corrected.
Signed-off-by: Stephan Linz <linz@li-pro.net>
Harmonize the variable names frame_size, bytes_per_frame or word_size_bytes
by replacing them all with dfs, which is already used in the Zephyr SPI
driver.
Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
Replace the direct read from the registers by dedicated LL functions
since that they are now available.
Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
Define a single function to enable the DMA requests instead of duplicating
the same lines several times.
Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
This commit removes some line breaks from function definitions that were
not needed since it can fit on one line.
Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
In case of error from the spi_stm32_shift_frames, spi_stm32_complete
could be called twice if one of the condition with the transfer directiion
were true. To prevent this, add a return after the call to
spi_stm32_complete.
Simplify the if/else block with a single if since spi_stm32_complete is
called in every case.
Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
The functions spi_stm32_send_next_frame and spi_stm32_read_next_frame
already exist to send and receive next frame. Use them in slave mode
instead of doing it manually.
Additional checks with spi_context_tx_buf_on and spi_context_rx_buf_on are
done inside these functions but they are already done beforehand in slave
mode.
Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
Create a new function that calculates and set the transfer size depending
on the transfer direction (for H7 compatibles).
Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
It was not clear for shields which of the two indexed I2C node labels
should be used as the default from the board's perspective. Now, the
default node label that are to be specified in parallel can be used
for I2C types.
Signed-off-by: Stephan Linz <linz@li-pro.net>