Samples: Bluetooth: HF: Move handsfree and handsfree_ag to './classic'
Move `handsfree` and `handsfree_ag` to sub-folder './classic'. Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
This commit is contained in:
parent
b69fa39904
commit
14eba9d2d9
18 changed files with 14 additions and 3 deletions
|
@ -66,7 +66,7 @@ Below are the supported shields to be used with ``--shield <option>`` when you i
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
.. zephyr-app-commands::
|
.. zephyr-app-commands::
|
||||||
:zephyr-app: samples/bluetooth/handsfree
|
:zephyr-app: samples/bluetooth/classic/handsfree
|
||||||
:board: mimxrt1060_evk@C//qspi
|
:board: mimxrt1060_evk@C//qspi
|
||||||
:shield: nxp_m2_1xk_wifi_bt
|
:shield: nxp_m2_1xk_wifi_bt
|
||||||
:goals: build
|
:goals: build
|
||||||
|
|
|
@ -230,6 +230,8 @@ REDIRECTS = [
|
||||||
('samples/bluetooth/broadcast_audio_sink/README', 'samples/bluetooth/bap_broadcast_sink/README'),
|
('samples/bluetooth/broadcast_audio_sink/README', 'samples/bluetooth/bap_broadcast_sink/README'),
|
||||||
('samples/bluetooth/broadcast_audio_source/README', 'samples/bluetooth/bap_broadcast_source/README'),
|
('samples/bluetooth/broadcast_audio_source/README', 'samples/bluetooth/bap_broadcast_source/README'),
|
||||||
('samples/bluetooth/central_iso/README', 'samples/bluetooth/iso_central/README'),
|
('samples/bluetooth/central_iso/README', 'samples/bluetooth/iso_central/README'),
|
||||||
|
('samples/bluetooth/handsfree/README', 'samples/bluetooth/classic/handsfree/README'),
|
||||||
|
('samples/bluetooth/handsfree_ag/README', 'samples/bluetooth/classic/handsfree_ag/README'),
|
||||||
('samples/bluetooth/peripheral_iso/README', 'samples/bluetooth/iso_peripheral/README'),
|
('samples/bluetooth/peripheral_iso/README', 'samples/bluetooth/iso_peripheral/README'),
|
||||||
('samples/bluetooth/public_broadcast_sink/README', 'samples/bluetooth/pbp_public_broadcast_sink/README'),
|
('samples/bluetooth/public_broadcast_sink/README', 'samples/bluetooth/pbp_public_broadcast_sink/README'),
|
||||||
('samples/bluetooth/public_broadcast_source/README', 'samples/bluetooth/pbp_public_broadcast_source/README'),
|
('samples/bluetooth/public_broadcast_source/README', 'samples/bluetooth/pbp_public_broadcast_source/README'),
|
||||||
|
|
|
@ -18,7 +18,7 @@ Requirements
|
||||||
Building and Running
|
Building and Running
|
||||||
********************
|
********************
|
||||||
|
|
||||||
This sample can be found under :zephyr_file:`samples/bluetooth/handsfree` in
|
This sample can be found under :zephyr_file:`samples/bluetooth/classic/handsfree` in
|
||||||
the Zephyr tree.
|
the Zephyr tree.
|
||||||
|
|
||||||
See :zephyr:code-sample-category:`bluetooth` samples for details.
|
See :zephyr:code-sample-category:`bluetooth` samples for details.
|
|
@ -18,7 +18,7 @@ Requirements
|
||||||
Building and Running
|
Building and Running
|
||||||
********************
|
********************
|
||||||
|
|
||||||
This sample can be found under :zephyr_file:`samples/bluetooth/handsfree_ag` in
|
This sample can be found under :zephyr_file:`samples/bluetooth/classic/handsfree_ag` in
|
||||||
the Zephyr tree.
|
the Zephyr tree.
|
||||||
|
|
||||||
See :zephyr:code-sample-category:`bluetooth` samples for details.
|
See :zephyr:code-sample-category:`bluetooth` samples for details.
|
|
@ -257,6 +257,9 @@ static void discovery_timeout_cb(const struct bt_br_discovery_result *results, s
|
||||||
temp[eir[0] - 1] = '\0'; /* Set end flag */
|
temp[eir[0] - 1] = '\0'; /* Set end flag */
|
||||||
printk(", name %s", temp);
|
printk(", name %s", temp);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
/* Skip the EIR */
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
len = len - eir[0] - 1;
|
len = len - eir[0] - 1;
|
||||||
eir = eir + eir[0] + 1;
|
eir = eir + eir[0] + 1;
|
6
samples/bluetooth/classic/index.rst
Normal file
6
samples/bluetooth/classic/index.rst
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
.. zephyr:code-sample-category:: bluetooth_classic
|
||||||
|
:name: Bluetooth Classic
|
||||||
|
:show-listing:
|
||||||
|
:glob: **/*
|
||||||
|
|
||||||
|
These samples demonstrate the use of Bluetooth Classic in Zephyr.
|
Loading…
Add table
Add a link
Reference in a new issue