Add a Kconfig `BT_L2CAP_CONNLESS` to enable the feature.
Add an API `bt_l2cap_br_connless_register()` to register the monitor
to receive the unicast connectionless data.
Add an API `bt_l2cap_br_connless_unregister()` to unregister the
registered callbacks.
Add an API `bt_l2cap_br_connless_send()` to send unicast
connectionless data.
Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
With inclusion of the optimization flag into the multilib selection
process, we cannot compute the compiler library path when the compiler's
target.cmake is processed as LINKER_OPTIMIZATION_FLAG is not computed until
much later.
Instead, add a function (compiler_file_path) which can be used to locate
the appropriate crtbegin.o and crtend.o files.
Delay computation of lib_include_dir and rt_library until after all
compiler flags have been computed by adding compiler_set_linker_properties
and calling that just before toolchain_linker_finalize is invoked.
Place default implementations of both of these functions in a new file,
cmake/compiler/target_template.cmake, where we assume the compiler works
like gcc or clang and handlers the --print-file-name and
--print-libgcc-file-name options. Compilers needing alternate
implementations can override these functions in their target.cmake files.
These implementations require that no generator expressions are necessary
for the compiler to compute the right library paths.
This mechanism is also used to take any additional compiler options by
adding a new (optional) linker function,
toolchain_linker_add_compiler_options, which maps compiler options to
equivalent linker options, discarding any that aren't applicable.
Signed-off-by: Keith Packard <keithp@keithp.com>
The linker may want to know the desired optimization level as when
the multilib configuration includes -Os as a selector.
Adopt the same pattern as the assembler optimization flags by allowing
toolchains to specify linker optimization flags which default to the
compiler optimization flags and the apply those using add_link_options.
Signed-off-by: Keith Packard <keithp@keithp.com>
A pull-up should be described in hardware (device tree) instead of
software.
Also interrupt on edges instead of the level.
Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
In order for samples/boards/nxp/mimxrt1060_evk/system_off to work, a
soft-off power state is needed.
Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
Adding overlays for Infineon kit_psc3m5_evk board to kernel/common,
kernel/timer/timer_error_case and kernel/timer/timer_api tests
when run in secure mode. These tests require more memory than
the board assigns to secure mode by default.
Signed-off-by: John Batch <john.batch@infineon.com>
This reverts commit 01ab719ed7938481b459ed5df122f935aa6ae3e0.
This is no longer needed, as we now have a scalable solution
using a vendor-specific resource table, which allows each vendor
to define its own supported features.
Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
Remove the FW_READY reply config, as it's not required for
the M7 core on i.MX8M Plus.
This setting triggers an interrupt to the host, which is
unnecessary in the case of M7 (check host-side imx_rproc
driver in Linux).
Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
Update for both 8QM and 8QXP, the nxp_openamp_imx8-adsp board
configuration to enable vendor-specific resource table features
instead of FW_READY reply config.
Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
Update the imx8mp_evk_mimx8ml8_adsp board configuration to enable
vendor-specific resource table features instead of FW_READY reply
config.
Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
i.MX943 M33 supports multi-level interrupt with NUM_IRQS 405.
Current ram_context_for_isr test does not cover multi-level interrupt.
So exclude i.MX943 M33.
Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Added tag protocol definition and binding. Also introduced
zephyr,dsa-port compatible for future tag protocol driver Kconfig
dependency checking.
Updated existed dts.
Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
A logging module named `tls_credentials` was being declared, but no
other source module was creating and registering it. Do the registration
in the file to fix the compiler error.
Signed-off-by: Jordan Yates <jordan@embeint.com>
Add docs about what main/sub mode combinations are considered valid
by spec.
In hindsight it would've been smarter to expose only one enum for both,
such that the user can't select invalid combinations.
Signed-off-by: Olivier Lesage <olivier.lesage@nordicsemi.no>
Filter duplicate entries in `kconf.kconfig_filenames` before calling
`os.path.realpath`.
Before (current code), all entries in `kconf.kconfig_filenames` go
through `os.path.realpath`. Including all duplicate entries.
With the proposed change, the duplicate entries are removed before
calling `os.path.realpath`.
Signed-off-by: Guðni Már Gilbert <gudni.m.g@gmail.com>
Some applications may need to modify their code to account
for the changes to struct bt_audio_codec_cfg.
Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
Wait acts as a boolean, make this clear to avoid implementations
interpreting this as a duration to wait for.
Signed-off-by: Dmitrii Sharshakov <d3dx12.xx@gmail.com>
The FUEL_GAUGE_BATTERY_CUTOFF enum property was never used and never tested
nor was it intended to be. This property unfortunately made it past review.
Remove it. This is unlikely to cause a breakage since no upstream driver
ever implemented it as a property.
Signed-off-by: Aaron Massey <aaronmassey@google.com>
The Holyiot YJ-17095 module provides Bluetooth low energy (BLE)
connectivity in a very small form factor of 9.4mm x 9.25mm.
Signed-off-by: Marc Lasch <mlasch@mailbox.org>
Use the Android Bluetooth SBC encoder and decoder.
The Android Bluetooth SBC is put as external library (libsbc).
sbc.c/sbc.h implement the interface that is compliant with
Zephyr style and can be used by Zephyr's other modules (
like A2DP).
Signed-off-by: Mark Wang <yichang.wang@nxp.com>
Correct the command line option from --coverage_basedir to
--coverage-basedir to match the actual twister argument syntax.
Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
Implement Start Discovery command Accept Filter List filtering.
Add a flag to the command's flags field to enable filtering.
Signed-off-by: Jori Rintahaka <jori.rintahaka@silabs.com>
Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
current the dir-pin is getting set each and every time perform_step
is called, this is inefficient, since the direction pin shall be set
only once, when a motion command(move_by/move_to/run) is called.
Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
smp_client is automatically freeing all net_buf* given for it,
so testcase does not need to call smp_client_buf_free() for
buffers that are processed.
Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
The SNVS RTC can act as a wakeup source, re-use pm.yaml properties and
remove the Kconfig symbol.
Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
If `bt_send` returns 0, the buffer will be unreferenced by an hci
driver. If it returns error, the buffer won't be unreferenced.
Since it is a test, simply check that `bt_send` always returns 0
otherwise fail the test.
Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
This reverts commit 40f08428d3.
The PCNS and ICNS registers of the mimxrt798s's GPIO0 peripheral allow
accesses to be set up only with mutual exclusivity (either the
cm33_cpu0 or the hifi4), thus the access is reverted to the cm33_cpu0
domain.
Signed-off-by: Vit Stanicek <vit.stanicek@nxp.com>