Commit graph

85,247 commits

Author SHA1 Message Date
Marc Reilly
d485824926 sensor: ms5837: support -02 variant
This adds support for the -02 variant, as well as the existing -30.
The sensor type is automatically read from configuration register at
device init, an appropriate compensation func is set up

Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
2023-04-07 13:13:01 +02:00
Marc Reilly
99ce8cf910 sensor: ms5837. fix unsigned underflow in compensation calc
This fixes a bug where the temperature difference was being done as
unsigned and so could underflow.

Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
2023-04-07 13:13:01 +02:00
Marc Reilly
b4c31fd438 sensor: ms5837: pressure values in kPa
The sensor interface specifies pressure values in units of kPa, so change
here to be consistent.

Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
2023-04-07 13:13:01 +02:00
Peter Marheine
5773862844 gen_relocate_app: avoid hard-coding section name fragments
This refactors the script to introduce a SectionKind enum that
represents each of the kinds of sections handled by this system (text,
data, rodata or bss), using that to improve the code structure by
reducing the use of strings in favor of indicating the use of values by
their types.

Signed-off-by: Peter Marheine <pmarheine@chromium.org>
2023-04-07 13:12:13 +02:00
Peter Marheine
12c6dda9e2 gen_relocate_app: restrict relocations to listed files
When using code_data_relocation the script identifies sections that
should be relocated, but cannot guarantee that section names are unique
across all linked files. If a section name is not unique then matching
all sections with that name across all input files will relocate more
data than intended.

As a simple example, if both file1 and file2 contain .rodata.strings
sections, then if gen_relocate_app inspects only file1 it will generate
a linker script fragment `*(.rodata.strings)` that matches both object
files.

This commit changes gen_relocate_app to make the linker match on object
files as well (`*file1.o(.rodata.strings)`) to ensure unwanted sections
don't get relocated.

Signed-off-by: Peter Marheine <pmarheine@chromium.org>
2023-04-07 13:12:13 +02:00
Caspar Friedrich
ba66f41e21 samples: w1: Update scanner example for ds2482-800 bus driver
The scanner example for 1-wire now supports the DS2482-800 multi channel
bus master.

Signed-off-by: Caspar Friedrich <c.s.w.friedrich@gmail.com>
2023-04-07 13:11:54 +02:00
Caspar Friedrich
691228ce01 drivers: ds2482-800: Add driver
This adds a driver for the DS2482-800 1-wire multi channel bus driver.
The driver uses a split architecture in order to share a common lock
among all configured channels of a single IC.

Signed-off-by: Caspar Friedrich <c.s.w.friedrich@gmail.com>
2023-04-07 13:11:54 +02:00
Caspar Friedrich
8b621e3bde drivers: ds248x: Fix naming
ds248x no longer applies to all drivers. Therefore the naming indicates
compatibility with DS2482 and DS2484 drivers.

Also
- Fix some code formatting

Signed-off-by: Caspar Friedrich <c.s.w.friedrich@gmail.com>
2023-04-07 13:11:54 +02:00
Caspar Friedrich
51e2d62297 drivers: w1: Let driver explicitly implement the bus lock functionality
This path can be used as a runtime initialization in a select/deselect
manner.

Signed-off-by: Caspar Friedrich <c.s.w.friedrich@gmail.com>
2023-04-07 13:11:54 +02:00
Peter Fecher
e03884af2c board: arm: Add PhyBOARD Pollux
Add board definition to run Zephyr on the M7-Core
of the i.MX8M Plus SoC on the PhyBOARD Pollux.

Signed-off-by: Peter Fecher <p.fecher@phytec.de>
2023-04-07 13:10:51 +02:00
Dawid Niedzwiecki
4ef47888ef ec_host_cmd: add UART backend
Add a new backend for Host Commands that uses UART. The backend bases
asynchronous UART API.

The UART backend is mainly used by FPMCU.

Signed-off-by: Dawid Niedzwiecki <dawidn@google.com>
2023-04-07 13:05:59 +02:00
Dawid Niedzwiecki
73480edf00 ec_host_cmd: update test the directory structure
Create a separate directory per backend.

Signed-off-by: Dawid Niedzwiecki <dawidn@google.com>
2023-04-07 13:05:59 +02:00
Dawid Niedzwiecki
7490adcd2a ec_host_cmd: update Kconfig help message
The help messages for max request/response SHI sizes were adjusted only
for NPCX, update it.

Signed-off-by: Dawid Niedzwiecki <dawidn@google.com>
2023-04-07 13:05:59 +02:00
Fabio Baltieri
14df8fa88f docs: release: 3.4: add input subsystem notes
Add the release notes covering the input subsystem work so far.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2023-04-07 11:30:14 +02:00
Emil Gydesen
3d3e692190 Bluetooth: Audio: Add missing null checks in mpl
There were a missing NULL check for the track segment in
paused_state_command_handler when performing the segment
operations.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen
7efc99b9ab tests: Bluetooth: Add MCC BSIM reconnection
Add reconnection to the MCC BSIM test.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen
695f85e29d Bluetooth: Audio: Add MCC verification of read object IDs
Add check to verify that the object IDs we receive from
the server are valid.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen
9c129c5bc7 Bluetooth: Audio: MCC memset discover params for included
The discovery parameters may contain values from previous
discovery calls. The simply and future proof solution to
this is to simply memset it before using it.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen
b7c2629a6f Bluetooth: Audio: Add value_handle check to MCC subscribe cb
If the subscribed callback is called with value_handle = 0,
then it should not be treated as a subscription complete.

