Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Host privacy implementation #8

Closed
Show file tree
Hide file tree
Changes from 151 commits
Commits
Show all changes
152 commits
Select commit Hold shift + click to select a range
0944d0e
Update CYSBSYSKIT_01 bsp.
dustin-crossman Aug 10, 2020
6ba8885
Update COMPONENT_SCL.
dustin-crossman Aug 10, 2020
5228888
Add bootloader info to CYSBSYSKIT_01 targets.json
dustin-crossman Aug 10, 2020
79c7c3d
Add back sectors definition to CYSBSYSKIT_01 target.
dustin-crossman Aug 13, 2020
16ac412
Add NUCLEO_G031K8 target configuration
AGlass0fMilk May 22, 2020
e3d26ed
delete LED2-4 and buttons
pilotak Aug 13, 2020
25ea7be
add NUCLEO_G031K8 target
pilotak Jul 31, 2020
ab6fd6e
add D13 pin
pilotak Aug 1, 2020
8165bca
STM32G0 review and test
jeromecoutant Aug 10, 2020
c569dcc
Removed const from register declaration
AGlass0fMilk Aug 13, 2020
470ef49
Revert "Removed const from register declaration"
AGlass0fMilk Aug 14, 2020
78a3785
USBPhyHw: remove mbed.h inclusion
0xc0170 Aug 18, 2020
8078e20
platform: remove platform/ prefix for source
0xc0170 Aug 18, 2020
fbeae96
Add sectors info for CYSBSYSKIT to arm_pack_manager/index.json.
dustin-crossman Aug 18, 2020
a6ce2c5
platform: move internal headers to internal/
0xc0170 Aug 20, 2020
2c18e93
Update platform/source/mbed_os_timer.cpp
0xc0170 Aug 21, 2020
a34dfea
kinetis: fix headers for usbphy
0xc0170 Aug 21, 2020
fcb81d3
fixed warnings: comparison of integer expressions of different signed…
talorion Aug 21, 2020
f90d062
fixed warnings: removed unused variables
talorion Aug 21, 2020
d11ce60
fixed warnings: printf format missmatch
talorion Aug 21, 2020
8d1553c
fixed warnings: suggest parentheses around '&&' within '||'
talorion Aug 21, 2020
accadee
fixed warnings: unused variable
talorion Aug 21, 2020
ca74659
fixed warnings: comparison of integer expressions of different signed…
talorion Aug 21, 2020
167241a
Limit NUCLEO_G031K8 to bare-metal builds due to memory constraints
AGlass0fMilk Aug 24, 2020
30e0ff6
fixed warnings: deprecated call of events::EventQueue::call_in(int. F)
talorion Aug 22, 2020
c7d520e
fixed warnings: deprecated call of bool rtos::Semaphore::try_acquire_…
talorion Aug 22, 2020
2a6f006
fixed warnings: comparison of integer expressions of different signed…
talorion Aug 22, 2020
9af18af
fixed warnings: comparison of integer expressions of different signed…
talorion Aug 22, 2020
a721767
fixed warnings: comparison of integer expressions of different signed…
talorion Aug 22, 2020
f58633c
fixed warnings: deprecated call of Timer::read_ms()
talorion Aug 22, 2020
e3080a6
fixed warnings: static method defined but not used
talorion Aug 22, 2020
fa0ab3e
resolved astyle - coding format.
talorion Aug 22, 2020
d30ba6b
Fix malloc internal overhead size calculation for newlib and newlib-nano
rajkan01 Aug 24, 2020
36764b9
Merge pull request #13456 from ARMmbed/dev_usb_remove_mbedh
adbridge Aug 25, 2020
5b3eb52
Fix indentation within G031K8 definition
AGlass0fMilk Aug 25, 2020
993ed3b
Refactor hal directory
rajkan01 Aug 25, 2020
159410b
Move greentea tests closure to library
rajkan01 Aug 25, 2020
b3c1922
Merge pull request #13459 from 0xc0170/fix_platform_component
adbridge Aug 25, 2020
fafa0c4
Update UNITTESTS header reference
rajkan01 Aug 25, 2020
3387c86
Fix SSID bug on Cypress Targets
balajicyp Aug 26, 2020
555c7db
Merge pull request #13416 from dustin-crossman/pr/cysbsyskit_update_6…
0xc0170 Aug 26, 2020
afcf91f
Merge pull request #13006 from AGlass0fMilk/add-nucleo-g031k8
0xc0170 Aug 26, 2020
bb87fa9
Add WiSun network size configs in JSON
fredlee12001 Jun 17, 2020
68cf724
Updating mbed-mesh-api.
debdeep-arm Aug 18, 2020
c017215
Resolving comments
debdeep-arm Aug 18, 2020
0258c89
Typo fixed.
debdeep-arm Aug 18, 2020
f789de3
Update connectivity/drivers/cellular/QUECTEL/BC95/QUECTEL_BC95_Cellul…
talorion Aug 26, 2020
f8d90dd
suggested change by Hugues Kamba
talorion Aug 26, 2020
73116b7
suggested change by Hugues Kamba
talorion Aug 26, 2020
f901436
resolved astyle - coding format.
talorion Aug 26, 2020
8a3425e
Update connectivity/drivers/cellular/TELIT/ME310/TELIT_ME310_Cellular…
talorion Aug 27, 2020
0e032ea
Update connectivity/libraries/ppp/source/ppp_service.cpp
talorion Aug 27, 2020
4670c7f
fixed compile errors
talorion Aug 27, 2020
ff76c01
KVSTORE tests: move directories to make shorter test name
jeromecoutant Aug 24, 2020
ccece2f
Move USB host tests
jeromecoutant Aug 25, 2020
f9832cb
USB_DEVICE MSD test skipped when RAM is limited
jeromecoutant Aug 25, 2020
124fbd4
Update connectivity/drivers/cellular/TELIT/ME310/TELIT_ME310_Cellular…
talorion Aug 27, 2020
1e5cdaf
Targets: Add default "supported_form_factors" for all targets
hugueskamba Aug 27, 2020
99adbfa
fixed compile errors
talorion Aug 27, 2020
65fa697
Update connectivity/drivers/cellular/TELIT/ME310/TELIT_ME310_Cellular…
talorion Aug 27, 2020
6488381
made sslctxID constexpr
talorion Aug 27, 2020
2b4268a
Update connectivity/drivers/cellular/TELIT/ME310/TELIT_ME310_Cellular…
talorion Aug 27, 2020
6bf4dda
Update connectivity/libraries/ppp/source/ppp_service.cpp
talorion Aug 27, 2020
c4b93fe
Update connectivity/drivers/802.15.4_RF/atmel-rf-driver/source/Nanost…
talorion Aug 27, 2020
297300e
Merge pull request #13502 from hugueskamba/hk_add_default_form_factor
evedon Aug 28, 2020
a03f5ff
Adding a new target
andreagilardoni Aug 28, 2020
0c0692a
fixing the issues
andreagilardoni Aug 28, 2020
c62fc55
renaming the mcu to stm32l071xx
andreagilardoni Aug 28, 2020
23a3ea0
fixing the remaining parts after the rename
andreagilardoni Aug 28, 2020
5eb7285
adr: Recommend CMSIS component source structure
hugueskamba Aug 24, 2020
5535eee
CMSIS: Update upstream importer to import to new directory structure
hugueskamba Aug 24, 2020
31ff368
Merge pull request #13493 from balajicyp/topic/cypress_target_ssid_fix
0xc0170 Aug 31, 2020
fb3d1aa
Merge pull request #13497 from artokin/sync_mbed_mesh_api_update_master
0xc0170 Aug 31, 2020
6f024d5
Merge pull request #13494 from artokin/upstream_mesh_network_size_api…
0xc0170 Aug 31, 2020
1996552
STM32 readme update
jeromecoutant Aug 31, 2020
15ca58b
fixing small issues
andreagilardoni Aug 31, 2020
53008d9
STM32 USB: use SNG_BUF
jeromecoutant Aug 27, 2020
642d1ec
Merge pull request #13514 from jeromecoutant/PR_STM32WB_USB_SNG_BUF
0xc0170 Aug 31, 2020
864308e
add option for a custom cert in connectivity-netsocket-tests-tests-ne…
talorion Sep 1, 2020
4ef38f9
Merge pull request #13513 from jeromecoutant/PR_README
0xc0170 Sep 1, 2020
3c39eeb
fixing SPDX identifiers in all files
andreagilardoni Sep 1, 2020
f3c9132
Incorporated the review comments
rajkan01 Aug 24, 2020
834e530
CMSIS: Restructure ported CMSIS_5
hugueskamba Aug 28, 2020
ac9c4b7
STM32 USB connect procedure update
jeromecoutant Sep 1, 2020
02c79e8
STM32H7 ADC: No MultiMode configuration needed for ADC2
jeromecoutant Sep 1, 2020
bf1ba52
device_management.py supports application access keys
norbert-david Sep 2, 2020
90ca583
Merge pull request #13464 from hugueskamba/hk_cmsis_restructure
0xc0170 Sep 2, 2020
29f54fe
Merge pull request #13509 from alcheagle/new_target_STM32L071CXCTX
0xc0170 Sep 2, 2020
9073a48
Merge pull request #13489 from rajkan01/hal_directory_restructuring
0xc0170 Sep 2, 2020
a88438c
Move mbed-trace into platform
LDong-Arm Aug 13, 2020
af1950f
Add include/ path for mbed-trace
LDong-Arm Aug 13, 2020
9b1e0a3
Move mbed-client-randlib -> platform/randlib
LDong-Arm Aug 13, 2020
d6a2269
Restructure platform/randlib
LDong-Arm Aug 13, 2020
71eecfc
.codecheckignore: ignore imported libraries randlib and mbed-trace
LDong-Arm Aug 21, 2020
1651aa9
Set M252 Flash internal size as 8KB for kv store
cyliangtw Sep 2, 2020
abdee92
Update test examples.json aws config to refer renamed mbed-os-example…
rajkan01 Sep 2, 2020
183ca77
drivers/SFDP should compile without mbed-trace
LDong-Arm Sep 2, 2020
ce63a17
Nuvoton: Fix degrading QSPI to SPI
ccli8 Sep 3, 2020
04e4075
Merge pull request #13533 from rajkan01/update_aws_test_json
0xc0170 Sep 3, 2020
4a68b8a
Merge pull request #13486 from rajkan01/fix_malloc_overhead_calculation
0xc0170 Sep 3, 2020
2eb2fe4
Merge pull request #13522 from jeromecoutant/PR_USB_PULLUP
0xc0170 Sep 3, 2020
895488f
Merge pull request #13523 from jeromecoutant/PR_H7_ADC2
0xc0170 Sep 3, 2020
f4536be
Merge pull request #13524 from norbert-david/patch-1
0xc0170 Sep 3, 2020
a7b2ad8
TEST: remove MUSCA_B1 from attestation example test
Sep 3, 2020
54f0f56
Merge pull request #13531 from OpenNuvoton/nvt_m252_kv
0xc0170 Sep 3, 2020
47a28da
Fix nuc472 SD buffer alignment
cyliangtw Sep 4, 2020
feb1023
test_program_read_small_data_sizes: get erase size specific to the se…
LDong-Arm Sep 4, 2020
3b93350
general_block_device test: allocate buffers enough for the largest se…
LDong-Arm Sep 4, 2020
8770780
Rename CY8CKIT_064B0S2_4343W to CY8CKIT064B0S2_4343W, which fits in 2…
romanjoe Aug 31, 2020
41f2ee5
Merge pull request #13430 from LDong-Arm/refactor_frameworks
0xc0170 Sep 7, 2020
3de2c9b
Merge pull request #13544 from jamesbeyond/exp_atest
0xc0170 Sep 7, 2020
1778c6d
Merge pull request #13501 from jeromecoutant/PR_USB_TEST
0xc0170 Sep 7, 2020
b2ac609
Merge pull request #13476 from talorion/bugfix/fix-warnings
0xc0170 Sep 7, 2020
1f735a6
Merge pull request #13536 from OpenNuvoton/nuvoton_fix_downgrade_qspi
0xc0170 Sep 7, 2020
8ee029c
Remove duplicate and move usb host tests script closure to the library
rajkan01 Sep 3, 2020
9a4e8a5
Squashed 'connectivity/nanostack/sal-stack-nanostack/' changes from 4…
Sep 7, 2020
b25f05b
Merge commit '9a4e8a5964c54f2a983ffd4c13755176d4f9df52'
Sep 7, 2020
9767ae8
Merge pull request #13552 from LDong-Arm/general_block_device_test_fix
0xc0170 Sep 7, 2020
14ac406
STM32Gx: LSI clock selection when LSE is not available
Sep 7, 2020
7612379
Merge pull request #13562 from artokin/nanostack_v12_5_0_for_master
0xc0170 Sep 7, 2020
7f60090
Merge pull request #13546 from rajkan01/remove_host_tests_script
0xc0170 Sep 7, 2020
b65afe0
STM32H7 ADC: clock selection lost after deepsleep
jeromecoutant Sep 8, 2020
23c13d7
Added RADIUS configuration options to Wi-SUN
Sep 8, 2020
6da9237
Fix a typo in PeripheralPins.c for EFM32GG11
amq Sep 8, 2020
2fe10dd
Merge pull request #13516 from romanjoe/pr/064b0s2_rename
0xc0170 Sep 9, 2020
bb618d0
Merge pull request #13484 from jeromecoutant/PR_KVSTORE_TESTS
0xc0170 Sep 9, 2020
0190014
Merge pull request #13547 from OpenNuvoton/nvt_nuc472_sd
0xc0170 Sep 9, 2020
511c897
Merge pull request #13572 from jeromecoutant/PR_H7_ADC2
0xc0170 Sep 9, 2020
ae8d5a4
Merge pull request #13574 from amq/patch-4
0xc0170 Sep 9, 2020
ef43cb5
Merge pull request #13518 from talorion/feature-custom-cert-tls-tests
0xc0170 Sep 9, 2020
6fb5e60
Merge pull request #13573 from mikaleppanen/mesh_radius_conf
0xc0170 Sep 9, 2020
c65ad59
STM32L4S5xI introduction
jeromecoutant Sep 3, 2020
d804167
STM32L4S5xI: B_L4S5I_IOT01A new target
jeromecoutant Sep 3, 2020
7dfe702
B_L4S5I_IOT01A: HW crypto support
jeromecoutant Sep 3, 2020
423bea5
B_L4S5I_IOT01A: BLE support
jeromecoutant Sep 3, 2020
c99ff74
Merge pull request #13475 from pan-/ble-remove-user-facing-abstraction
0xc0170 Sep 9, 2020
1f6fe47
Merge pull request #13564 from More-Wrong/LSI-for-STM32Gx
0xc0170 Sep 9, 2020
3b5ab54
Merge pull request #13542 from jeromecoutant/PR_DISCO_L4S
0xc0170 Sep 9, 2020
b8ae638
BLE: Update ble::Duration to support default values
pan- Sep 3, 2020
38156ec
ble: Add privacy mode to the pal
pan- Sep 3, 2020
483612a
BLE: Add resolvable_address_timeout_t datatype.
pan- Sep 4, 2020
a3a6c4d
BLE: Introduce PalPrivateAddressController
pan- Sep 4, 2020
5fb2b67
BLE: Add cordio implementation of PalPrivateAddressController
pan- Sep 4, 2020
c355282
BLE: Add PrivateAddressController module.
pan- Sep 4, 2020
34d3974
BLE: Update security manager to use the PrivateAddressController
pan- Sep 4, 2020
8a3d016
BLE: Pal event queue pop before execution.
pan- Sep 4, 2020
503c4b2
BLE: Add gap handlers to be informed when advertising as started or b…
pan- Sep 7, 2020
9bc0067
BLE: Bind address controller with Gap
pan- Sep 7, 2020
8c8c576
BLE: Remove address resolution from GAP pal
pan- Sep 7, 2020
6e19633
BLE: Add initiating flag into gap to track if the local device tries …
pan- Sep 7, 2020
9e7385a
BLE: Add resolvable and non resolvable private address rotation with …
pan- Sep 7, 2020
f851f0e
BLE: rename address resolution handler.
pan- Sep 9, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 5 additions & 3 deletions .codecheckignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,20 @@
^storage/filesystem/littlefsv2/littlefs/
^features/unsupported/
^hal/storage_abstraction
^hal/tests/TESTS/mbed_hal/trng/pithy
^hal/tests/TESTS/mbed_hal/trng/pithy
^platform/cxxsupport
^platform/FEATURE_EXPERIMENTAL_API/FEATURE_PSA/TARGET_MBED_PSA_SRV
^platform/FEATURE_EXPERIMENTAL_API/FEATURE_PSA/TARGET_TFM
^platform/mbed-trace
^platform/randlib
^platform/tests/UNITTESTS
^events/tests/UNITTESTS
^rtos/source/TARGET_CORTEX/rtx4
^rtos/source/TARGET_CORTEX/rtx5
^targets
^TESTS/mbed_hal/trng/pithy
^TESTS/mbed_hal/trng/pithy
^tools
^UNITTESTS
^storage/blockdevice/tests/UNITTESTS
^storage/kvstore/tests/UNITTESTS
^drivers/tests/UNITTESTS
^drivers/tests/UNITTESTS
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ matrix:
# Check that example compiles without rtos
- sed -n '/``` cpp/,/```/{/```$/Q;/```/d;p;}' ${EVENTS}/README.md > main.cpp
- |
rm -r rtos/source/TARGET_CORTEX drivers/source/usb connectivity/cellular connectivity/drivers/cellular \
rm -r cmsis/CMSIS_5/CMSIS/RTOS2 cmsis/device/rtos drivers/source/usb connectivity/cellular connectivity/drivers/cellular \
connectivity/libraries/ppp connectivity/netsocket connectivity/nanostack connectivity/lwipstack features/frameworks/greentea-client \
features/frameworks/utest features/frameworks/unity components BUILD
- python tools/make.py -t GCC_ARM -m NUCLEO_F103RB --source=. --build=BUILD/NUCLEO_F103RB/GCC_ARM -j0
Expand Down
74 changes: 0 additions & 74 deletions TESTS/host_tests/crash_reporting.py

