You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/07/09 23:38:55 UTC

incubator-mynewt-core git commit: bletiny - Disable some BLE features by default.

Repository: incubator-mynewt-core
Updated Branches:
  refs/heads/develop 28e2a8b4e -> f258b0de4


bletiny - Disable some BLE features by default.

This is done to reduce the code size so that bletiny can fit on the
nRF51.  The default settings are now:

    -DLOG_LEVEL=1
    -DNIMBLE_OPT_SM=0
    -DNIMBLE_OPT_EDDYSTONE=0

The target package can override these settings if needed.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/f258b0de
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/f258b0de
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/f258b0de

Branch: refs/heads/develop
Commit: f258b0de426f42b83b6db487da6febc5ede6d43c
Parents: 28e2a8b
Author: Christopher Collins <cc...@apache.org>
Authored: Sat Jul 9 16:36:20 2016 -0700
Committer: Christopher Collins <cc...@apache.org>
Committed: Sat Jul 9 16:36:20 2016 -0700

----------------------------------------------------------------------
 apps/bletiny/pkg.yml | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/f258b0de/apps/bletiny/pkg.yml
----------------------------------------------------------------------
diff --git a/apps/bletiny/pkg.yml b/apps/bletiny/pkg.yml
index 361840b..3b7ca3d 100644
--- a/apps/bletiny/pkg.yml
+++ b/apps/bletiny/pkg.yml
@@ -31,3 +31,13 @@ pkg.deps:
     - libs/shell
 
 pkg.cflags:
+    ### Disable some features to make bletiny small enough to fit on the nRF51.
+    ### These features can be re-enabled in the target definition.
+    # Set log level to info (disable debug logging).
+    - "-DLOG_LEVEL=1"
+
+    # Disable security manager (pairing and bonding).
+    - "-DNIMBLE_OPT_SM=0"
+
+    # Disable eddystone beacons.
+    - "-DNIMBLE_OPT_EDDYSTONE=0"