You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ry...@apache.org on 2020/01/27 14:30:53 UTC
[mynewt-documentation] branch master updated: Update ble_bare_bones
tutorial
This is an automated email from the ASF dual-hosted git repository.
rymek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-documentation.git
The following commit(s) were added to refs/heads/master by this push:
new 50339c1 Update ble_bare_bones tutorial
new ed1b623 Merge pull request #83 from rymanluk/fix_ble_tutorial
50339c1 is described below
commit 50339c17ef6d1f4d86b41e08d2e6d0ec1c847381
Author: Ćukasz Rymanowski <lu...@codecoup.pl>
AuthorDate: Mon Jan 27 14:52:34 2020 +0100
Update ble_bare_bones tutorial
---
docs/tutorials/ble/ble_bare_bones.rst | 28 +++++++++++++++++-----------
1 file changed, 17 insertions(+), 11 deletions(-)
diff --git a/docs/tutorials/ble/ble_bare_bones.rst b/docs/tutorials/ble/ble_bare_bones.rst
index 5e4688e..a54e677 100644
--- a/docs/tutorials/ble/ble_bare_bones.rst
+++ b/docs/tutorials/ble/ble_bare_bones.rst
@@ -125,10 +125,10 @@ profiles: ``debug`` and ``optimized``.
~/dev/my_proj1$ newt target set ble_tgt \
app=apps/ble_app \
- bsp=@apache-mynewt-core/hw/bsp/nrf52dk \
+ bsp=@apache-mynewt-core/hw/bsp/nordic_pca10040 \
build_profile=optimized
Target targets/ble_tgt successfully set target.app to apps/ble_app
- Target targets/ble_tgt successfully set target.bsp to @apache-mynewt-core/hw/bsp/nrf52dk
+ Target targets/ble_tgt successfully set target.bsp to @apache-mynewt-core/hw/bsp/nordic_pca10040
Target targets/ble_tgt successfully set target.build_profile to optimized
Enter BLE
@@ -136,25 +136,31 @@ Enter BLE
Since our application will support BLE functionality, we need to give it
access to a BLE stack. We do this by adding the necessary NimBLE
-packages to the app's dependency list. To enable a combined
-host-controller in the app, add dependencies for the NimBLE controller,
-host, and in-RAM transport to ``apps/ble_app/pkg.yml``:
+packages to the app's dependency list in ``apps/ble_app/pkg.yml``:
.. code-block:: console
- :emphasize-lines: 6,7,8
+ :emphasize-lines: 5,6,7
pkg.deps:
- "@apache-mynewt-core/kernel/os"
- "@apache-mynewt-core/sys/console/full"
- "@apache-mynewt-core/sys/log/full"
- "@apache-mynewt-core/sys/stats/full"
- - "@apache-mynewt-core/net/nimble/controller"
- - "@apache-mynewt-core/net/nimble/host"
- - "@apache-mynewt-core/net/nimble/host/store/config"
- - "@apache-mynewt-core/net/nimble/transport/ram"``
+ - "@apache-mynewt-nimble/nimble/host"
+ - "@apache-mynewt-nimble/nimble/host/store/config"
+ - "@apache-mynewt-nimble/nimble/transport"
+
+To enable a combined host-controller in the app set correct transport which will include
+NimBLE controller into build. For this update ``apps/ble_app/syscfg.yml``
+
+.. code-block:: console
+
+ syscfg.vals:
+ BLE_HCI_TRANSPORT: builtin
+
**Important note:** The controller package affects system configuration,
-see :doc:`this page <../../../ble_setup/ble_lp_clock/>` for
+see :doc:`this page <../../../ble_setup/ble_setup_intro/>` for
details.
Build the target