Button 0 and LED 0 share a GPIO pin on bg27 boards. Remove the
`led0` alias in a board overlay to make the button sample work
out of the box.
Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
Add new sample lpdac_opamp_lpadc for frdm_mcxa156.
In this example:
1. The LPDAC outputs a 300mv voltage to the
non-inverting terminal of the OPAMP.
2. The OPAMP operates in the non-inverting amplifier
mode, the inverting terminal of the OPAMP is grounded.
3. The channel 0 of the LPADC is connected to the output
of the OPAMP, and the channel 1 of the LPADC is connected
to the output of the DAC (the non-inverting input terminal
of the OPAMP).
4. The ideal sampling range of OPAMP output channel is
specified by 'ideal-sample-range', and 'nxp,opamps' are
used to specify LPADC samples which OPAMP's output and
which ADC channel is connected to the OPAMP output.
5. The OPAMP non-inverting input is 300mV, and the OPAMP
gain is initialized to 1. Therefore, the first round OPAMP
output (~300mV) will not reach the minimum value of the
'ideal-sampling-range'. Therefore, the ADC driver will
increase the OPAMP gain through 'opamp_set_gain'. The second
round OPAMP output (~900mV) is still below the minimum value,
so the gain will continue to increase. The third round OPAMP
output (~1500mV) is already in the ideal range, so the gain
will not be adjusted later.
Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
Now that the MBOX_STM32_HSEM driver is enabled by default if
present within the device-tree, it is no more necessary to
manually enable it within samples board specific conf files.
Remove as well the CONFIG_LOG_BACKEND_UART since overall
CONFIG_LOG is anyway not enabled in the samples/drivers/mbox
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
Updated project configuration for Border Router to include DHCP6_PD
client, DNS upstream resolver and SRP server features
Removed flags set to 'n' and updated Thread version to 1.4
Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
Product image from https://learn.adafruit.com/assets/103710
Tested with the command mentioned in the index.rst file.
Compile-testing of the overlay file is done in CI via the
drivers/rtc sample.
Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
Add sample application to demonstrate new ADC stream APIs.
Two tests are also added:
- ad4052-stream
- max32-stream
Signed-off-by: Vladislav Pejic <vladislav.pejic@orioninc.com>
Like other samples, this moves to net_ipaddr_parse, which can handle IPv4
and IPv6. Additionally, it parses the port as well which removes the need
to have separate Kconfigs for addresses and ports, thus simplifying the
code.
Signed-off-by: Michael Zimmermann <michael.zimmermann@sevenlab.de>
The config PM_S2RAM_CUSTOM_MARKING is not an optional config for a
user to select, it is required by some soc implementations of S2RAM,
in which case it must be selected by the soc.
Refactor the configuration to be HAS_PM_S2RAM_CUSTOM_MARKING, and
make the currently only soc which needs it select it. Then update
samples which previously had to select this option for this soc.
Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
Currently it is possible to have an enabled (status="okay")
"suspend-to-ram" "zephyr,power-state" in the devicetree,
CONFIG_PM=y, but CONFIG_PM_S2RAM=n
This means the presence and state of the "suspend-to-ram" power
state in the devicetree does not match the PM_S2RAM option,
despite PM_S2RAM being dependent on the devicetree state.
This commit makes the devicetree the "source of truth" for
whether one or more s2ram power states shall be included and
supported, by enabling PM_S2RAM if any s2ram power state with
status "okay" is present in the devicetree. To disable the
s2ram power state, like with any other state, disable it by
setting its state to "disabled".
The help of the now promptless PM_S2RAM config has been
updated to reflect the new meaning. It previously held
cortex-m specific implementation details, these have been
removed as these details are already present in the file
pointed to as well (arch/arm/core/cortex_m/pm_s2ram.c
line 22)
Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
Move the accept-loop into a socket-service. No dedicated thread is needed
just for the accept loop. This better demonstrates the power of the
socket-service in removing the need for dedicated threads. Make some tiny
improvments and necessary changes to the udp-side of the service.
Signed-off-by: Cla Mattia Galliard <clamattia@gmail.com>
- Increase codec config metadata size to support long metadata
audio configuration
- Remove invalid check for requested and new BIS sync request
- Delete broadcast sink when sync terminated to prepare for
next sync attempt
- Change supported channel count from 2 to 1 to align with
project configuration and set audio channel to front center
These changes ensure the cap_acceptor sample works correctly
with Google Pixel devices by handling metadata properly and
managing broadcast sink lifecycle appropriately.
Signed-off-by: Chang An <chang.an_1@nxp.com>
Product photo from https://learn.adafruit.com/assets/122469,
which has the CC BY-SA 3.0 license.
Tested with the command mentioned in the index.rst page.
Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
Fixes
samples/drivers/pwm/capture/src/main.c:50:47: warning: implicit
conversion from 'floa' to 'double' when passing argument to function
[-Wdouble-promotion]
50 | (float)tim_clk_cycles / (float)period,
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
samples/drivers/pwm/capture/src/main.c:51:46: warning: implicit
conversion from 'floa' to 'double' when passing argument to function
[-Wdouble-promotion]
51 | (float)(width * 100) / (float)period);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
Choose another sai1_fs_a pin available to avoid the need to
disable the Zephyr-chosen console and i2c3 node.
Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
Apparently, the code was copied from where the broadcast IP is parsed and
not adjusted correctly. Both the log message and the source of the IP
address were wrong.
Signed-off-by: Michael Zimmermann <michael.zimmermann@sevenlab.de>
The opposite of what was stated previously is true.
NET_SAMPLE_MQTT_SN_GATEWAY_IP is only used when
NET_SAMPLE_MQTT_SN_STATIC_GATEWAY is y.
Since this is already expressed using Kconfig dependencies, this change
simply removes the sentence in question.
Signed-off-by: Michael Zimmermann <michael.zimmermann@sevenlab.de>
List of allowed platforms for this sample was
changed in PR #85997. This enabled more
platforms including those that are not needed.
This commit excludes nrf5340/cpuapp_ns and
nrf5340/cpunet platforms since they are not
supported by this sample.
Signed-off-by: Dominik Kilian <Dominik.Kilian@nordicsemi.no>
The pwmleds node for `xmc45_relax_kit` and `xmc47_relax_kit` should be
disabled initially due to the PWM controller the pwmleds node use not
being enabled by default.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Propagate #79996 where RGB_565 and BGR_565 interchange got fixed.
It is not necessary to enable the BGR_565 format for the ST7789V display
as RGB_565, the default, is correct.
Signed-off-by: Josuah Demangeon <me@josuah.net>
Increase the ESP32 S3 Eye board buffer size to fit the selected frame size
configured. This fixes a buffer allocation error preventing the sample
to run. Only use a single buffer which is enough to run it.
Signed-off-by: Josuah Demangeon <me@josuah.net>
Add stm32f769i_disco conf file in order to increase the amount of
HEAP to ensure k_malloc allocation goes well.
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
New OpenThread functionalities have been enabled. Updated specific nxp-
rcp-host-wifi configuration file.
Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
Beside main core, check output from remote core console.
Checking second console will work only for nordic boards
(as the pattern to get second uart interface is known).
For other boards (with different interface naming),
the test will check only provided console,
which is the same behavior as harness:console.
Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
Configure and attach DMA for each platform's USART to enable
asynchronous UART communication.
Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
Callbacks now take a result parameter which may, if the callback was
linkd to by a previous submissions, have the result code from the last
submission.
Additionally the userdata is now const by default making it easier to
use the device pointer as the userdata which is very common.
Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
Create an overlay and a config file for testing the VIRTIO network device.
Add some instructions to the README.rst file as well.
These can be used with any of the networking subsystem samples.
Signed-off-by: Jakub Klimczak <jklimczak@internships.antmicro.com>
The new I-RAM and D-RAM layout for pb2 m4 is not compatible with
devnull. So do not have the tests for pb2.
Signed-off-by: Ayush Singh <ayush@beagleboard.org>
This feature enables sharing of built applications between test
scenarios, allowing tests to access build artifacts from other
applications.
Signed-off-by: Grzegorz Chwierut <grzegorz.chwierut@nordicsemi.no>
When the buffer is full, Thread A gets pended (blocked).
If Thread B later calls the get function, it will unpend Thread A,
allowing it to resume and put the message into the queue.
In this situation, we need to know whether Thread A should
continue with put to front or put to end.
In order to resolve this issue, we don't allow set timeout
parameter for `k_msgq_put_front` and this parameter is always
`K_NO_WAIT`.
Signed-off-by: TaiJu Wu <tjwu1217@gmail.com>
In USB "in" refers to data going from device to host,
and "out" refers to data going from host to device.
From a BT perspective "usb_out" then refers to the data
we receive from the host, to be sent over BT, so the "out"
terminology still works for that.
Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>