The sample needs a bit more resources. The existing build
assert complains about this
error: static assertion failed: "CONFIG_ZVFS_POLL_MAX must be larger than
((1 + (2 + 0)) + (3 + 3) + 0)"
include/zephyr/net/dns_resolve.h:146:1: note: in expansion of macro
'BUILD_ASSERT'
146 | BUILD_ASSERT(CONFIG_ZVFS_POLL_MAX >= DNS_DISPATCHER_MAX_POLL,
| ^~~~~~~~~~~~
Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
VLANs need to be initialized before the wait_for_network() call
so that VLAN interfaces are ready at the start.
Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
Removing the message buffer and printing out the message directly.
Creating a message buffer with the size of CONFIG_BT_L2CAP_TX_MTU
creates a large empty buffer, which is expensive for the stack and
can lead to a stack overflow.
This way, the sample can be more easily integrated with
other Bluetooth functionalities, such as Bluetooth OTA.
Signed-off-by: Carlo Weidinger <carlo.weidinger@protonmail.com>
Follow-up on newly introduced USB MIDI2 support.
Prefix with usbd_, use midi2 consistently.
Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
Some boards may define LEDs but disable them by default due to conflicts
with other peripherals. In this case, the new sample code introduced in
a5fd92b ("samples: fade_led: use all available LEDs") fails to build
with a missing symbol error.
Fix this by checking if the PWM device (the parent of the LED alias) is
enabled before using it. This implicitly discards invalid aliases.
Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
Enable DAC entry in device tree and pinctrl (PB13/PB14).
Update doc/yaml files to include ADC info.
Update the sample for sam4s_xplained.
Signed-off-by: Ibe Van de Veire <ibe.vandeveire@basalte.be>
nucleo_C071rb overlay file contains all ADC node configurations
to be able to run the sample.
Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
The Sample Output section is missing a blank line before the code block
markup, resulting in the sample output text showing up with an incorrect
format. Fixed by adding a blank line.
Signed-off-by: Irfan Ahmad <irfan.ahmad@siemens.com>
Since a separate CONFIG_NET_TC_RX_SKIP_FOR_HIGH_PRIO was introduced for
RX TC queues, CONFIG_NET_TC_SKIP_FOR_HIGH_PRIO became ambiguous,
rename it to CONFIG_NET_TC_TX_SKIP_FOR_HIGH_PRIO and deprecate the old
config.
Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
Update the Central and Peripheral GATT write command sample
to measure throughput across all supported connection PHYs.
Cover the sample in BabbleSIM CI testing to validate the 2M
PHY throughput after all supported PHYs have been changed
once.
Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
Move overlays and conf from boards to socs in following samples :
- samples/drivers/adc/adc_dt
- samples/drivers/counter/alarm
- samples/drivers/dac
- samples/subsys/settings
Signed-off-by: Marek Matej <marek.matej@espressif.com>
add more samples
Signed-off-by: Marek Matej <marek.matej@espressif.com>
The sample defines an image that uses RAMdisk and also provides an
option to enable USB DFU flash backend for the "slot-1" flash partition.
Assuming the user runs this sample from the slot-0 partition, uploading
to flash should work fine for evaluation purposes.
If the sample is built with CONFIG_BOOTLOADER_MCUBOOT=y, the sample will
mark the image in slot 1 as pending after an image download.
Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
In the usbd_register_all_classes(), we may need to skip some instances
as they may have very specific function like USB DFU "DFU mode" which
should not be available by default.
Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
Add support for xg24_rb4187c to the ADC sample app. Configure two
channels, one measuring the AVDD supply against the 1.21V bandgap
reference, and one measuring pin PB1 (wired to button 0) against
the AVDD (VDDX) reference.
Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
Add a sample application that demonstrates how to use the new USB-MIDI 2.0
device class. This shows how to set up the device tree, how to exchange
MIDI data with the host, and how to use the data accessors provided by
the new API.
Signed-off-by: Titouan Christophe <moiandme@gmail.com>
The sample app draws rectangles in the corner of the display.
On devices with the SCREEN_INFO_X_ALIGNMENT_WIDTH capability,
each draw needs to transmit a complete line. Make the sample
work on such displays (e.g. the `ls0xx` driver) by making the
rectangles take up the full width of the display.
Co-authored-by: Benjamin Cabé <kartben@gmail.com>
Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
Remove ADC2 support (identified as adc1 entry)
for additional ESP32-C3 based board targets.
Other boards have those instances already deleted.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
nRF5340 SoC supports retained_mem driver, which can be
utilized for RAM retention in System OFF sleep mode.
Add sample configuration confirming this.
Signed-off-by: Nikodem Kastelik <nikodem.kastelik@nordicsemi.no>
Modify the BAP Broadcast source sample to use the next USB stack.
For simplicity, the changes are minimum and will still do the
same downsampling, and thus use a fixed 48KHz audio input.
Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
PR #77335 intended to remove sensor
specific samples and missed a readme file.
This commit removes that file and empty directory.
Signed-off-by: Emilio Benavente <emilio.benavente@nxp.com>
The user of the ft8xx driver can register a callback function called
on a touch detection interrupt event. This function is extended to
include a user-defined pointer. The user-defined pointer helps to share
a callback with multiple driver instances.
Signed-off-by: Hubert Miś <hubert.mis@gmail.com>
Improve the FT8xx display driver to support multiple driver instances.
The ft8xx_reference_api.h still follows the FT8xx programming guides,
limiting the usage of the driver to one instance.
Signed-off-by: Hubert Miś <hubert.mis@gmail.com>
There's no point building the sample for platforms that do not support
networking, hence add netif dependency to reduce the CI execution
scope.
Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
Adds support for testing sensor shell streaming
on the vmu_rt1170 with RTIO.
Co-Authored-by: James Goppert <james.goppert@gmail.com>
Signed-off-by: Benjamin Perseghetti <bperseghetti@rudislabs.com>
Hello world from the tests is no longer what it once was, a simple
hello_world function that prints. The sample was here to let people
explore and learn about how LLEXT and ELFs work.
Moving the sample extension code to the shell loader sample disconnects
the two and lets the sample remain simpler.
We use the new CONFIG_LLEXT_IMPORT_ALL_GLOBALS to show how to build
an extension with and without the Zephyr build system.
Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
This allows us to use the testusb Linux kernel tool again. All tests
involving control and bulk transfers should pass. Additionally, add a
shell command that allows the user to manually enqueue bulk transfers.
Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
A _res_fallback parameter to HTTP_SERVICE_DEFINE is added to optionally
specify a fallback resource detail, which will be served if no other
resource matches the URL.
Signed-off-by: Matt Rodgers <mrodgers@witekio.com>
This issue is seen by at least gcc 11.4.0
samples/net/sockets/http_get/src/http_get.c:44:40: warning:
format ‘%d’ expects argument of type ‘int’, but argument 2
has type ‘ssize_t’ {aka ‘long int’} [-Wformat=]
44 | #define CHECK(r) { if (r < 0) {
| printf("Error: %d\n", r); exit(1); } }
| ^~~~~~~~~~~~~
samples/net/sockets/http_get/src/http_get.c:44:49: note: format string is
defined here
44 | #define CHECK(r) { if (r < 0) {
printf("Error: %d\n", r); exit(1); } }
| ~^
| |
| int
| %ld
Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
Add overlays for nrf54h20dk_nrf54h20_cpuppr. Moved common configuration
for nrf54h20dk to nrf54h20dk_nrf54h20_common.dtsi. Add configuration
for vpr_launcher on nrf54h20dk_nrf54h20_cpuapp.
Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>