mirror of
https://github.com/CovidBraceletPrj/CovidBracelet.git
synced 2025-04-18 07:57:36 +02:00
Add PineTime devkit target
This commit is contained in:
parent
45de4666c8
commit
42b2001380
@ -28,6 +28,29 @@ lib_deps =
|
|||||||
lib_ignore =
|
lib_ignore =
|
||||||
mbedtls
|
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]
|
[env:desktop]
|
||||||
platform = native
|
platform = native
|
||||||
test_ignore = test_embedded
|
test_ignore = test_embedded
|
||||||
|
@ -331,7 +331,11 @@ K_TIMER_DEFINE(my_timer, my_timer_handler, NULL);
|
|||||||
|
|
||||||
static const struct bt_le_scan_param scan_param = {
|
static const struct bt_le_scan_param scan_param = {
|
||||||
.type = BT_HCI_LE_SCAN_PASSIVE,
|
.type = BT_HCI_LE_SCAN_PASSIVE,
|
||||||
|
#if !defined(NO_DEPRECATED_BLE_OPTIONS)
|
||||||
.filter_dup = BT_HCI_LE_SCAN_FILTER_DUP_DISABLE,
|
.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
|
.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
|
.window = 0x0010, //Scan Window (N * 0.625 ms), TODO: set to correct interval
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user