Donatien Garnier
decd7d0167
Convert shci.h from (presumably) latin1 encoding to UTF-8
2021-06-02 12:12:34 +01:00
Paul Szczepanek
c51dc2f6cc
set to pending only after issuing command
2021-06-02 12:06:43 +01:00
Paul Szczepanek
b21ee6b0a0
add information about privacy refresh to config option
2021-06-02 12:06:12 +01:00
Paul Szczepanek
8ec7cfd820
start and stop adv sets in batches
2021-06-01 22:38:39 +01:00
Paul Szczepanek
0670470af6
add config for number of pending adv sets starting
2021-06-01 22:38:13 +01:00
Paul Szczepanek
8dedd43e7c
add status to start and stop events
2021-06-01 22:37:43 +01:00
Paul Szczepanek
e99741dd3d
change function names
2021-06-01 15:45:08 +01:00
Martin Kojtal
0738aabb87
Merge pull request #14710 from noonfom/non-low-power-devices
...
BLE: support non-low power devices
2021-06-01 11:26:21 +02:00
Martin Kojtal
da13755a9f
Merge pull request #14699 from jeromecoutant/PR_ASTYLE
...
STM32 astyle format
2021-06-01 10:02:34 +02:00
Martin Kojtal
bfedc39f7c
Merge pull request #14471 from arduino/whd_patch
...
COMPONENT_WHD: make reusable code available for other targets
2021-05-31 15:49:25 +02:00
Martin Kojtal
bc7fc2b2e7
Merge pull request #14708 from Patater/fix-test-function-return
...
test: Fix function does not return a value warnings
2021-05-31 12:20:00 +02:00
Martin Kojtal
a2d62f9597
Merge pull request #14652 from Patater/upgrade-mbedtls-2.25.0
...
tls: Upgrade to Mbed TLS v2.25.0
2021-05-31 11:36:26 +02:00
Abbas Bracken Ziad
8ee7fb8642
BLE: support non-low power devices
2021-05-27 10:11:05 +01:00
Jaeden Amero
8ce03867c2
test: at: Remove dead code
...
Remove two expressions from at_cellularcontexttest that do nothing. This
fixes the following two warnings.
connectivity/cellular/tests/UNITTESTS/framework/AT/at_cellularcontext/at_cellularcontexttest.cpp:61:67: warning: expression result unused [-Wunused-value] ATHandler_stub::int_valid_count_table[kRead_int_table_size]; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~^
connectivity/cellular/tests/UNITTESTS/framework/AT/at_cellularcontext/at_cellularcontexttest.cpp:64:66: warning: expression result unused [-Wunused-value] ATHandler_stub::read_string_table[kRead_string_table_size];
2021-05-27 09:38:18 +01:00
Jaeden Amero
7f7571657e
test: Fix function does not return a value warnings
...
Many test stub functions are meant to return a value, but weren't. Clang
would generate a warning for each instance where we weren't returning
anything in a function that was meant to return a value.
warning: non-void function does not return a value [-Wreturn-type]
For a specific example, my_radio::time_on_air() is supposed to return a
uint32_t, but wasn't returning anything. We'll return a zero instead of
relying on undefined behavior.
Without this, clang 11.0.1 was generating a virtual function
implementation with a `ud2` instruction to abort at run-time, causing
some execution of some unit tests to abort.
Running main() from gmock_main.cc
[==========] Running 10 tests from 1 test suite.
[----------] Global test environment set-up.
[----------] 10 tests from Test_LoRaPHYUS915
[ RUN ] Test_LoRaPHYUS915.constructor
[ OK ] Test_LoRaPHYUS915.constructor (0 ms)
[ RUN ] Test_LoRaPHYUS915.restore_default_channels
[ OK ] Test_LoRaPHYUS915.restore_default_channels (0 ms)
[ RUN ] Test_LoRaPHYUS915.rx_config
[ OK ] Test_LoRaPHYUS915.rx_config (0 ms)
[ RUN ] Test_LoRaPHYUS915.tx_config
Process 35669 stopped
* thread #1 , name = 'lorawan-loraphy-', stop reason = signal SIGILL: privileged instruction
frame #0 : 0x0000000000276f73 lorawan-loraphy-us915-unittest`my_radio::time_on_air(this=0x0000000800c2b048, modem=MODEM_LORA, pkt_len='\0') at Test_LoRaPHYUS915.cpp:90:5
87 };
88
89 virtual uint32_t time_on_air(radio_modems_t modem, uint8_t pkt_len)
-> 90 {
91 };
92
93 virtual bool perform_carrier_sense(radio_modems_t modem,
(lldb) disassemble --pc
lorawan-loraphy-us915-unittest`my_radio::time_on_air:
-> 0x276f73 <+67>: ud2
0x276f75: int3
0x276f76: int3
0x276f77: int3
(lldb)
2021-05-27 09:38:18 +01:00
Rajkumar Kanagaraj
50fc85dc44
CMake: Remove all unittest.cmake script from test suite
...
- Remove redundant cmake script as already added the CMake configuration file
- Remove redundant empty_baseline as it is no longer needed with the help of CMake configuration file
2021-05-26 07:09:14 -07:00
Anna Bridge
ef0b31ab53
Merge pull request #14629 from artokin/phy_mode_and_channel_plan_master
...
Mesh api: Added PHY mode, channel plan IDs and configuration functions
2021-05-25 14:04:32 +01:00
jeromecoutant
cfd86882d3
STM32H7 astyle
2021-05-25 14:45:52 +02:00
Anna Bridge
8b1cd98a8e
Merge pull request #14574 from noonfom/string-buffer-length
...
Fix string buffer length in UUID trace helper
2021-05-25 12:38:06 +01:00
jeromecoutant
645fed5393
STM32WB HCI driver: Add check for code size configuration
2021-05-25 12:06:55 +02:00
Yahya Tawil
ae31d20904
Merge branch 'master' into master
2021-05-24 20:04:41 +03:00
Anna Bridge
77927d0c7a
Merge pull request #14684 from AGlass0fMilk/fix-kvstore-security-db
...
Fix missing `as_entry` method in KVStoreSecurityDb
2021-05-24 13:22:31 +01:00
Anna Bridge
39922228d6
Merge pull request #14683 from jeromecoutant/PR_WBBARE
...
Baremetal tests: enable BLE tests with NUCLEO_WB55RG
2021-05-24 13:20:55 +01:00
Anna Bridge
ae62f9d02c
Merge pull request #14674 from anttiylitokola/master
...
Update mbed-coap to version v5.1.10
2021-05-24 13:18:53 +01:00
Anna Bridge
4e586a93d3
Merge pull request #14426 from ARMmbed/feature_unittest_refactor
...
CMake: Refactor UNITTESTS CMake
2021-05-24 13:04:22 +01:00
Yahya Tawil
6318e3a3b7
Solve the type error in one of the tracing msgs
...
Adapted from #14684
2021-05-22 11:49:49 +03:00
Yahya Tawil
997b523284
Add the missing definition for `as_entry`
2021-05-22 11:46:34 +03:00
Yahya Tawil
27e64a82b8
Add the missing mbed-storage libraries
...
Refer to #14660
2021-05-22 11:40:36 +03:00
Rajkumar Kanagaraj
6d4caad83d
CMake: Move CMAKE_CROSSCOMPILING check inside library CMake
2021-05-20 06:26:10 -07:00
George Beckstein
2578c5356b
Fix missing `as_entry` method in KVStoreSecurityDb
...
This commit introduces changes to fix a missing method, `as_entry`, and traces that were not updated properly to work with this new method.
Prior to this fix, it was not possible to use KVStoreSecurityDb as the build would fail since the `as_entry` method was not declared in the class header file.
This bug was introduced with commit 957486e0eb
in PR ARMmbed/mbed-os#14198
2021-05-19 16:38:13 -04:00
jeromecoutant
ba6d664ff2
Baremetal tests: enable BLE tests with NUCLEO_WB55RG
2021-05-19 17:52:48 +02:00
Bora Özgen
35465aee91
BG96: Add segmentation to TCP socket send
...
Unlike some other cellular modem drivers which use
segmentation, the BG96 driver did not support sending of large
TCP packets, i.e. maximum TCP packet size was restricted to
1400 bytes. This adds segmentation to the send function, so
larger packets can be sent using the TCP socket.
2021-05-19 12:20:52 +02:00
Paul Szczepanek
4767b7e1ac
fix missing observer ifdefs
2021-05-18 20:58:26 +01:00
Antti Yli-Tokola
18728957b5
Update mbed-coap to version v5.1.10
...
- Fix regression from previous release concerning 1024 byte blocksize operations.
- Do not store ACK's into duplicate list.
- Code size optimizations
2021-05-18 13:24:20 +03:00
Paul Szczepanek
910b7a6438
clear the pal gap queue on reset
2021-05-18 10:39:20 +01:00
Paul Szczepanek
30cd6071cf
remove stopping sets since controller resets them
2021-05-18 10:24:16 +01:00
Paul Szczepanek
ab123d3e22
advertising start queued up waiting for completion
2021-05-17 19:37:26 +01:00
Jaeden Amero
f275a83593
tls: Add fix for Mbed TLS configuration issue
...
Until we have a fix for https://github.com/ARMmbed/mbedtls/issues/4512 ,
we need to patch the fix during import time. Otherwise, we run into
linker errors when PSA attempts to use RSA key generation, which we've
excluded.
This patch is extracted from
https://github.com/ARMmbed/mbedtls/pull/4513
2021-05-14 10:51:04 +01:00
Abbas Bracken Ziad
0ec4a57a6c
Fix string buffer length in UUID trace helper
2021-05-13 11:56:23 +01:00
Jaeden Amero
9360e0fe82
tls: Upgrade to Mbed TLS v2.25.0
2021-05-12 15:49:36 +01:00
Martin Kojtal
541ae06545
Merge pull request #14619 from debdeep-arm/ws-stats-nbr-table-master
...
Add API to get Wi-SUN Neighbor Table
2021-05-12 16:28:33 +02:00
Martin Kojtal
0f907d7620
Merge pull request #13791 from Patater/default-random-seed-experimental
...
mbedtls: Don't attempt to use default_random_seed
2021-05-12 11:03:52 +02:00
Robert Walton
31926c81e0
mbedtls_stub: Add missing include
...
mbedtls_stub uses memset but doesn't add the <string.h> include. This
causes build failures with clang.
Add the include so we can build unit tests using clang.
2021-05-11 12:47:51 +01:00
Rajkumar Kanagaraj
f096b3b3c3
Fix missing newline
2021-05-11 04:22:26 -07:00
Rajkumar Kanagaraj
a88f43f367
CMake: Update mbed os, unittest CMake and add CMAKE_CROSSCOMPILING guard
...
- Add a new MbedOS project in mbed os root CMake which can be used along with
BUILD_TESTING conditional check for enabling the unittest build
- Update UNITTEST CMake for setting the CMake configuration like c, cxx flags etc.,
- Add if CMAKE_CROSSCOMPILING conditional check wherever target configuration check
and toolchain configuration to avoid such configuration gets included for unittest build.
2021-05-11 02:49:03 -07:00
Martin Kojtal
125f58449d
Merge pull request #14497 from jarlamsa/no_duplicate_status_cb
...
Check for duplicate status callbacks before adding to the list
2021-05-11 11:41:06 +02:00
Rajkumar Kanagaraj
4ade0bdbea
CMake: Fix DTLS socket unittest
...
- Binding the socket address into network stack to avoid socket connect API call hangs in the unittest
2021-05-11 02:29:56 -07:00
Paul Szczepanek
452c45b37a
CMake: Update target_h stub headers
...
- Avoid using cmsis headers as it brings more redundant dependency into unittest build and for unittest build, all the required OS flags can provide from mbed rtos types header so replaced cmsis header with mbed os types header
2021-05-11 02:29:56 -07:00
Rajkumar Kanagaraj
bf4ec4a290
CMake: Refactor lorawan unittest cmake
...
- Add CMakeLists.txt file to all lorawan test suite
2021-05-11 02:29:56 -07:00
Rajkumar Kanagaraj
37d4bc2d9e
CMake: Refactore cellular framework unittest
...
- Add CMake configuration file into framework AT, device, common
unittest
2021-05-11 02:29:56 -07:00
Rajkumar Kanagaraj
c5a4fecd28
CMake: Refactor netsocket unittest CMake
...
- Add Cmake configuration file
- Fix the header inclusion in DTLSSocketWrapper and TLSSocketWrapper test
2021-05-11 02:29:56 -07:00
Rajkumar Kanagaraj
ba04c1cf76
CMake: Add add_subdirectory of unittests
...
- add every libraries unittest directory into respective CMake
which allows to include unittest source into build based on
MBED_BUILD_UNITTESTS flag
2021-05-11 02:29:56 -07:00
Martin Kojtal
b80128ff77
Merge pull request #14626 from jeromecoutant/DEV_STM32WB_1_11_1
...
STM32WB update drivers version to CUBE V1.11.1
2021-05-11 10:55:14 +02:00
Debdeep Saha
d963a9af4a
Added API to get Wi-SUN Neighbor Table
2021-05-10 20:00:32 +05:30
Martin Kojtal
26c6b75d3b
Merge pull request #14625 from paul-szczepanek-arm/fix-read-auth
...
BLE: Fix overwriting attribute data from read auth callback
2021-05-10 11:25:55 +02:00
Martin Kojtal
acb43441bb
Merge pull request #14627 from pan-/fix-stop-periodic-advertising
...
Dispatch Gap::stopPeriodicAdvertising to the right function.
2021-05-07 12:41:29 +02:00
Martin Kojtal
b7b4ca72cc
Merge pull request #14605 from paul-szczepanek-arm/tracix
...
BLE: Fix traces
2021-05-07 11:44:25 +02:00
pennam
5475c0995d
CMake add network subdirectory
2021-05-06 15:39:57 +02:00
pennam
665c83b3eb
Moved targets/TARGET_Cypress/TARGET_PSOC6/common/COMPONENT_WHD in connectivity/drivers/wifi/COMPONENT_WHD/network
2021-05-06 15:39:42 +02:00
pennam
6a4fd9d5e6
CMake add COMPONENT_WHD folder
2021-05-06 15:39:42 +02:00
pennam
a29ca0724c
COMPONENT_WHD moved into connectivity/drivers/wifi
2021-05-06 15:39:19 +02:00
Martino Facchin
9686fb6ac2
Patch add #include "cy_utlis.h"
2021-05-06 14:45:26 +02:00
Martino Facchin
ebbbcabb05
Patch add rtos namespace
2021-05-06 14:45:15 +02:00
pennam
7cdf97492a
CMake remove COMPONENT_WHD from emac/TARGET_Cypress
2021-05-06 14:44:58 +02:00
pennam
0db6218dc6
CMake add COMPONENT_WHD in emac
2021-05-06 14:44:41 +02:00
Martino Facchin
ead29d6b83
WHD EMAC moved out of TARGET_Cypress
2021-05-06 14:44:23 +02:00
Jarkko Paso
37e42fb1b7
Mesh API: Functions to set/get/validate FAN v1.1 domain configuration.
2021-05-06 09:27:04 +03:00
Jarkko Paso
6c7789e31e
Fixed astyle issue
2021-05-06 09:24:33 +03:00
Jarkko Paso
2f4b3426cb
Mesh api: Added PHY mode and channel plan IDs
2021-05-06 09:11:20 +03:00
Paul Szczepanek
2041cc6b57
don't copy data into attr if size too big
2021-05-05 19:01:13 +01:00
Paul Szczepanek
0155bce867
allow zero length attribute reads
2021-05-05 18:58:24 +01:00
Paul Szczepanek
17bf70989d
ignore offset, replace whole value of attr in auth callback
2021-05-05 18:40:59 +01:00
Vincent Coubard
cec8a9dc8c
Dispatch Gap::stopPeriodicAdvertising to the right function.
2021-05-05 18:32:47 +01:00
jeromecoutant
f904d10bd6
STM32WB : BLE update from STM32Cube_FW_WB_V1.11.1
2021-05-05 17:22:54 +02:00
Paul Szczepanek
55ffb176d5
Copy data from read auth callback
2021-05-05 14:31:35 +01:00
Jaeden Amero
2300a56863
mbedtls: Don't attempt to use default_random_seed
...
Don't attempt to use default_random_seed unless both PSA and Experimental API
support are enabled. This prevents errors when the Mbed TLS NV Seed feature is
being used on platforms that have PSA enabled by default, but not Experimental
API support by default.
[DEBUG] Output: compilation terminated.
[ERROR] In file included from ./mbed-os/connectivity/mbedtls/include/mbedtls/config.h:31,
from ./mbed-os/connectivity/mbedtls/include/mbedtls/entropy.h:28,
./mbed-os/connectivity/mbedtls/platform/inc/platform_mbed.h:26:10: fatal error: default_random_seed.h: No such file or directory
26 | #include "default_random_seed.h"
2021-05-04 13:56:54 +01:00
Martin Kojtal
6330299ac5
Merge pull request #14578 from jeromecoutant/PR_WB55MMG
...
STM32 : new DISCO_WB5MMG target
2021-05-04 10:48:26 +02:00
Martin Kojtal
dace32aef6
Merge pull request #14602 from paul-szczepanek-arm/conf
...
Deprecate indications event onConfirmationReceived
2021-05-03 09:55:08 +02:00
Martin Kojtal
31d638dc1a
Merge pull request #14603 from paul-szczepanek-arm/compat
...
Avoid init class definition for compatibility
2021-05-03 09:54:54 +02:00
Martin Kojtal
1f57702d79
Merge pull request #14571 from boraozgen/bugfix/cmake-stm32-emac-init
...
CMake: STM32: Add missing emac init files
2021-04-30 15:40:05 +01:00
Martin Kojtal
64eb60e4cc
Merge pull request #14573 from artokin/nanostack_release_13_0_0_for_master
...
Nanostack release v13.0.0
2021-04-30 15:39:41 +01:00
Paul Szczepanek
f872dfa5ca
convert bitfield to bools
2021-04-29 19:07:31 +01:00
Paul Szczepanek
7211cd3e77
fix sm init trace to print string
2021-04-29 16:09:04 +01:00
Paul Szczepanek
52bc9e9f51
fix misleading privacy trace
2021-04-29 16:08:52 +01:00
Paul Szczepanek
172e9697da
avoid init in header for compatibility
2021-04-28 16:29:26 +01:00
jeromecoutant
ebc0035afd
STM32 : new DISCO_WB5MMG target
2021-04-28 16:46:52 +02:00
Paul Szczepanek
b61fc6b639
Deprecate indications event onConfirmationReceived
2021-04-28 14:02:56 +01:00
Martin Kojtal
331473a706
Merge pull request #14589 from plan-do-break-fix/Typo-corrections
...
fix(docs): corrects various typos in project documentation
2021-04-28 13:36:37 +01:00
Martin Kojtal
6f43f03657
Merge pull request #14553 from debdeep-arm/reset-ws-stats-master
...
Added API to reset MAC statistics and Wi-SUN statistics
2021-04-28 12:35:07 +01:00
plan-do-break-fix
915b45af23
fix(docs): corrects various typos in project documentation
2021-04-23 23:31:11 -05:00
Peter B
40c7914c64
add #include "wsf_os.h" into hci_drv_apollo3.h
...
Inclusion of wsf_os.h resolves unknown type errors in hci_drv_apollo3.h
2021-04-23 12:19:54 +02:00
Arto Kinnunen
2773394947
Merge commit 'fb72e8eba714116d3578e4f53010b104f48459f0' into nanostack_release_13_0_master
...
* commit 'fb72e8eba714116d3578e4f53010b104f48459f0':
Squashed 'connectivity/nanostack/sal-stack-nanostack/' changes from 3183d87e41..0903b819c5
2021-04-21 10:20:07 +03:00
Arto Kinnunen
776d5db357
Merge commit '95ea4d93f31371978f0c6d969963fc6b3f58ce81' into nanostack_release_13_0_master
...
* commit '95ea4d93f31371978f0c6d969963fc6b3f58ce81':
Squashed 'connectivity/libraries/nanostack-libservice/' changes from a526cc3f41..260d80f42d
2021-04-21 10:17:34 +03:00
Arto Kinnunen
6ad0cff2c8
802.15.4 STM S2LP driver update
...
Update STM S2LP driver to version v1.0.8
2021-04-21 10:14:04 +03:00
Arto Kinnunen
327ea8fa0f
802.15.4 Atmel RF driver update
...
Sync with master version v3.3.5
2021-04-21 10:11:52 +03:00
Bora Özgen
f365860f3e
CMake: STM32: Add missing emac init files
2021-04-20 16:31:02 +02:00
Martin Kojtal
216965e7e1
Merge pull request #14463 from mikaleppanen/start_wisun_if
...
Wisun: Add new start methods to Wi-SUN BR with WisunInterface parameter and deprecated the old ones
2021-04-15 17:30:22 +02:00
Debdeep Saha
83844f0fd4
Added API to reset MAC statistics and Wi-SUN statistics.
2021-04-15 18:28:44 +05:30
Martin Kojtal
7f42511673
Merge pull request #14529 from LDong-Arm/cmake_MULADDC
...
CMake: Fix Mbed TLS compilation on Cortex-M0/0+/1/M23
2021-04-15 14:29:27 +02:00
Lingkai Dong
86e7bc559b
CMake: Fix Mbed TLS compilation for Cortex-M0/0+/1/M23
...
Due to a known issue in Mbed TLS's architecture determination
(ARMmbed/mbedtls#1077 ), we get the error
error: inline assembly requires more registers than available
when compiling `bignum.c` for Cortex-M0/0+/1/M23 which do not have
the macro `__thumb2__` set by the compiler.
The workaround is to define the macro `MULADDC_CANNOT_USE_R7` which
is already defined by Mbed CLI 1 but missing in our CMake support.
Fixes ARMmbed/mbed-os-example-lorawan#220
2021-04-15 11:04:40 +01:00
Martin Kojtal
076cf3557a
Merge pull request #14546 from rwalton-arm/dev/rwalton-arm/fix-connectivity-driver
...
CMake: Fix mbed-802.15.4-rf driver
2021-04-15 11:43:30 +02:00
Martin Kojtal
bedd5727af
Merge pull request #14486 from jeromecoutant/PR_CLI2_BLE
...
CMake COMPONENT_BlueNRG_MS: fix mbed-ble
2021-04-14 16:27:25 +02:00
Robert Walton
c7c2580f9e
CMake: Fix mbed-802.15.4-rf driver
...
mbed-nanostack should depend on mbed-802.15.4-rf to avoid a linker error
with an undefined reference to `NanostackRfPhy::get_default_instance()`.
The error occurs when `device_has: 802_15_4_PHY` is defined and the
consumer depends on mbed-nanostack in their CMakeLists.txt. Previously
we linked mbed-nanostack to mbed-802.15.4-rf, so mbed-802.15.4-rf's
usage requirements weren't forwarded to consumers who depended on
mbed-nanostack.
With the previous configuration, the consumer would have to depend on
mbed-802.15.4-rf directly to avoid an issue. This seems like a layering
violation: it appears that mbed-nanostack is "the API" and
mbed-802.15.4-rf is one of several possible implementations which are
selected based on configuration macros.
This commit changes the flow of dependencies so that mbed-nanostack ends
up with the correct symbol definitions.
2021-04-14 12:30:35 +01:00
Martin Kojtal
c5f28e6037
Merge pull request #14481 from jeromecoutant/PR_LORA_ERROR
...
STM32WL: update "lora.max-sys-rx-error"
2021-04-14 09:54:53 +02:00
Martin Kojtal
06a33d37f8
Merge pull request #14436 from paul-szczepanek-arm/remove-services
...
BLE: replace obsolete services with the new services repo
2021-04-13 16:00:58 +02:00
Martin Kojtal
b1e26c6f35
Merge pull request #14435 from LDong-Arm/CRYPTOCELL310_linking
...
Fix missing linkage of mbed-mbedtls-cryptocell310 to mbed-mbedtls
2021-04-13 16:00:43 +02:00
jeromecoutant
57ce710119
[CMAKE] COMPONENT_BlueNRG_MS: fix mbed-ble
2021-04-12 11:33:57 +02:00
Paul Szczepanek
d594aa2d4b
add MBED_DEPRECATED comment for maintainers to find it
2021-04-08 09:53:23 +01:00
Martin Kojtal
9bbc8c914c
Merge pull request #14506 from noonfom/value-handle
...
Add GattUpdatesEnabledCallbackParams struct
2021-04-08 09:53:04 +02:00
Abbas Bracken Ziad
52483f3e30
Wrap call to value handle getter in MBED_ASSERT
2021-04-07 18:05:01 +01:00
Paul Szczepanek
cc478b3896
add deprecation warning
2021-04-07 17:15:09 +01:00
Paul Szczepanek
f34d31f350
remember if BLE scan paremeters are set
2021-04-07 16:40:46 +01:00
Abbas Bracken Ziad
aaf9435f87
Use general name for POD
2021-04-07 12:34:25 +01:00
Mika Leppänen
989c8e85eb
Added new start methods to Wi-SUN BR with WisunInterface parameter and deprecated the old ones
...
Previously WisunBorderRouter start() used NetworkInterface type for mesh interface, although only
WisunInterface type is possible for the call. Added a new overloads of the start with the
WisunInterface as mesh interface type and deprecated the old ones. This makes the calls stricter
about the interface type and safer. It also allows to remove the reinterpret_cast that causes
compiler warning on ARM compiler.
2021-04-07 11:34:33 +03:00
Abbas Bracken Ziad
d42c0a7269
Add value handle field to callback params
2021-04-06 17:39:10 +01:00
Abbas Bracken Ziad
8b07e97e50
Add value handle getter to Gatt Server
2021-04-06 17:24:08 +01:00
jarlamsa
bc747dce09
Check for duplicate status callbacks before adding to the list
...
Duplicate status callbacks don't bring any value and can cause
memory leaks if caller calls for this function multiple times with
same status_cb. Also remove all the instances of the status_cb when
removing event listener.
2021-04-01 13:22:07 +03:00
Anna Bridge
d2941186eb
Merge pull request #14460 from harmut01/baremetal_ambiq
...
Ambiq: Fix baremetal build profile when using CLI 1
2021-03-31 11:29:25 +01:00
Anna Bridge
cbc6209a11
Merge pull request #14442 from artokin/update_set_network_size_doc_master
...
Improve WisunInterface set_network_size docs
2021-03-29 11:22:36 +01:00
jeromecoutant
b63ca7c800
STM32WL: update "lora.max-sys-rx-error"
2021-03-29 09:25:25 +02:00
harmut01
8d502d4af3
Ambiq: Fix baremetal build profile using CLI 1
...
Add mbed_lib.json in the Ambiq target folder of FEATURE_BLE to make sure
the library is excluded in the baremetal build profile unless explicitly
added in `mbed_app.json`.
2021-03-24 09:22:21 +00:00
Arto Kinnunen
e91f9cb6a1
Review corrections
...
Updated based on review comments.
2021-03-23 13:50:58 +02:00
Martin Kojtal
1fdb1c18e8
Merge pull request #14198 from ARMmbed/feature-bluetooth-traces
...
Feature bluetooth traces
2021-03-22 10:59:44 +01:00
jeromecoutant
eca714c93f
[STD-PIN] update tests and components
2021-03-18 17:01:50 +00:00
Lingkai Dong
4c6f8867d4
Make CryptoCell 310 part of mbed-mbedtls on supported targets
...
The CMake target mbed-mbedtls-cryptocell310 was not linked by
default, resulting in a compilation error on targets that use
Mbed TLS:
fatal error: mbedtls_device.h: No such file or directory
Other Mbed TLS drivers simply add themselve to mbed-mbedtls, so this
commits does the alignment to fix the build error.
Note: the driver and the core Mbed TLS have mutual dependency, so
they need to be one CMake target.
2021-03-18 12:10:11 +00:00
Paul Szczepanek
d43d4a0e7e
fix cordio include path
2021-03-18 11:30:43 +00:00
Paul Szczepanek
1afbbebc96
fix include path for dm_api.h
2021-03-18 11:27:42 +00:00
Arto Kinnunen
06e5db993f
Improve WisunInterface set_network_size docs
...
Clarify set_network_size usage and possible parameter values.
Clarify wisun-network-size help text in mbed-mesh-api/mbed_lib.json
2021-03-18 11:50:54 +02:00
Paul Szczepanek
c6d2ca17d5
remove obsolete services and add information about the services repo
2021-03-17 13:05:25 +00:00
Paul Szczepanek
dc6e9db067
add tracing to scan state ( #14225 )
2021-03-15 15:35:52 +00:00
Paul Szczepanek
a62c1e1228
add missing include
2021-03-15 15:35:52 +00:00
Vincent Coubard
cf33ed0668
BLE: Add MemorySecurityDb.cpp and SecurityDb.cpp to CMake.
2021-03-15 15:35:52 +00:00
Vincent Coubard
d1672aaa64
BLE: Update level of traces in GattServer
2021-03-15 15:35:52 +00:00
Vincent Coubard
957486e0eb
BLE: Move traces out of header file to avoid collisions.
...
This change required the creation of the implementation files of SecurityDb classes.
2021-03-15 15:35:52 +00:00
Vincent Coubard
6adaefd9f3
BLE: Fix traces parameter warnings
2021-03-15 15:35:52 +00:00
Vincent Coubard
65c61a1ca9
BLE: Remove uses of tr_as_array in favour of to_string.
2021-03-15 15:35:52 +00:00
Vincent Coubard
c674990820
BLE: Fix sprintf overflow in trace helpers.
2021-03-15 15:35:52 +00:00
Vincent Coubard
52a3de6657
BLE: Move tracing helpers into implementation file.
2021-03-15 15:35:52 +00:00
Vincent Coubard
c13e590723
BLE: Refactor UUID string helper to match mbed-os coding style.
2021-03-15 15:35:52 +00:00
Vincent Coubard
e001098699
BLE: Fix out of range memory access in trace helper.
2021-03-15 15:35:52 +00:00
Abbas Bracken Ziad
db9428f18f
Add tracing to BLE Gatt Server ( #14107 )
...
* Add traces to GattServerImpl.cpp
* Update BLGS traces
* Add context to BLGS traces
* Set value of TRACE_WRITE_VALUES to 0
* Add param logs to BLGS traces
* Apply changes from code review
* Add trace helper for UUIDs
* C++ string library is not needed
* Update to_string function for UUIDs
The previous implementation had a memory leak and did not format 128-bit UUIDs
* Possibly faster ternary
* Add more context to adding/inserting of services/characteristic
* Add trace to events and event path
* Refactor to_string helper for UUIDs
2021-03-15 15:35:52 +00:00
Abbas Bracken Ziad
f4febdcb9d
Add tracing to BLE GAP ( #14117 )
...
* Add traces to GapImpl.cpp
* Add helpers and param logs
* Update GapImpl.cpp
* Move helpers to ble_trace_helpers.h
* Add traces to whitelist setter & getter functions
* Prepend parent dir. to ble_trace_helpers.h include line
* Resolve portability issue by using PRI* macro in place of %lu
* Add traces to PalGapImpl.cpp
* Complete PAL GAP traces
* Remove stray include
* Make 'echo' traces in PAL configurable
Some of the tr_info traces at the beginning of PAL functions are duplicates ('echoes') of those in GAP functions. This commit enables including/excluding of these traces in mbed_app.json by writing 1/0, respectively to the MBED_CONF_CORDIO_TRACE_PAL_ECHOES config macro. The default is to exclude 'echo' traces.
* Add missing spaces in tr_info traces
* Clean-up param log for set_extended_advertising_parameters
* Remove "Failed: " from every tr_error trace
* Apply changes from PalGapImpl.cpp review
* Apply changes from GapImpl.cpp review
* Use binary for channel map trace
B0: ADVERTISING_CHANNEL_37
B1: ADVERTISING_CHANNEL_38
B2: ADVERTISING_CHANNEL_39
We're assuming that the user understands the above. This could be documented somewhere.
* Replace more %lu w/PRIu32
* Add tr_info to terminateSync for user call
* Make trace group for PAL traces BLDM
* Remove [PAL] prefix from every PAL trace
* Add trace to setPeripheralPrivacyConfiguration
* Make set scan params tr_info dependent on selected PHY
* Add trace to GAP events
* Other GAP events required traces
2021-03-15 15:35:52 +00:00
Paul Szczepanek
91d4b48989
BLE: add traces to gatt client ( #14165 )
...
* add traces to gatt client
* add files to cmakelists
Co-Authored-By: Vincent Coubard <vincent.coubard@arm.com>
* fixed tracing variable name
Co-Authored-By: Vincent Coubard <vincent.coubard@arm.com>
* add pal tracing
* add more traces for successfull actions
* put write and read as tr_debug in pal
Co-authored-by: Vincent Coubard <vincent.coubard@arm.com>
2021-03-15 15:35:52 +00:00
Paul Szczepanek
7b08388be6
Add traces to HCI, BLE instance, Security DB and WSF cordio traces ( #14138 )
...
* ble HCI tracing
* fix typo in SM trace
* add BLE instance tracing
* route wsf traces to mbed tr_debug
* Update connectivity/FEATURE_BLE/source/cordio/source/BLEInstanceBaseImpl.cpp
Co-authored-by: Vincent Coubard <vincent.coubard@arm.com>
* print hci on cordio side
* trace controller supported features
* log reset sequence
* include config for printing enums
* remove duplicate trace
* add tracing to security db
* workaround for macro error on use outside trace
Co-authored-by: Vincent Coubard <vincent.coubard@arm.com>
2021-03-15 15:35:52 +00:00
Vincent Coubard
5aa76e566a
BLE: Add privacy trace ( #14127 )
...
Add traces to the Bluetooth Security Manager and Privacy controller.
The traces are made to be comprehensive to improve the ux when users submit bugs.
A centralized set of helpers has been created to convert BLE types to string.
* BLE: Add SM traces
* BLE: Add traces to Security Manager PAL
* BLE: Make SM traces consistent.
- Prefix with Connection <id> - when appropriate.
- Display parameters after `:`.
- If multiple parameters should be displayed name then and print the value after =. They are separated by a `,`.
* BLE: Fix SM random number generation.
Only the first 8 bytes were generated from the stack.
* BLE: Regenerate CSRK if it is all zeroes.
* BLE: Add trace into privacy modules
Address resolution is set at the debug level as it is a very common operation and may clutter the output.
* Address trace review for SM:
- Put privacy traces in BLPR
- Add missing traces in PALSecurityManagerImpl.cpp
- Add missing EventHandler null pointer check
- Typo and parameters order fix.
2021-03-15 15:34:34 +00:00
Martin Kojtal
b4abfe6709
Merge pull request #14422 from pan-/lora-cancellation
...
Fix Lora timer cancellation
2021-03-12 13:17:21 +00:00
Martin Kojtal
1cb25da7ae
Merge pull request #14419 from jeromecoutant/PR_MBEDH
...
STM32: remove mbed.h include in connectivity
2021-03-12 10:55:32 +00:00
Martin Kojtal
6aef1af9e0
Merge pull request #14342 from JojoS62/fix-lwIP-add_dns_server
...
use calloc for new_interface_server
2021-03-12 08:44:50 +00:00
Martin Kojtal
9e0495a770
LoRaWANTimer: add new line at the end of the file
2021-03-12 08:24:16 +00:00
Vincent Coubard
9781418e31
Lora: Clear callback ID when timer callback is executed.
2021-03-11 21:00:43 +00:00
Vincent Coubard
4885739c4e
Lora: Add clear method to LoRaWANTimer.
...
This function must be called by the callback registered in init.
It clears the timer_id to prevent abusive use of the stop methods on expired timer.
2021-03-11 20:59:45 +00:00
jeromecoutant
a7508f70fe
STM32WB BLE: remove mbed.h
2021-03-11 17:39:06 +01:00
jeromecoutant
d28b875727
STM32 EMAC: remove mbed.h
2021-03-11 17:38:56 +01:00
Martino Facchin
c0a8e41719
CYW43XXX: Add generic transport layer
2021-03-11 15:43:28 +01:00
Hugues Kamba
4367305830
CMake: Fix Renesas build error on Linux
...
The CMake input source file needs to be named
exactly CMakeLists.txt to be detected and used
for the build configuration.
2021-03-11 11:43:37 +00:00
Martin Kojtal
866855df5c
Merge pull request #14367 from JojoS62/fix-nd6-queueing-typo
...
fix typo: replace underscore by hyphen in lwipstack/mbed_lib.json
2021-03-09 14:32:32 +00:00
Martin Kojtal
76b2902f48
Merge pull request #14354 from ARMmbed/feature-tf-m-1.2-integration
...
Update TF-M support to v1.2
2021-03-03 11:08:24 +00:00
Johannes Stratmann
e28df3aa30
replace underscore by hyphen
2021-03-02 16:54:34 +01:00
Johannes Stratmann
6934a46505
move private struct dns_server_interface to c file
...
use ip_addr function to initialize dns_add_interface_server
2021-03-02 14:51:11 +01:00
Martin Kojtal
63eeb93a5f
Merge pull request #14341 from artokin/update_traces_in_stm_emac_driver
...
Update stm32xx_emac driver traces
2021-02-25 15:09:10 +00:00
Lingkai Dong
0dd43976b8
Import mbedtls_ecp_write_key for Cypress Mbed TLS driver
...
Mbed TLS 2.24.0 has added a new function mbedtls_ecp_write_key()
which is the reverse of the existing mbedtls_ecp_read_key(). This
function should be platform agnostic, but needs to be copied into
Cypress's hardware-accelerated ECP driver as part of the updated
API.
2021-02-25 14:02:57 +00:00
Lingkai Dong
1f4f6dd0b6
Mbed TLS importer: don't import unnecessary files
...
The Mbed TLS importer accidentally imports Makefile and .gitignore
from Mbed TLS's `library/` directory. This commit restricts the
pattern to .h and .c files only, and removes the unnecessary files.
2021-02-25 14:02:57 +00:00
Lingkai Dong
241b062cdf
Update .gitignore for Mbed TLS importer
...
The directory `mbed-tls-lib` previously in `.gitignore` no longer
exists. Instead, we can simply ignore the entire TARGET_IGNORE.
2021-02-25 14:02:57 +00:00
Lingkai Dong
410a1bad6b
Import mbedtls-2.24 and Mbed PSA Service (non-TFM)
...
Files have been automatically imported by setting MBED_TLS_RELEASE to
mbedtls-2.24.0 in connectivity/mbedtls/tools/importer/Makefile and
running `make` in that directory.
2021-02-25 14:02:55 +00:00
Lingkai Dong
e0d2c3d03a
Fix paths in Mbed TLS importer
...
Note: Now we need to export common.h to the include path, because
this header is now also needed by PSA Crypto service.
2021-02-25 14:02:54 +00:00
Lingkai Dong
e3641576d0
Move hash_wrappers.c to platform subdirectory
...
hash_wrappers.c is specific to Mbed OS, moving it into platform
as its original directory is for imported Mbed TLS source only.
2021-02-25 14:02:54 +00:00
Lingkai Dong
9e48b782b9
Add copyright header to hash_wrappers.c
2021-02-25 14:02:54 +00:00
Johannes Stratmann
73ce15ccbb
turn off rdnss for compatibility
2021-02-24 21:13:26 +01:00
Johannes Stratmann
ddbc2d7b88
add options to use RDNSS and IPv6 queuing
2021-02-24 21:09:40 +01:00
Johannes Stratmann
54b3b03426
use calloc for new_interface_server
...
malloc left garbage in the structure, dns IPs were filled with random content
2021-02-24 20:50:29 +01:00
Arto Kinnunen
e4e2f79cc8
Update stm32xx_emac traces
...
- Make packet trace optional, can be enabled by enabling macro
STM32xx_DEEP_TRACE
- Shorten traces during driver initialisation to avoid problems with
driver startup when soft reset is used.
2021-02-24 13:46:58 +02:00
Martin Kojtal
8340ea2d2b
Merge pull request #14305 from paul-szczepanek-arm/cordio-host-fix-index
...
BLE: fix indexing of array in Cordio host stack
2021-02-23 14:23:21 +00:00
Paul Szczepanek
53cf06278a
use the ccb instead of looking up the conn id
2021-02-22 11:31:25 +00:00
Paul Szczepanek
9a25b7b7cd
use dmConnId_t for conn id
2021-02-19 12:52:47 +00:00
Paul Szczepanek
b271ee853a
fix Cordio attsCsfActClientState index parameter
...
instead of using a handle this should be conn id
there were two calls using it differently
2021-02-19 12:45:09 +00:00
Martin Kojtal
85c2d7a25c
CMake: remove IAR references as they are not supported
2021-02-17 09:19:03 +00:00
Martin Kojtal
3894d73680
Merge pull request #14289 from hugueskamba/hk_cmake_refactor_cypress
...
CMake: Refactor Cypress targets
2021-02-16 13:43:35 +00:00
Hugues Kamba
ea6955bd1c
CMake: Refactor Cypress targets
...
Refactor all Cypress targets to be CMake buildsystem targets. This removes
the need for checking MBED_TARGET_LABELS repeatedly and allows us to be
more flexible in the way we include MBED_TARGET source in the build.
A side effect of this is it will allow us to support custom targets
without breaking the build for 'standard' targets, as we use CMake's
standard mechanism for adding build rules to the build system, rather
than implementing our own layer of logic to exclude files not needed for
the target being built. Using this approach, if an MBED_TARGET is not
linked to using target_link_libraries its source files will not be
added to the build. This means custom target source can be added to the
user's application CMakeLists.txt without polluting the build system
when trying to compile for a standard MBED_TARGET.
2021-02-15 17:20:23 +00:00
Martin Kojtal
fa62e80958
Merge pull request #14249 from jeromecoutant/PR_STM32WL_LORA
...
STM32WL : add LoRa support
2021-02-15 11:04:00 +00:00
Martin Kojtal
bc6679ebd6
Wiced: remove empty spaces
2021-02-15 08:49:44 +00:00
jeromecoutant
81a44fc9ae
STM32WL: use correct include path
2021-02-15 08:54:06 +01:00
Martin Kojtal
51a6754e22
WicedInterface: fix styling
2021-02-14 20:00:25 +00:00
Martin Kojtal
2f09d7c057
Update WicedInterface.h
...
Fix the styling error
2021-02-14 19:35:37 +00:00
Hugues Kamba
01875ebb09
WICED: Move directory to WiFi driver
...
WICED is something is build to Cypress WiFi on multiple devices, it's a binary form. It is owned
by Seeed studio
2021-02-12 16:40:22 +00:00
Martin Kojtal
3174a4c6a5
Merge pull request #14264 from paul-szczepanek-arm/fix-terminate-sync
...
BLE: fix termination of periodic advertising sync
2021-02-12 09:16:55 +00:00
Martin Kojtal
8284807a00
Merge pull request #14239 from paul-szczepanek-arm/passkey-fix
...
BLE: fix passkey for display being returned reversed
2021-02-11 08:04:57 +00:00
Martin Kojtal
871522c929
Merge pull request #14256 from pan-/ble-chainable-event-handler-test
...
BLE: Add API to test the presence of an event handler in a chain.
2021-02-11 08:04:34 +00:00
Martin Kojtal
533e63355d
Merge pull request #14257 from pan-/add-getter-for-characteristic-cb
...
BLE: Add APIs to get characteristic authorization callbacks.
2021-02-11 08:04:29 +00:00
Paul Szczepanek
938aedac91
use the correct id to identify sync
2021-02-10 11:57:30 +00:00
Vincent Coubard
edd7678cfc
BLE: Add API to test the presence of an event handler in a chain.
2021-02-10 11:18:59 +00:00
Mika Leppänen
08bec7583d
Added missing const qualifier to mesh ethernet mac addr get
2021-02-10 13:17:03 +02:00
Vincent Coubard
c099b859d7
BLE: Add APIs to get characteristic authorization callbacks.
2021-02-09 19:56:58 +00:00
jeromecoutant
7baae39ece
STM32WL LORA : enable connectivity test
2021-02-09 11:56:50 +01:00
Ludovic Champsaur
08050839d5
STM32WL LORA : lorawan update
2021-02-09 11:56:41 +01:00
Ludovic Champsaur
83d18eb4c0
STM32WL LORA : STM32WL_LoRaRadio support
2021-02-09 11:56:30 +01:00
Paul Szczepanek
94529508a5
include deprecation option for reversing passkey display
2021-02-08 13:36:28 +00:00
Martin Kojtal
733975220d
Merge pull request #14228 from ARMmbed/rename_greentea_test_macro
...
CMake: rename greentea test macro
2021-02-03 14:17:20 +00:00
Martin Kojtal
40cd33001d
Merge pull request #14195 from jeromecoutant/PR_LORA_BARE
...
LoraRadio test update for baremetal support
2021-02-03 09:31:41 +00:00
Martin Kojtal
5e1d13886c
Merge pull request #14202 from paul-szczepanek-arm/fix-stop-advert
...
BLE: return OK when stopping advertising set that is not active
2021-02-03 09:31:24 +00:00
Rajkumar Kanagaraj
6824b14e48
CMake: rename greentea test macro
2021-02-02 07:43:40 -08:00
Martin Kojtal
276e835e4b
Merge pull request #14181 from hugueskamba/hk_cmake_greentea_mbedtls
...
CMake: Add support for Mbed TLS Greentea tests
2021-02-02 14:17:18 +00:00
Martin Kojtal
956b19775c
Merge pull request #14197 from paul-szczepanek-arm/gtest
...
Upgrade gtest to 1.10
2021-02-01 10:44:11 +00:00
Martin Kojtal
04100a14c2
Merge pull request #14092 from hugueskamba/hk_nfc_m24sr_support
...
NFC: Add support for M24SR driver
2021-02-01 09:39:26 +00:00
Paul Szczepanek
bd5f437896
return OK when stopping advertising that is not active
2021-01-27 16:32:57 +00:00
Paul Szczepanek
2fe6c7aa52
upgrade gtest to 1.10
2021-01-26 17:25:44 +00:00
jeromecoutant
dd602689d2
LoraRadio test update for baremetal support
2021-01-26 14:47:56 +01:00
Hugues Kamba
d0076a9e61
NFC: Add support for M24SR driver
...
The repository https://github.com/ARMmbed/mbed-nfc-m24sr
is no longer required to build applications that require
this driver.
2021-01-26 10:33:06 +00:00
Hugues Kamba
9a1c24e254
CMake: Add support for Mbed TLS Greentea tests
...
The Mbed TLS Greentea tests can now be built with CMake.
2021-01-25 10:48:15 +00:00
Martin Kojtal
83c18dd67c
Merge pull request #14099 from hugueskamba/hk_cmake_greentea_cordio
...
CMake: Add support for CORDIO Greentea tests
2021-01-20 21:14:33 +00:00
Martin Kojtal
dc40c47cfa
Merge pull request #14169 from artokin/nanostack_release_12_8_0_to_master
...
Nanostack release v12.8.0
2021-01-20 14:38:16 +00:00
Martin Kojtal
5860bd3eea
Merge pull request #14126 from urutva/fix-mbedtls-sanity-test
...
tests: Limit PSA crypto tests to Arm-v7M targets
2021-01-20 12:35:44 +00:00
Arto Kinnunen
4d13419f38
Add nsdynmem_tracker_lib.c to CMakeLists.txt
2021-01-20 13:09:06 +02:00
Arto Kinnunen
0810306ca4
Add random_early_detection to CMakeLists.txt
2021-01-20 11:43:43 +02:00
Martin Kojtal
8145477cab
Merge pull request #14098 from hugueskamba/hk_cmake_greentea_lorawan
...
CMake: Add support for LoRaWAN Greentea tests
2021-01-20 08:34:50 +00:00
Martin Kojtal
8effecdf29
Merge pull request #14063 from dustin-crossman/pr/wifi_reserved_region
...
Support arbitrary storage alongside WiFi firmware in external storage on Cypress targets
2021-01-20 08:34:23 +00:00
Martin Kojtal
4324d32d7c
Merge pull request #14148 from mikaleppanen/nano_coverity_corr_master
...
Corrected nanostack coverity warnings
2021-01-20 08:05:00 +00:00
Paul Szczepanek
5d26114458
astyle
2021-01-19 14:47:02 +00:00
Paul Szczepanek
5ef1f161c3
Update cert for testing server
2021-01-19 13:25:16 +00:00
Arto Kinnunen
0c4294b1af
Merge commit 'b0e699fe3e03f574aa2b6d74ff56a024d6e1d508'
...
* commit 'b0e699fe3e03f574aa2b6d74ff56a024d6e1d508':
Squashed 'connectivity/nanostack/sal-stack-nanostack/' changes from 715ae9a693..3183d87e41
2021-01-19 11:53:20 +02:00
Arto Kinnunen
a13d6ab0f3
Merge commit 'aad453e0ac69b9de3b3e218c21a423bebd506174'
...
* commit 'aad453e0ac69b9de3b3e218c21a423bebd506174':
Squashed 'connectivity/nanostack/coap-service/' changes from 5aa54b8e62..4a126bd278
2021-01-19 11:52:43 +02:00
Arto Kinnunen
6354a1e8dc
Merge commit '084b722d1c3fa00e29d7ded181aaabbcc3f1f793'
...
* commit '084b722d1c3fa00e29d7ded181aaabbcc3f1f793':
Squashed 'connectivity/libraries/nanostack-libservice/' changes from 67d7b93ec6..a526cc3f41
2021-01-19 11:43:02 +02:00
Arto Kinnunen
06b913ff7e
Merge commit '2f56ffab52d78986aebc1a290f106f5cf58830f8'
...
* commit '2f56ffab52d78986aebc1a290f106f5cf58830f8':
Squashed 'connectivity/nanostack/sal-stack-nanostack-eventloop/' changes from 86cf0cca08..fb20d3f32c
2021-01-19 11:38:59 +02:00
Arto Kinnunen
908278f771
Merge commit '61315d197624480acfe555a3031228e62a55b239'
...
* commit '61315d197624480acfe555a3031228e62a55b239':
Squashed 'connectivity/drivers/802.15.4_RF/atmel-rf-driver/' changes from ae4ef1b197..b1a8186d75
2021-01-19 11:33:45 +02:00
Martin Kojtal
f8e586492f
Merge pull request #14091 from hugueskamba/hk_cmake_greentea_nfc
...
CMake: Add support for NFC Greentea test
2021-01-19 09:24:59 +00:00
jeromecoutant
7ab7933d12
STM32 / CMAKE / mbedtls : correct CMakeLists.txt files
2021-01-15 11:46:26 +01:00
Hugues Kamba
9985392c09
CMake: Add support for LoRaWAN Greentea test
...
The LoRaWAN Greentea test can now be built with CMake.
2021-01-14 17:35:16 +00:00
Hugues Kamba
5616537c3a
CMake: Add MbedTLS dependency to LoRaWAN library
...
This way applications that need LoRaWAN do need to also add MbedTLS
2021-01-14 17:32:00 +00:00
Martin Kojtal
82f3126ab8
Merge pull request #14049 from jeromecoutant/PR_L072_LORA
...
DISCO_L072CZ_LRWAN1: enable LORA by default
2021-01-14 17:16:19 +00:00
Devaraj Ranganna
61009ba05a
tests: Limit PSA crypto tests to Arm-v7M targets
...
The PSA crypto tests in
connectivity/mbedtls/tests/TESTS/mbedtls/sanity/main.cpp are only
supported for Arm-v7M PSA targets. For Arm-v8M PSA targets, crypto
regression tests provided by TF-M are used. Refer to
https://github.com/ARMmbed/mbed-os-tf-m-regression-tests for more
information.
Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
2021-01-14 11:56:04 +00:00
Devaraj Ranganna
9186fe57b2
tests: Fix test_crypto_asymmetric_encrypt_decrypt
...
The test `test_crypto_asymmetric_encrypt_decrypt` was incorrectly
setting the key usage flags. The key usage is updated to support both
encryption and decryption.
Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
2021-01-14 11:52:36 +00:00
Mika Leppänen
1e3d32ad41
Corrected nanostack coverity warnings
2021-01-13 13:05:51 +02:00
Martin Kojtal
8fb31d7ec3
Merge pull request #14008 from MultiTechSystems/mtqn-cpsms
...
Add proper power save mode command format for MTS_DRAGONFLY_L471
2021-01-12 15:16:01 +00:00
Hugues Kamba
edab3140e2
CMake: Add support for NFC Greentea test
...
The NFC Greentea test can now be built with CMake
2021-01-12 10:57:27 +00:00
jeromecoutant
e0217ad9f7
DISCO_L072CZ_LRWAN1: enable LORAWAN by default
2021-01-12 11:42:07 +01:00
jeromecoutant
c3664d2339
LORA: update test
2021-01-12 11:42:06 +01:00
jeromecoutant
80aa710a48
LORA-DRIVER: add pins in json configuration
2021-01-12 11:42:04 +01:00
Martin Kojtal
265aa4cc92
Merge pull request #14103 from hugueskamba/hk_cmake_greentea_netsocket_network
...
CMake: Add support for netsocket/network Greentea tests
2021-01-12 10:40:20 +00:00
jeromecoutant
61059d45e4
STM32F439 : correct cmake compilation
2021-01-11 18:07:58 +01:00
Hugues Kamba
088ce195b6
CMake: Add support for netsocket/network Greentea tests
...
The netsocket/network Greentea tests can now be built with CMake
2021-01-11 16:34:07 +00:00
Hugues Kamba
51bd84ef7d
CMake: Add support for CORDIO Greentea tests
...
The Cordio Greentea tests can now be built with CMake.
2021-01-11 16:30:29 +00:00
Martin Kojtal
15de1aae18
Merge pull request #14101 from rajkan01/add_cmake_greentea_netsocket
...
CMake: Add CMake support for netsocket greentea test
2021-01-11 15:38:55 +00:00
Martin Kojtal
53776fec43
Merge pull request #14125 from pan-/fix-sm-key-generation
...
BLE: Fix Security Manager key generation
2021-01-11 13:39:19 +00:00
Martin Kojtal
a124bcab32
Merge pull request #14048 from mikaleppanen/corr_cert_add
...
Corrected Wi-SUN certificate add and remove functions on Wi-SUN interface
2021-01-11 11:19:26 +00:00
Vincent Coubard
4cfcadd9e9
BLE: Fix SM random number generation.
...
Ensure the more than 8 random bytes are fetched from the stack.
2021-01-07 12:38:47 +00:00
Vincent Coubard
b28e11574a
BLE: Regenerate CSRK if it is all zeroes.
2021-01-07 12:35:24 +00:00
Rajkumar Kanagaraj
48829eee60
CMake: Add CMake support for netsocket greentea test
2021-01-05 09:11:22 -08:00
Martin Kojtal
dd4eca1b69
Merge pull request #14100 from hugueskamba/hk_cmake_fix_ambiq_ble
...
CMake: Fix path to Ambiq BLE source file
2021-01-05 15:50:32 +00:00
Martin Kojtal
d0cd5fa5f1
Merge pull request #13826 from arduino/portenta-mainline
...
Add Arduino Portenta H7 as target
2021-01-05 15:49:44 +00:00
Hugues Kamba
a1e80925af
CMake: Fix path to Ambiq BLE source file
...
Update the hci_drv_apollo3.c listing as the file location was changed.
2021-01-05 13:50:50 +00:00
Martino Facchin
62b6cc9a05
cmake: STM32H7: enable PORTENTA* target
2021-01-05 14:49:37 +01:00
Martin Kojtal
e1d1753726
Merge pull request #14111 from paul-szczepanek-arm/ble-fix-ext
...
BLE: fix scanning/advertising when extended features are available but disabled on host
2021-01-05 13:28:13 +00:00
Martin Kojtal
ce825bcd45
Merge pull request #14084 from paul-szczepanek-arm/gatt-copy-callbacks
...
BLE: Fix GattServer callbacks not being copied to GattServer instance of the service
2021-01-05 11:26:25 +00:00
paul.szczepanek@arm.com
2e714f4b6f
compile out trace when not available
2021-01-04 19:38:03 +00:00
paul.szczepanek@arm.com
6746573b34
add missing guards for extended advertising feature
2021-01-04 18:05:50 +00:00
Paul Szczeanek
5e99ea8d7e
correct the documentation for GattServer::addService
2021-01-04 17:11:03 +00:00
Paul Szczeanek
cdc8845b3c
copy authorsation callbacks to gattserver
2021-01-04 17:11:03 +00:00
Martino Facchin
a723b4ce23
cmake: STM32H7: fix mbed-emac target
2021-01-04 17:31:54 +01:00
Martin Kojtal
9315f05719
Merge pull request #13809 from jeromecoutant/PR_CELLULAR
...
Remove Cellular dependency in netsocket
2020-12-17 15:41:41 +00:00
Martin Kojtal
24501dffd3
Merge pull request #14042 from hugueskamba/hk_cmake_ambiq_micro_support
...
CMake: Add support for all Ambiq Micro Mbed targets
2020-12-17 15:07:43 +00:00
Andrea Palmieri
ae4a53e74a
Support to BlueNRG_2 BLE component ( #13246 )
...
Add support to BlueNRG_2 BLE component
Signed-off-by: Andrea Palmieri <andrea.palmieri@st.com>
Co-authored-by: Andrea Palmieri <andrea.palmieri@st.com>
Co-authored-by: Paul Szczeanek <paul.szczepanek@arm.com>
2020-12-17 14:37:21 +00:00
jeromecoutant
9eb86a2345
Cellular unittests update
2020-12-17 15:36:44 +01:00
Wenn0101
2e144e83e2
update startup gcc to add back weak definitions and have HciDrvRadioBoot call NVIC_SetVector
2020-12-17 11:21:22 +00:00
Hugues Kamba
7a6bf96998
CMake: Fix Apollo3 BLE driver support
2020-12-17 11:13:03 +00:00
Matthew Macovsky
fc702737ce
Create canonical CyReservedRegionBlockDevice for working with/around Cypress WiFi firmware in external memory
...
This change allows external memory to be used for other purposes while
the WiFi firmware is stored in it by interacting with it via the
reserved region block device.
2020-12-16 15:31:00 -08:00
Mika Leppänen
88b46cc71c
Corrected Wi-SUN certificate add and remove functions on Wi-SUN interface
...
Corrected Wi-SUN certificate add and remove functions to work properly
with .json certificates. .json certificates are used only if certificates
added by add functions are not set. Corrected certificate add and remove
functions to work properly and improved function descriptions.
2020-12-15 15:04:14 +02:00
Leon
7370df6e2f
Add proper power save mode command format for MTS_DRAGONFLY_L471QG
2020-12-14 09:42:10 -06:00
Harrison Mutai
b947ee339a
CMake: Fix dirs and sources visibility for mbed-emac CMake target
...
The mbed-emac CMake target is an interface library and as such its
include dirs and sources have to be have the INTERFACE visibility.
2020-12-11 16:52:18 +00:00
Martino Facchin
84790a038a
Add SPDX-License
2020-12-11 10:11:54 +01:00
pennam
f665f1d391
Portenta: enable ETH power supply
2020-12-11 10:11:53 +01:00
Martino Facchin
7e2acee49a
PortentaH7: add Ethernet support
2020-12-11 10:11:53 +01:00
Martino Facchin
8d9b6e9088
lwip: use adeguate mem-size for Portenta H7
2020-12-11 10:11:53 +01:00
Martino Facchin
c96fbebd55
STM32: EMAC: allow compiling on MCUs without DCACHE
2020-12-11 10:11:52 +01:00
Martin Kojtal
38fe337ed0
Merge pull request #14009 from keithmwheeler/pr-dev/hci-driver-terminate
...
ble cyw43xxx: dev/hci driver terminate
2020-12-10 15:57:05 +00:00
Martin Kojtal
14f3ce1edc
Merge pull request #14014 from pan-/ble-attribute-error-code
...
Update GattAuthCallbackReply_t enumeration.
2020-12-10 13:40:04 +00:00
Martin Kojtal
115eee4ae8
Merge pull request #13988 from paul-szczepanek-arm/periodic-sync-ll-fix
...
BLE: Fix periodic advertrising sync based on advertiser list
2020-12-10 11:01:18 +00:00
Martin Kojtal
2c1ce493f4
Merge pull request #13957 from mikaleppanen/new_to_nothrow_mst
...
Replaced new calls with nothrow version of the call on mesh api
2020-12-10 10:59:42 +00:00
Martin Kojtal
e5e315eb80
Merge pull request #13936 from artokin/mac_address_set_get_mbed_os_master
...
Network interface MAC address set/get
2020-12-09 05:55:49 +00:00
Vincent Coubard
2eb77d607a
Update GattAuthCallbackReply_t enumeration.
...
Add missing values that are present in pal::AttErrorResponse.
This allows applications to use correct ATT error codes.
2020-12-08 10:47:55 +00:00
Wheeler Keith (CY CSS ICW Integration)
1e56565692
Clean up from 2 Dec review
2020-12-03 20:33:58 -08:00
Wheeler Keith (CY CSS ICW Integration)
3445eb2cc8
Shifting BT power pin references to mbed style in transport ccriver and cy_bt_cordio_cfg; removing freeing of dev wake pin and changing to deasserting this during terminate
2020-12-03 20:33:56 -08:00
Wheeler Keith (CY CSS ICW Integration)
4d70877b35
Removing 500ms delay inCyH4TransportDriver init; fixing warning about order of BT POWER in declarations
2020-12-03 20:33:54 -08:00
Dustin Crossman
0e6ede86de
Convert cyhal_gpio calls to mbed equivalent.
2020-12-03 20:33:52 -08:00
Wheeler Keith (CY CSS ICW Integration)
389ed278c9
Working on changes from code review
2020-12-03 20:33:50 -08:00
Wheeler Keith (CY CSS ICW Integration)
47aab97d16
Moving UART init from construtor to init method; altering init method to reset BT device via regulator control; modifications to terminate method
2020-12-03 20:33:49 -08:00
Keith Wheeler
bf7adcf0d2
Adding to BLE terminate method code that releases the UART and disables interrupts and GPIO
2020-12-03 20:33:47 -08:00
jeromecoutant
8e58d64e13
Remove Cellular dependency in netsocket
...
Tip: Create a .mbedignore file with
connectivity/cellular*
connectivity/drivers/cellular*
2020-12-03 18:16:33 +01:00
Paul Szczeanek
5cc09f58f8
the adv bit is actually optional in aux_adv_ind so is not required for periodic sync
2020-11-30 16:00:14 +00:00
Arto Kinnunen
6a28bce1dd
Remove API changes
...
-Remove Nanostack::add_ethernet_interface API change
-Add get_mac_address to MeshEthernetInterface
-Fix compiler warnings by adding overrides
2020-11-30 13:49:33 +02:00
Martin Kojtal
dd432a387e
Merge pull request #13942 from paul-szczepanek-arm/securitydb-fix
...
ble: Fix persistence in SecurityDB
2020-11-26 11:17:28 +00:00
Martin Kojtal
483db06a5f
Merge pull request #13948 from rajkan01/simplify_ble_lib_inclusion
...
CMake: Simplify BLE library inclusion
2020-11-25 13:37:11 +00:00
Martin Kojtal
b7c2b77093
Merge pull request #13953 from rajkan01/add_nanostack_dependency_lib
...
Add nanostack dependency lib
2020-11-25 10:02:56 +00:00
Mika Leppänen
06be25722f
Replaced new calls with nothrow version of the call on mesh api
...
Replaced new calls with nothrow version of the call.
2020-11-25 10:04:58 +02:00
Arto Kinnunen
9ede631e76
Update EmacTestNetworkStack
...
-Uncomment get_mac_address
-Document set_mac_address
2020-11-25 09:32:23 +02:00
Arto Kinnunen
636c19af16
Fix unittests
...
Use path in "mbed-trace/mbed_trace.h" to keep unittest happy.
2020-11-25 09:29:59 +02:00
Martin Kojtal
57bbb4739b
Merge pull request #13085 from pea-pod/remove-deprecated-mbed-assert
...
Change MBED_STATIC_ASSERTs version for built-in
2020-11-24 13:38:07 +00:00
Arto Kinnunen
40c038555d
Fix method description
2020-11-24 12:17:54 +02:00
Arto Kinnunen
913ac8c2b2
Follow Mbed OS coding style
2020-11-24 11:46:20 +02:00
Arto Kinnunen
f07030255f
Update EMAC connect logic with MAC address change
...
Do not fail EMAC interface during connect if MAC address change is
not supported in the selected interface.
2020-11-24 11:23:36 +02:00
Rajkumar Kanagaraj
d328af9edb
CMake: Add nanostack dependency
...
- Added netsocket libraries to nanostack CMake with target_link_libraries as nanostack has dependency
2020-11-23 20:18:48 +00:00
Rajkumar Kanagaraj
a964453edf
CMake: target_link_library the BLE with CORDIO stack
...
- Security manager uses some feature from wsf which is part of the mbed-ble-cordio library so added target_link_library to link the BLE library to cordio stack lib.
2020-11-23 16:06:53 +00:00
Paul Szczeanek
e71f452e9d
fix missing return
2020-11-23 09:06:42 +00:00
Paul Szczeanek
63887d19a8
update the peer address when LTK has been found in old entry
2020-11-23 09:06:30 +00:00
Paul Szczeanek
187ed98d82
update the connected status of db entry
2020-11-23 09:06:05 +00:00
Paul Szczeanek
6f844e1a71
fix indexing in ble security db
2020-11-23 09:02:56 +00:00
Arto Kinnunen
2f610340ba
Review corrections
...
-Update method set_mac_address description
-Update EMAC test method return value
2020-11-23 10:11:03 +02:00
Arto Kinnunen
d001b7a441
Update unittests
2020-11-20 10:06:57 +02:00
Arto Kinnunen
82964a3a0c
Update set_mac_address signature
...
Use nsapi_size_t instread os size_t.
2020-11-20 10:05:35 +02:00
Arto Kinnunen
af350de726
Allow method override
...
Remove final keyword to allow inheritance.
2020-11-19 15:50:04 +02:00
Arto Kinnunen
c8b667a7ba
Review correction: Remove unnecessary method
...
Remove unnecessary method: add_ethernet_interface_ns
2020-11-18 17:29:10 +02:00
Arto Kinnunen
e1e0f89699
MAC address set/get support for EMAC interface
...
Add support to set and get MAC address from EMAC interface.
2020-11-18 17:26:04 +02:00
Arto Kinnunen
a607be6623
Method for adding network interface MAC address
...
Add method set_mac_address to set network interface MAC address.
2020-11-18 17:17:54 +02:00
Martin Kojtal
fad7f344e7
Merge pull request #13870 from rajkan01/feature-cmake-review-comment
...
CMake: Address review comment from PR#13566
2020-11-18 09:42:09 +00:00
Martin Kojtal
96f3de6914
Merge pull request #13910 from marcemmers/nrf-ble-config
...
Update NRF ble configuration options
2020-11-18 09:41:42 +00:00
Martin Kojtal
1bd5ce6af2
Merge pull request #13671 from balajicyp/topic/setsockopt_ip_tos
...
Add an socket option to set type of service to set specific precedence for QoS
2020-11-18 09:36:06 +00:00
Marc Emmers
01e56f1f34
Fix missing newline
2020-11-16 17:03:23 +01:00
Marc Emmers
afc42b8fb7
Update NRF ble configuration options
2020-11-16 16:43:43 +01:00
Rajkumar Kanagaraj
438994ded4
Fix CI issue:
...
- Added absolute path as cmake failed to find linker file from relative path
- Added the missing MBED_CONF_CRYPTOCELL310_PRESENT
- Added the dependency library to BLE Cordio stack
2020-11-12 14:32:01 +00:00
Rajkumar Kanagaraj
4c05ce874a
Remove add subdirectory of TARGET_MCU_NRF52840 as it contains only mbed_lib.json
2020-11-12 11:27:11 +00:00
Rajkumar Kanagaraj
cc7ae38fed
CMake: Simplify inclusion of cryptocell310 library files
2020-11-12 11:27:11 +00:00
Rajkumar Kanagaraj
a044bfa9c1
CMake: Add more information to TODO comment
2020-11-12 11:27:11 +00:00
Rajkumar Kanagaraj
766a9a8219
CMake: Remove empty input source files
2020-11-12 11:27:11 +00:00
Rajkumar Kanagaraj
a4d8559c08
CMake: Rename input source files from CMakelists.txt to CMakeLists.txt
2020-11-12 11:27:10 +00:00
Martin Kojtal
d5b4f42fcd
Merge pull request #13894 from noonfom/fix_compilation_warnings
...
Fix compilation warnings
2020-11-12 08:50:25 +00:00
Martin Kojtal
e725df7d07
Merge pull request #13833 from AGlass0fMilk/privacy-enabled-cb-patch
...
Add new Gap::EventHandler callbacks to ChainableGapEventHandler class
2020-11-12 08:43:35 +00:00
Abbas Bracken Ziad
3e6cf78d6d
Remove call to function-like macro with no effect
2020-11-11 14:23:42 +00:00
Martin Kojtal
5cbdbcb2d2
Merge pull request #13889 from artokin/nanostack_release_12_6_2
...
Nanostack release v12.6.2
2020-11-11 09:11:27 +00:00
Arto Kinnunen
c8c2e5437f
Merge commit '48fcb2ba25d66cbcc3be602a7662306caae0f9fe'
...
* commit '48fcb2ba25d66cbcc3be602a7662306caae0f9fe':
Squashed 'connectivity/nanostack/sal-stack-nanostack/' changes from 09d9e24f2d..715ae9a693
2020-11-10 13:47:13 +02:00
Hugues Kamba
794e32df74
CMake: Use relative paths to list source files and directories
...
The absolute path is still required for listing linker
files as they are referenced from a function in the top
level CMake input source file.
2020-11-09 12:32:30 +00:00
Abbas Bracken Ziad
877436cc29
Replace calls to deprecated functions in the Timer API
2020-11-06 18:00:51 +00:00
Rajkumar Kanagaraj
e7c0d93ad4
CMake: add mbed-os and mbed-baremetal targets
...
mbed-os consists of mbed-core and mbed-rtos
mbed-baremetal consists of mbed-core
The main change is for mbed-core. Changing from object library to be interface. This way it allows us to do the above to have 2 main targets for users to use.
This should be backward compatible change as mbed-os target we used contains the same files/options as previously set.
2020-11-06 17:25:22 +00:00
Hugues Kamba
bf84a5b329
CMake: Rename CMake targets
...
* mbed-os renamed mbed-core
* mbed-os-<COMPONENT> renamed mbed-<COMPONENT>
2020-11-06 17:25:22 +00:00
Hugues Kamba
c82e8c2337
CMake: Restore rtos api and netsocket presence macro names
...
The old tools rely on the old names to build
2020-11-06 17:25:22 +00:00
Hugues Kamba
0ddc75a8f6
CMake: Fix BLE private address linker error
...
List newly added files in CMake input source files.
2020-11-06 17:25:22 +00:00
Martin Kojtal
8529e88e61
cmake: fix present inclusion
...
We use only _PRESENT macros for components if they are enabled. Use the same in
the mbed.h file or anywhere else.
2020-11-06 17:25:21 +00:00
Hugues Kamba
fa98689639
CMake: Componentize Mbed OS into multiple CMake targets ( #13732 )
...
Aside from the core mbed-os CMake target, a number of targets have been created so they can optionally be included by application executables that require them using `target_link_libraries()`.
Co-authored-by: Martin Kojtal <martin.kojtal@arm.com>
Co-authored-by: Rajkumar Kanagaraj <rajkumar.kanagaraj@arm.com>
2020-11-06 17:25:21 +00:00
Hugues Kamba
e22b19d6db
CMake: Fix build failure due to BLE dir changes
2020-11-06 17:25:21 +00:00
Hugues Kamba
9b8c5acb99
CMake: Fix build failure due to mbed-trace, mbed-client-randlib, and nanostack dir changes
2020-11-06 17:25:20 +00:00
Hugues Kamba
ec376fb587
CMake: List missing files in sal-stack-nanostack
2020-11-06 17:25:20 +00:00
Hugues Kamba
0c8cb3134c
CMake: Fix build failure due to PSA dir move
2020-11-06 17:25:20 +00:00
Hugues Kamba
b3c614e921
CMake: Fix CORDIO_LL build failure
...
List missing CORDIO_LL source file in CMake source file.
2020-11-06 17:25:19 +00:00
Hugues Kamba
01ddb7d471
CMake: Fix NRF52840_DK build failure
...
* Remove duplicated ARM toolchain directory
* Link with archived cryptocell 310 libraries instead
of adding them as source files
* Provide default MBED_BOOT_STACK_SIZE definition
in scatter file as is done for GCC_ARM linker file
2020-11-06 17:25:19 +00:00
Martin Kojtal
f856d6b0a3
CMake: Fix include path for Cryptocell
2020-11-06 17:25:19 +00:00
Hugues Kamba
67a20580cf
CMake: Fix build failure due to lora, cryptocell, and nfc dirs move
2020-11-06 17:25:19 +00:00
Hugues Kamba
fbaeae5a8e
CMake: Fix failure due to MbedTLS rdir relocation
2020-11-06 17:25:19 +00:00
Hugues Kamba
eb4102be48
CMake: Fix failure due to BLE component dir move
2020-11-06 17:25:19 +00:00
Hugues Kamba
20e19de028
CMake: Fix breakage due to BLE dir move
2020-11-06 17:25:19 +00:00
Hugues Kamba
c30d9259e9
CMake: Fix build failure due to nanostack dir move
2020-11-06 17:25:19 +00:00
Hugues Kamba
76fd50a547
CMake: Fix access to cellular drivers
2020-11-06 17:25:18 +00:00
Hugues Kamba
e744208c07
CMake: Fix build failure due to drivers and lwipstack dirs move
2020-11-06 17:25:18 +00:00
Hugues Kamba
24c79a4b47
CMake: Fix build failure due to nanostack drivers move
2020-11-06 17:25:17 +00:00