Browse Source

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>
pull/91013/merge
Lyle Zhu 2 months ago committed by Benjamin Cabé
parent
commit
14eba9d2d9
  1. 2
      boards/shields/nxp_m2_wifi_bt/doc/index.rst
  2. 2
      doc/_scripts/redirects.py
  3. 0
      samples/bluetooth/classic/handsfree/CMakeLists.txt
  4. 2
      samples/bluetooth/classic/handsfree/README.rst
  5. 0
      samples/bluetooth/classic/handsfree/boards/mimxrt1170_evk_mimxrt1176_cm7_B.conf
  6. 0
      samples/bluetooth/classic/handsfree/boards/mimxrt1170_evk_mimxrt1176_cm7_B.overlay
  7. 0
      samples/bluetooth/classic/handsfree/prj.conf
  8. 0
      samples/bluetooth/classic/handsfree/sample.yaml
  9. 0
      samples/bluetooth/classic/handsfree/src/main.c
  10. 0
      samples/bluetooth/classic/handsfree_ag/CMakeLists.txt
  11. 0
      samples/bluetooth/classic/handsfree_ag/Kconfig
  12. 2
      samples/bluetooth/classic/handsfree_ag/README.rst
  13. 0
      samples/bluetooth/classic/handsfree_ag/boards/mimxrt1170_evk_mimxrt1176_cm7_B.conf
  14. 0
      samples/bluetooth/classic/handsfree_ag/boards/mimxrt1170_evk_mimxrt1176_cm7_B.overlay
  15. 0
      samples/bluetooth/classic/handsfree_ag/prj.conf
  16. 0
      samples/bluetooth/classic/handsfree_ag/sample.yaml
  17. 3
      samples/bluetooth/classic/handsfree_ag/src/main.c
  18. 6
      samples/bluetooth/classic/index.rst

2
boards/shields/nxp_m2_wifi_bt/doc/index.rst

@ -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

2
doc/_scripts/redirects.py

@ -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'),

0
samples/bluetooth/handsfree/CMakeLists.txt → samples/bluetooth/classic/handsfree/CMakeLists.txt

2
samples/bluetooth/handsfree/README.rst → samples/bluetooth/classic/handsfree/README.rst

@ -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.

0
samples/bluetooth/handsfree/boards/mimxrt1170_evk_mimxrt1176_cm7_B.conf → samples/bluetooth/classic/handsfree/boards/mimxrt1170_evk_mimxrt1176_cm7_B.conf

0
samples/bluetooth/handsfree/boards/mimxrt1170_evk_mimxrt1176_cm7_B.overlay → samples/bluetooth/classic/handsfree/boards/mimxrt1170_evk_mimxrt1176_cm7_B.overlay

0
samples/bluetooth/handsfree/prj.conf → samples/bluetooth/classic/handsfree/prj.conf

0
samples/bluetooth/handsfree/sample.yaml → samples/bluetooth/classic/handsfree/sample.yaml

0
samples/bluetooth/handsfree/src/main.c → samples/bluetooth/classic/handsfree/src/main.c

0
samples/bluetooth/handsfree_ag/CMakeLists.txt → samples/bluetooth/classic/handsfree_ag/CMakeLists.txt

0
samples/bluetooth/handsfree_ag/Kconfig → samples/bluetooth/classic/handsfree_ag/Kconfig

2
samples/bluetooth/handsfree_ag/README.rst → samples/bluetooth/classic/handsfree_ag/README.rst

@ -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.

0
samples/bluetooth/handsfree_ag/boards/mimxrt1170_evk_mimxrt1176_cm7_B.conf → samples/bluetooth/classic/handsfree_ag/boards/mimxrt1170_evk_mimxrt1176_cm7_B.conf

0
samples/bluetooth/handsfree_ag/boards/mimxrt1170_evk_mimxrt1176_cm7_B.overlay → samples/bluetooth/classic/handsfree_ag/boards/mimxrt1170_evk_mimxrt1176_cm7_B.overlay

0
samples/bluetooth/handsfree_ag/prj.conf → samples/bluetooth/classic/handsfree_ag/prj.conf

0
samples/bluetooth/handsfree_ag/sample.yaml → samples/bluetooth/classic/handsfree_ag/sample.yaml

3
samples/bluetooth/handsfree_ag/src/main.c → samples/bluetooth/classic/handsfree_ag/src/main.c

@ -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

@ -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…
Cancel
Save