Add PineTime devkit target

This commit is contained in:
Tobias Schramm 2021-02-04 22:53:06 +01:00 committed by Patrick Rathje
parent 45de4666c8
commit 42b2001380
2 changed files with 27 additions and 0 deletions

View File

@ -28,6 +28,29 @@ lib_deps =
lib_ignore =
mbedtls
[env:pinetime_dk]
platform = nordicnrf52
board = pinetime_devkit0
framework = zephyr
monitor_speed = 115200
test_ignore = test_desktop
build_flags =
-Iinclude/tls_config
# For testing: -DUNITY_EXCLUDE_SETJMP_H=1
-DEN_INCLUDE_ZEPHYR_DEPS=1
-DEN_INIT_MBEDTLS_ENTROPY=0
-DCOVID_MEASURE_PERFORMANCE=0 # Used to measure device performance
-DMAX_CONTACTS=10
-DMAX_PERIOD_CONTACTS=10
-DNO_DEPRECATED_BLE_OPTIONS=1
lib_deps =
prathje/exposure-notification @ ^0.1
lib_ignore =
mbedtls
platform_packages =
framework-zephyr @ file://C:\Users\Tobias\Documents\zephyr-v2.5.0-rc2
framework-zephyr-hal-nordic @ file://C:\Users\Tobias\Documents\zephyr-hal-nordic-v2.5.0-rc2
[env:desktop]
platform = native
test_ignore = test_embedded

View File

@ -331,7 +331,11 @@ K_TIMER_DEFINE(my_timer, my_timer_handler, NULL);
static const struct bt_le_scan_param scan_param = {
.type = BT_HCI_LE_SCAN_PASSIVE,
#if !defined(NO_DEPRECATED_BLE_OPTIONS)
.filter_dup = BT_HCI_LE_SCAN_FILTER_DUP_DISABLE,
#else
.options = BT_LE_SCAN_OPT_FILTER_DUPLICATE,
#endif
.interval = 0x0010, //Scan Interval (N * 0.625 ms), TODO: set to correct interval
.window = 0x0010, //Scan Window (N * 0.625 ms), TODO: set to correct interval
};