This will happen when bt_mcc_discover_mcs is called, as
reset_mcs_inst unsubscribed to all characteristics before
discovering again.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen
ca4d8a483b tests: Bluetooth: MCC: Add invalid testing of read_content_control_id
Add invalid testing of bt_mcc_read_content_control_id.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen
f001fc1ec3 tests: Bluetooth: MCC: Add invalid testing of bt_mcc_read_media_state
Add invalid testing of bt_mcc_read_media_state.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen
a21ae5b7c1 tests: Bluetooth: MCC: Add invalid testing of read_playing_orders_supported
Add invalid testing of bt_mcc_read_playing_orders_supported.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen
8bcb15e1c6 tests: Bluetooth: MCC: Add invalid testing of bt_mcc_set_playing_order
Add invalid testing of bt_mcc_set_playing_order.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen
9e823184e2 Bluetooth: Audio: Add value check for bt_mcc_set_playing_order
Add check for the (playing) order value, to verify that is it
a valid value.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen
582c937947 tests: Bluetooth: MCC: Add invalid testing of bt_mcc_read_playing_order
Add invalid testing of bt_mcc_read_playing_order.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen
e31c14b8cc tests: Bluetooth: MCC: Add invalid testing of otc_read_current_group_object
Add invalid testing of bt_mcc_otc_read_current_group_object.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen
fdc4529cdd tests: Bluetooth: MCC: Add invalid testing of read_current_group_obj_id
Add invalid testing of bt_mcc_read_current_group_obj_id.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen
0186ede519 tests: Bluetooth: MCC: Add invalid testing of set_current_group_obj_id
Add invalid testing of bt_mcc_set_current_group_obj_id.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen
9ca8f20361 tests: Bluetooth: MCC: Add invalid testing of otc_read_parent_group_object
Add invalid testing of bt_mcc_otc_read_parent_group_object.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen
9115d25ff5 tests: Bluetooth: MCC: Add invalid testing of read_parent_group_obj_id
Add invalid testing of bt_mcc_read_parent_group_obj_id.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen
863fa8f533 tests: Bluetooth: MCC: Add invalid testing of otc_read_next_track_object
Add invalid testing of bt_mcc_otc_read_next_track_object.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen
c2c5a7571a tests: Bluetooth: MCC: Add invalid testing of bt_mcc_read_next_track_obj_id
Add invalid testing of bt_mcc_read_next_track_obj_id.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen
e1d0e0ffab tests: Bluetooth: MCC: Add invalid testing of bt_mcc_set_next_track_obj_id
Add invalid testing of bt_mcc_set_next_track_obj_id.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen
badebd5011 tests: Bluetooth: MCC: Add invalid testing of otc_read_current_track_object
Add invalid testing of bt_mcc_otc_read_current_track_object.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen
d771fa0fe8 tests: Bluetooth: MCC: Add invalid testing of read_current_track_obj_id
Add invalid testing of bt_mcc_read_current_track_obj_id.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen
3df4a8f4f4 tests: Bluetooth: MCC: Add invalid testing of set_current_track_obj_id
Add invalid testing of bt_mcc_set_current_track_obj_id.y

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen
81aec969ee tests: Bluetooth: MCC: Add invalid testing of read_track_segments_object
Add invalid testing of bt_mcc_otc_read_track_segments_object.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen
c7fdb7ae34 tests: Bluetooth: MCC: Add invalid testing of bt_mcc_read_segments_obj_id
Add invalid testing of bt_mcc_read_segments_obj_id.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen
caa88c31f4 tests: Bluetooth: MCC: Add invalid testing of bt_mcc_read_seeking_speed
Add invalid testing of bt_mcc_read_seeking_speed.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen
3d6fcd9c80 tests: Bluetooth: MCC: Add invalid testing of bt_mcc_set_playback_speed
Add invalid testing of bt_mcc_set_playback_speed.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen
a345c951ef tests: Bluetooth: MCC: Add invalid testing of bt_mcc_read_playback_speed
Add invalid testing of bt_mcc_read_playback_speed.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen
4bdf672619 tests: Bluetooth: MCC: Add invalid testing of bt_mcc_set_track_position
Add invalid testing of bt_mcc_set_track_position.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen
1030d5eb3e tests: Bluetooth: MCC: Add invalid testing of bt_mcc_read_track_position
Add invalid testing of bt_mcc_read_track_position.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen
a14ebf55e3 tests: Bluetooth: MCC: Add invalid testing of bt_mcc_read_track_duration
Add invalid testing of bt_mcc_read_track_duration.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen
df9a34d1bb tests: Bluetooth: MCC: Add invalid testing of bt_mcc_read_track_title
Add invalid testing of bt_mcc_read_track_title.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen
7bc5ebe21a tests: Bluetooth: MCC: Add invalid testing of bt_mcc_read_icon_url
Add invalid testing of bt_mcc_read_icon_url.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen
62f5a5d948 tests: Bluetooth: MCC: Add invalid testing of bt_mcc_otc_read_icon_object
Add invalid testing of bt_mcc_otc_read_icon_object.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen
f30b46fc7b tests: Bluetooth: MCC: Add invalid testing of test_read_icon_obj_id
Add invalid testing of test_read_icon_obj_id.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen
25b2e99213 tests: Bluetooth: MCC: Add invalid testing of bt_mcc_read_player_name
Add invalid testing of bt_mcc_read_player_name.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen
6426a02c37 tests: Bluetooth: MCC: Add invalid testing of bt_mcc_discover_mcs
Add invalid testing of bt_mcc_discover_mcs.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00