This file was deleted.

32 changes: 0 additions & 32 deletions TESTS/host_tests/device_echo.py

This file was deleted.

38 changes: 0 additions & 38 deletions TESTS/host_tests/serial_comms.py

This file was deleted.

3 changes: 2 additions & 1 deletion UNITTESTS/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ set(unittest-includes-base
"${PROJECT_SOURCE_DIR}/../features"
"${PROJECT_SOURCE_DIR}/../platform/include"
"${PROJECT_SOURCE_DIR}/../platform/include/platform"
"${PROJECT_SOURCE_DIR}/../platform/mbed-trace/include"
"${PROJECT_SOURCE_DIR}/../storage/filesystem/littlefs/include"
"${PROJECT_SOURCE_DIR}/../storage/filesystem/fat/include"
"${PROJECT_SOURCE_DIR}/../storage/blockdevice/include"
Expand All @@ -126,12 +127,12 @@ set(unittest-includes-base
"${PROJECT_SOURCE_DIR}/../drivers/include/drivers"
"${PROJECT_SOURCE_DIR}/../drivers/include/drivers/internal"
"${PROJECT_SOURCE_DIR}/../hal"
"${PROJECT_SOURCE_DIR}/../hal/include"
"${PROJECT_SOURCE_DIR}/../events/include"
"${PROJECT_SOURCE_DIR}/../events/include/events/internal"
"${PROJECT_SOURCE_DIR}/../events/source"
"${PROJECT_SOURCE_DIR}/../rtos/include"
"${PROJECT_SOURCE_DIR}/../features/frameworks"
"${PROJECT_SOURCE_DIR}/../features/frameworks/mbed-trace"
"${PROJECT_SOURCE_DIR}/../connectivity/libraries/nanostack-libservice"
"${PROJECT_SOURCE_DIR}/../connectivity/libraries/nanostack-libservice/mbed-client-libservice"
"${PROJECT_SOURCE_DIR}/../connectivity/netsocket/include"
Expand Down
2 changes: 1 addition & 1 deletion UNITTESTS/empty_baseline/unittest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ set(unittest-includes ${unittest-includes}
..
../connectivity/mbedtls/include/mbedtls/
../connectivity/mbedtls/platform/inc/
../features/frameworks/mbed-trace/mbed-trace/
../platform/mbed-trace/include/mbed-trace/
)

set(unittest-test-sources
Expand Down
2 changes: 1 addition & 1 deletion UNITTESTS/stubs/us_ticker_stub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


#include "stdlib.h"
#include "us_ticker_api.h"
#include "hal/us_ticker_api.h"

const ticker_data_t *get_us_ticker_data(void)
{
Expand Down
2 changes: 1 addition & 1 deletion UNITTESTS/stubs/watchdog_api_stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "watchdog_api.h"
#include "hal/watchdog_api.h"

#if DEVICE_WATCHDOG

Expand Down
2 changes: 1 addition & 1 deletion UNITTESTS/target_h/PinNames.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ typedef enum {
#ifdef __cplusplus
}
#endif
#include "pinmap.h"
#include "hal/pinmap.h"

#endif
3 changes: 3 additions & 0 deletions cmsis/CMSIS_5/CMSIS/RTOS2/mbed_lib.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name": "cmsis-cmsis5-rtos2"
}
43 changes: 43 additions & 0 deletions cmsis/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@

# CMSIS Version 5

This directory contains a ported version of the upstream repository for [CMSIS_5](http://arm-software.github.io/CMSIS_5/General/html/index.html) as well as Mbed specific RTX configuration and RTOS boot source files.

The upstream source code is imported using the Python script located at [`tools/importer/importer.py`](../tools/importer/importer.py) when passed the [`tools/importer/cmsis_importer.json`](../tools/importer/cmsis_importer.json) configuration file.
For more information on the importer script please read [`tools/importer/README.md`](../tools/importer/README.md).

The directory is organised as follows:

```
+--cmsis
| +-- README.md # The present mardown file
| +-- device/
| +-- mbed_cmsis_conf.h # Process stack configuration
| +-- RTE/
| +-- include/
| +-- RTE_Components.h # Run-Time-Environment Component Configuration File
| +-- rtos/
| +-- mbed_lib.json # Mbed library configuration file
| +-- include/
| +-- mbed_boot.h # Declares the functions that run before main()
| +-- mbed_rtx_conf.h # Changes to RTX configuration
| +-- mbed_rtx_storage.h # Declares the primitives storage types for RTX
| +-- source/
| +-- mbed_boot.c # Implements some of the functions that run before main()
| +-- mbed_rtos_rtx.c # Implements some of the functions that run before main()
| +-- mbed_rtx_handlers.c # Implements RTX handlers
| +-- mbed_rtx_idle.cpp # Implements RTX idle loop
| +-- TOOLCHAIN_ARM_MICRO/
| +-- mbed_boot_arm_micro.c # Mbed entry point for the uARM toolchain
| +-- TOOLCHAIN_ARM_STD/
| +-- mbed_boot_arm_std.c # Mbed entry point for the ARM toolchain
| +-- TOOLCHAIN_GCC_ARM/
| +-- mbed_boot_gcc_arm.c # Mbed entry point for the GCC_ARM toolchain
| +-- TOOLCHAIN_IAR/
| +-- mbed_boot_iar.c # Mbed entry point for the IAR toolchain
| +-- CMSIS_5/ # Imported from the upstream repository as described in the importer script configuration file (cmsis_importer.json)
```

Two Mbed libraries live within this directory:
* `rtos` from `device/rtos`
* `cmsis-cmsis5-rtos2` from `CMSIS_5/CMSIS/RTOS2`
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "rtos/source/rtos_idle.h"
#include "rtos/Kernel.h"
#include "platform/mbed_power_mgmt.h"
#include "platform/source/mbed_os_timer.h"
#include "platform/internal/mbed_os_timer.h"
#include "TimerEvent.h"
#include "mbed_critical.h"
#include "mbed_assert.h"
Expand Down
16 changes: 10 additions & 6 deletions connectivity/FEATURE_BLE/include/ble/common/Duration.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ namespace ble {
* @tparam Min left-bound
* @tparam Max right-bound
*/
template<uint32_t Min, uint32_t Max>
template<uint32_t Min, uint32_t Max, uint32_t Default = Min>
struct Range {
static const uint32_t MIN = Min;
static const uint32_t MAX = Max;
static const uint32_t DEFAULT = Default;
};

/**
Expand Down Expand Up @@ -111,7 +112,7 @@ struct Duration {
*
* It is initialized with the minimum value acceptable.
*/
Duration() : duration(Range::MIN)
Duration() : duration(Range::DEFAULT)
{
}

Expand Down Expand Up @@ -598,11 +599,14 @@ bool operator>(Duration<Rep, Us, Range, F> lhs, Duration<Rep, Us, Range, F> rhs)

#if !defined(DOXYGEN_ONLY)

template<uint32_t Min, uint32_t Max>
const uint32_t Range<Min, Max>::MIN;
template<uint32_t Min, uint32_t Max, uint32_t Default>
const uint32_t Range<Min, Max, Default>::MIN;

template<uint32_t Min, uint32_t Max>
const uint32_t Range<Min, Max>::MAX;
template<uint32_t Min, uint32_t Max, uint32_t Default>
const uint32_t Range<Min, Max, Default>::MAX;

template<uint32_t Min, uint32_t Max, uint32_t Default>
const uint32_t Range<Min, Max, Default>::DEFAULT;

template<typename T, T V>
const T Value<T, V>::VALUE;
Expand Down
10 changes: 10 additions & 0 deletions connectivity/FEATURE_BLE/include/ble/gap/Types.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,16 @@ typedef Duration<uint16_t, 10000, Range<0x0A, 0x4000> > sync_timeout_t;
*/
typedef Duration<uint16_t, 1250, Range<0x06, 0xFFFF> > periodic_interval_t;

/**
* Resolvable address timeout.
*
* The duration is in seconds and ranges from 1 to 0xA1B8. The default value is
* 900 seconds.
*/
using resolvable_address_timeout_t = Duration<
uint16_t, second_t::TIME_BASE, Range<1, 0xA1B8, 0x0384>
>;

/**
* Number of connection events that can be skipped by the slave.
*
Expand Down
Loading