diff options
| author | Christoph Honal <christoph.honal@web.de> | 2022-03-21 14:05:49 +0100 |
|---|---|---|
| committer | JF <JF002@users.noreply.github.com> | 2022-07-07 11:20:56 +0200 |
| commit | 118adb96cf4503fdccd974090934d18c279cc403 (patch) | |
| tree | c8cc7fc8e7aade02be251febd5a46bbc4dc6e7c2 /src/CMakeLists.txt | |
| parent | 9b9286175322f99ae0265565ae9b0ae49efa2c26 (diff) | |
Nimble: Reduce BLE power usage
This configures Nimble to enable the HFCLOCK and other
Bluetooth peripherals only when needed, but 1500 us in advance.
This time is recommended by the Mynewt docs.
Diffstat (limited to 'src/CMakeLists.txt')
| -rw-r--r-- | src/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 9de1ca11..aa06b2b3 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -780,6 +780,7 @@ add_definitions(-DNRF52 -DNRF52832 -DNRF52832_XXAA -DNRF52_PAN_74 -DNRF52_PAN_64 add_definitions(-DFREERTOS) add_definitions(-D__STACK_SIZE=1024) add_definitions(-D__HEAP_SIZE=4096) +add_definitions(-DMYNEWT_VAL_BLE_LL_RFMGMT_ENABLE_TIME=1500) # Note: Only use this for debugging # Derive the low frequency clock from the main clock (SYNT) |
