Vincent Coubard
7e78433cec
BLE - replace some usages of Gap::Handle_t by ble::connection_handle_t
2019-02-26 13:18:17 +00:00
Vincent Coubard
bc098d0272
BLE - add static interface helper.
2019-02-26 13:18:17 +00:00
Arto Kinnunen
650f9d9887
Merge commit '514ed9930160b041a598b922a3b69789e2fb6fcf'
...
* commit '514ed9930160b041a598b922a3b69789e2fb6fcf':
Squashed 'features/nanostack/sal-stack-nanostack/' changes from c5ee9e4..2cd155b
2019-02-26 11:04:54 +02:00
Veijo Pesonen
517799fd06
NetworkStack: halts if unable to add an event to the event queue
2019-02-26 09:44:15 +02:00
Desmond Chen
0143229bd0
Fix Cordio Gatts descriptor configuring write permission
2019-02-26 11:30:57 +08:00
d-kato
78923d8135
Add missing license description to RZ/A1 driver
2019-02-26 11:52:29 +09:00
Cruz Monrreal
044d0c9cb1
Merge pull request #9778 from michalpasztamobica/add_missing_wifi_config_params
...
Add missing wifi parameters to test configs
2019-02-25 17:30:36 -06:00
Cruz Monrreal
d0881ad259
Merge pull request #9813 from paul-szczepanek-arm/cordio-cfg
...
BLE: Cordio build time configuration through mbed_lib.json
2019-02-25 17:28:56 -06:00
Cruz Monrreal
8ec8674e4e
Merge pull request #9833 from donatieng/remove_beetle
...
Remove Arm Beetle target for Mbed OS 5.12
2019-02-25 17:27:22 -06:00
Cruz Monrreal
e7d8d9c5d2
Merge pull request #9834 from SeppoTakalo/copyright
...
Add missing copyright header to STM32 driver
2019-02-25 17:27:05 -06:00
Cruz Monrreal
2b811daaf8
Merge pull request #9821 from cydriftcloud/send-hci-reset-after-patchram-download
...
PSOC6: send HCI reset after patch RAM download
2019-02-25 10:33:37 -06:00
paul-szczepanek-arm
f62217b3dd
typos
2019-02-25 15:33:52 +00:00
paul-szczepanek-arm
a7297186b5
fixed names
2019-02-25 15:30:55 +00:00
paul-szczepanek-arm
e75c534445
stray comma
2019-02-25 15:23:35 +00:00
Arto Kinnunen
9784e93ae0
Merge commit '7a7888227901179597fffc163a23dd15c8d055a9'
...
* commit '7a7888227901179597fffc163a23dd15c8d055a9':
Squashed 'features/nanostack/sal-stack-nanostack-eventloop/' changes from b8b664b..7745556
2019-02-25 15:53:04 +02:00
Michal Paszta
42404be824
Change all wifi and WiFi occurences to Wi-Fi
2019-02-25 14:54:18 +02:00
Arto Kinnunen
16e2a85ad1
Merge commit '12a2437b39d1ecccb0cfeee4d69e071af03b84de'
...
* commit '12a2437b39d1ecccb0cfeee4d69e071af03b84de':
Squashed 'features/frameworks/mbed-trace/' changes from 0a4f6be..642a459
2019-02-25 14:48:18 +02:00
Arto Kinnunen
b68e5edbc7
Merge commit '780e9afb8f3b8f09e66573e7d4ba096dd9a87dd7'
...
Nanostack v10.1.0 for Mbed OS 5.12
* commit '780e9afb8f3b8f09e66573e7d4ba096dd9a87dd7':
Squashed 'features/nanostack/sal-stack-nanostack/' changes from 513a38e..c5ee9e4
2019-02-25 14:24:47 +02:00
Seppo Takalo
7a33700bb4
Replace Copyright ARM with a proper Apache 2 license header
2019-02-25 14:17:42 +02:00
Oren Cohen
78ec812f3a
Add define to skip greentea sync
2019-02-25 14:16:45 +02:00
Seppo Takalo
b14df9e0de
Add missing copyright header to STM32 driver
2019-02-25 14:09:36 +02:00
Donatien Garnier
176e5779ce
Remove Arm Beetle target
...
Deprecation in preparation for Mbed OS 5.12 and move to IAR8 and ARMC6
2019-02-25 12:09:03 +00:00
Arto Kinnunen
433ab3e843
Merge commit 'e046a96f8bd369720d4bf65dd4441ad19ebe22e7'
...
* commit 'e046a96f8bd369720d4bf65dd4441ad19ebe22e7':
Squashed 'features/nanostack/coap-service/' changes from c45afcd..227cc3d
2019-02-25 13:40:37 +02:00
Arto Kinnunen
ab1cfc5c7e
Merge commit '14ff147a610d775c157ffc48b4e4521d0a6493f0'
...
* commit '14ff147a610d775c157ffc48b4e4521d0a6493f0':
Squashed 'features/frameworks/mbed-trace/' changes from 7a1bd34..0a4f6be
2019-02-25 13:01:32 +02:00
Arto Kinnunen
3b1ccfac0a
Merge commit 'd53d1dffb7405776dd84fa24a2eec7c18f445fed'
...
* commit 'd53d1dffb7405776dd84fa24a2eec7c18f445fed':
Squashed 'features/frameworks/nanostack-libservice/' changes from 1d4c358..dd98c37
2019-02-25 13:00:32 +02:00
Arto Kinnunen
220470c577
Merge commit '99c2f61463ded19baa49346f6210f9eb3e62161f'
...
* commit '99c2f61463ded19baa49346f6210f9eb3e62161f':
Squashed 'features/nanostack/sal-stack-nanostack-eventloop/' changes from 778c4db..b8b664b
2019-02-25 12:56:24 +02:00
paul-szczepanek-arm
6842c8718b
revert macros
2019-02-25 09:52:21 +00:00
paul-szczepanek-arm
6a2b6b891a
use existing macro names
2019-02-25 09:49:16 +00:00
David Saada
671c5a0510
Remove unnecessary prints in FileSystemStore class
2019-02-24 14:23:40 +02:00
Lei Zhang
a47b365776
PSOC6: send HCI reset after patch RAM download
...
After the patch RAM download is completed, a HCI reset should be sent in order to initialize the registers. Some of the initialization won't be called if the HCI reset is not sent after firmware download.
2019-02-22 23:43:52 -08:00
Deepika
f7a6d254f6
rand() by default does increment of 1, randomizing more
...
Random number generation in case of IAR 8, requires TLS support.
Thread local storage is not part of Mbed OS, test is updated to have random
numbers sparse, but in future random number creation should be moved to main
thread, or use some other logic for randomization instead of rand() call.
2019-02-22 16:44:54 -06:00
paul-szczepanek-arm
4b0296a6e1
prepared writes options
2019-02-22 13:52:21 +00:00
paul-szczepanek-arm
4470f64581
mention config in readme
2019-02-22 11:33:23 +00:00
paul-szczepanek-arm
86546440d7
put cordio cfg in mbed_lib.json
2019-02-22 11:28:28 +00:00
Jaeden Amero
e5c1e0b7a7
crypto: Update to Mbed Crypto 1.0.0d6
2019-02-22 09:54:01 +00:00
Jaeden Amero
c101a224bc
crypto: Update to Mbed Crypto 1.0.0d5
2019-02-22 09:53:59 +00:00
Michal Paszta
08b06e25d0
Document network parameters in netsocket/mbed_lib.json
2019-02-22 10:13:21 +02:00
Cruz Monrreal
870bd05904
Merge pull request #9708 from davidsaada/david_protected_storage
...
Implement PSA protected storage & restructure PSA storage implementation
2019-02-21 17:30:56 -06:00
Cruz Monrreal
50af2c341c
Merge pull request #9752 from mirelachirica/add_comment_fix_warning
...
Add comment fix warning
2019-02-21 17:30:34 -06:00
David Saada
41eb5cbfd9
Implement PSA protected storage & restructure PSA storage implementation
...
- Move all PSA storage code under psa/storage directory
- Create a global PSA error codes header, eliminating ITS specific ones
- Create a common header file for PSA storage type definitions,
eliminating ITS specific ones
- Create a common implementation for PS & ITS
- Implement protected storage feature
- Change ITS test to be common to PS as well
2019-02-21 20:58:59 +02:00
Martin Kojtal
d030c04a60
Merge pull request #9219 from hasnainvirk/lorawanbase_migration
...
LoRaWAN: Retiring LoRaWANBase class
2019-02-21 13:55:11 +01:00
Martin Kojtal
dbd92c746b
Merge pull request #9387 from tymoteuszblochmobica/Sockets
...
Multihoming initial release
2019-02-21 13:50:03 +01:00
Jaeden Amero
fdc57f88cf
crypto: Update to Mbed Crypto 1.0.0d4
2019-02-20 22:21:16 +02:00
Cruz Monrreal
b088bd493a
Merge pull request #9759 from michalpasztamobica/memory_handling_fixes
...
Multiple memory handling fixes
2019-02-20 12:07:45 -06:00
Cruz Monrreal
b1d0d9e95c
Merge pull request #9776 from ConradBraam/adv_builder
...
adv builder helper now returns an object
2019-02-20 12:04:51 -06:00
Martin Kojtal
5ada4bf9af
Merge pull request #9746 from blind-owl/retire_cellularbase_class
...
Cellular: retire CellularBase class
2019-02-20 15:30:43 +01:00
Conrad Braam
57033ee91a
adv builder helper now returns an object
2019-02-20 13:54:38 +00:00
Tymoteusz Bloch
641189c357
Multihoming change parameter orded in gethostbyname
2019-02-20 14:37:33 +02:00
Michal Paszta
fa6a3f5604
Multiple memory handling fixes
...
Based on valgrind reports running on unit tests following changes were introduced:
* TLSSocketWrapper frees allocated cert buffer in case of errors from mbedtls,
* nsapi_addr has a mem_init() function, initializing all of its memory during construction.
2019-02-20 14:15:57 +02:00
Martin Kojtal
2d30d0ff99
Merge pull request #9762 from vmedcy/psoc6-target-updates
...
PSOC6: update the psoc6pdl and HAL to the latest version
2019-02-20 11:23:54 +01:00
Jaeden Amero
4a25069611
crypto: Update Mbed Crypto to 1.0.0d3
2019-02-20 11:31:30 +02:00
Martin Kojtal
4b83fe1103
Merge pull request #9763 from paul-szczepanek-arm/gattserver-fix
...
BLE: fixed initialisation order in GattServer
2019-02-20 09:40:44 +01:00
Jari Poyhonen
7a195ae227
Cellular: fix for binary compability requirement for CY8CKIT_062_4343W
2019-02-20 10:03:34 +02:00
Cruz Monrreal
2234dac127
Merge pull request #9751 from AriParkkila/athandler-set_at_timeout
...
Cellular: Fix ATHandler set/restore_at_timeout with mutex lock
2019-02-19 15:29:38 -06:00
Cruz Monrreal
e3bc37b4de
Merge pull request #9655 from mirelachirica/nonip_doxygen_updates
...
Cellular: Non-IP doxygen updates
2019-02-19 15:29:14 -06:00
Cruz Monrreal
feae56eea1
Merge pull request #9493 from RonEld/add_platform_initialization_in_trng_test
...
Initialize platform in trng test
2019-02-19 15:27:40 -06:00
Cruz Monrreal
62aae6ae3b
Merge pull request #9753 from artokin/update_nanostack_hal_license_and_copyright
...
Update Nanostack_HAL licenses and copyright year
2019-02-19 15:26:55 -06:00
paul-szczepanek-arm
db4aecb275
fixed initialisation order
2019-02-19 17:26:43 +00:00
Volodymyr Medvid
cefc7452c9
PSOC6: do not reconfigure BT GPIO pins in CYW43XXX HCIDriver
2019-02-19 17:59:04 +02:00
Tymoteusz Bloch
49141376ee
Multihoming initial release
...
Added Multihoming feature to LWIP (ability to use more than one network interfaces) for increasing networking reliability.
This involves:
LWIP interface
LWIP IP routing
DNS storage
Sockets (bind to interface name possibility)
possibility to add non default network interface
cellular middleware modifications if cellular connection is used
2019-02-19 17:39:46 +02:00
Martin Kojtal
400fd82972
Merge pull request #9705 from AriParkkila/cellular-socket-gt
...
Cellular: Fix cellular stack and drivers for netsocket tests
2019-02-19 15:42:56 +01:00
Martin Kojtal
23c494b60a
Merge pull request #9748 from desmond-blue/fix_Cordio_ATTS_callback
...
BLE:Cordio: ATTS setting for write cback should use bitwise or
2019-02-19 15:42:06 +01:00
Martin Kojtal
723236f855
Merge pull request #9307 from mtomczykmobica/ONME-3949
...
Configuration options for STM_EMAC buffer counts
2019-02-19 14:09:24 +01:00
Arto Kinnunen
932b3a2938
Update Nanostack_HAL licenses and copyright year
...
-Add Apache License to files that were missing a licence
-Update copyright year
2019-02-19 12:53:38 +02:00
Mirela Chirica
c75e4a87ee
Cellular: Remove compiling warning
2019-02-19 12:23:55 +02:00
Jari Poyhonen
b0c7c266c6
Cellular: add SPDX identifier
2019-02-19 10:42:04 +02:00
Mirela Chirica
9ddb843cc8
Cellular: Added explanatory comment for AT cellular stack's socket_open routine
2019-02-19 10:18:08 +02:00
Ari Parkkila
d48adcce2c
Cellular: Fix ATHandler set/restore_at_timeout with mutex lock
2019-02-19 00:16:45 -08:00
Marcin Tomczyk
a5f93e0b07
ONME-3949 Configuration options for STM_EMAC buffer counts
2019-02-19 08:18:18 +01:00
Desmond Chen
79e8bf4bc9
BLE:Cordio: ATTS setting for write cback should use bitwise or
2019-02-19 14:19:44 +08:00
Ari Parkkila
605a42d38f
Cellular: Fix Gemalto/Cinterion socket open defer
2019-02-18 06:24:42 -08:00
Jari Poyhonen
90c9a85397
Cellular: retire CellularBase class
...
It was decided to retire CellularBase class which served as a pure
virtual interface class from which Cellular network stack
implementations would get inherited. However, the current view is that
we may be the only user of it so we could retire CellularBase.
2019-02-18 11:50:43 +02:00
Ron Eldor
77f9faf46c
Use a mutex in platform setup \ teardown functions
...
Use a singleton Mutex in platforms_alt functions, to be shared
with the trng function, to save RAM. Rename `platform_alt.c`
to `platform_alt.cpp` as the mutex is in a `singletonPtr`
template class.
2019-02-18 11:43:32 +02:00
Ron Eldor
c94b5861e4
Add mbedtls platform setup and teardown to modules
...
Add calls to `mbedtls_platform_setup()`
and `mbedtls_platform_teardown()` to all modules and tests using Mbed TLS.
2019-02-18 11:43:32 +02:00
Mirela Chirica
57a93bbd0a
Cellular: Non-IP doxygen updates
2019-02-18 09:53:59 +02:00
Ari Parkkila
cdc28b5baf
Cellular: Fix CellularDevice mutex unlock
2019-02-17 23:53:53 -08:00
Ari Parkkila
50a276ead8
Cellular: Fix Quectel BG96 driver RTS/CTS setup
2019-02-17 23:53:11 -08:00
Ari Parkkila
9329430871
Cellular: Fix Quectel M26 drivers
2019-02-17 23:52:08 -08:00
Ari Parkkila
3bcf51385e
Cellular: Handling of TCP endpoint closed
2019-02-17 23:51:08 -08:00
Ari Parkkila
5aaf42c418
Cellular: ATHandler debugging relieved
2019-02-17 23:49:01 -08:00
Cruz Monrreal
fdd2a9402a
Merge pull request #9728 from AriParkkila/at-handler-clear-sigio
...
Cellular: Fix sigio to be released in ATHandler destructor
2019-02-15 12:41:44 -06:00
Cruz Monrreal
7f248970ec
Merge pull request #9660 from blind-owl/clean_cellular_trace
...
Cellular: clean sensitive information from trace
2019-02-15 12:28:25 -06:00
Cruz Monrreal
6d619eba32
Merge pull request #9709 from hasnainvirk/nfc_doxy
...
Reverting to original doxy configuration
2019-02-15 12:26:46 -06:00
Ari Parkkila
0c697f4421
Cellular: Fix sigio to be released in ATHandler destructor
2019-02-15 05:07:36 -08:00
Martin Kojtal
a3500a3040
Merge pull request #9654 from anttiylitokola/mbed-coap-to-4.7.4
...
Update mbed-coap to version 4.7.4
2019-02-15 10:58:06 +01:00
Martin Kojtal
dc1574456f
Merge pull request #9601 from hasnainvirk/mem_leak_link_adr
...
LoRaWAN: Proper size checks for link ADR cmds & correct include path in Unittests framework
2019-02-15 10:22:58 +01:00
Martin Kojtal
a7b949028c
Merge pull request #9537 from paul-szczepanek-arm/mtu-events
...
BLE: Add MTU events
2019-02-15 10:17:24 +01:00
Cruz Monrreal
67abaf5fa7
Merge pull request #9706 from jarvte/fix_powering_onboard_modems
...
Cellular: fix onboard modems powering failure.
2019-02-14 20:26:51 -06:00
Hasnain Virk
726eff9305
Proper size checking for link ADR commands
...
In a specific branch path 'adr_settings' in link_adr_request() API, the
structure adr_settings of type link_adr_params_t will be rendered
uninitialized. To prevent this we initialize the construct as zero.
In addition to that, to handle the case properly we should check for the
command identifier and the command payload length anticipating contiguous
blocks of adr commands. If we find a discrepency in size, we should
abort.
2019-02-14 17:15:42 +02:00
Cruz Monrreal
c07410d78c
Merge pull request #9628 from kfnta/bare-metal-updates
...
Bare metal mbed_lib updates
2019-02-14 09:13:34 -06:00
Cruz Monrreal
39441655bf
Merge pull request #9684 from KariHaapalehto/ethernet_tasklet_correction
...
enet_tasklet_disconnect() should generate event to tasklet.
2019-02-14 09:13:15 -06:00
Hasnain Virk
f36e896ff1
Reverting to original doxy configuration
...
This commit essentially brings back old code. We did an attempt to
resolve doxy issues with nfc durint docathlon, but it introduced more
issues and yak shaving rather than being a useful exercise.
Unfortunately the previous attempt got merged. This commit attempts to
restore the style maintained by original developers. From here they can
take over.
2019-02-14 17:06:38 +02:00
paul-szczepanek-arm
d801ed340e
removed redundant qualifier tripping up GCC
2019-02-14 12:34:35 +00:00
paul-szczepanek-arm
cdd5c9f3b0
fix nrf52 mtu
2019-02-14 12:34:35 +00:00
paul-szczepanek-arm
193092f6d9
added spdx licence ident
2019-02-14 12:34:35 +00:00
paul-szczepanek-arm
f52b20c169
move cpp to sources
2019-02-14 12:34:35 +00:00
paul-szczepanek-arm
1cea53b6a7
use grandfathered convention for class members names and initialise them
2019-02-14 12:34:34 +00:00
paul-szczepanek-arm
3808db90b2
require pal event handler to be complete
2019-02-14 12:34:34 +00:00
paul-szczepanek-arm
de60b2a56a
remove unused converter
2019-02-14 12:34:34 +00:00
paul-szczepanek-arm
03b747a6f6
Get the pal event handler from pal gattclient
2019-02-14 12:34:34 +00:00
paul-szczepanek-arm
b628285254
route mtu changed events to server and client instead of gap
2019-02-14 12:34:33 +00:00
paul-szczepanek-arm
a3f635eb88
fix type name
2019-02-14 12:34:33 +00:00
paul-szczepanek-arm
c10fc2eb8e
add API to trigger MTU negotiation
2019-02-14 12:34:33 +00:00
paul-szczepanek-arm
02d5391cd0
fix possible truncation
2019-02-14 12:34:33 +00:00
paul-szczepanek-arm
b6df6d54a1
change event names
2019-02-14 12:34:32 +00:00
paul-szczepanek-arm
356ec39d02
fix style
2019-02-14 12:34:32 +00:00
paul-szczepanek-arm
21ad886e9e
handle mtu and data len events for softdevice
2019-02-14 12:34:32 +00:00
paul-szczepanek-arm
06a2a403e9
fix typos
2019-02-14 12:34:31 +00:00
paul-szczepanek-arm
108d6908be
route ble events to gap
2019-02-14 12:34:31 +00:00
paul-szczepanek-arm
c452d8ff0e
add mtu events
2019-02-14 12:34:31 +00:00
Teppo Järvelin
e4018bd9bb
Cellular: fix onboard modems powering failure
...
Don't call soft power on if device was already powered.
Some modems need to wait before sending anything to modem after soft powering.
2019-02-14 12:39:37 +02:00
Jari Poyhonen
b6a0892e86
Cellular: clean sensitive information from trace
...
Information removed from the cellular subsystem trace log:
* SIM pin
* APN username and password
Added get_debug() to ATHandler.h to get the current trace state in order
to support suspend/resume of trace output.
2019-02-14 09:22:54 +02:00
Cruz Monrreal
d36ebe707b
Merge pull request #9691 from naveenkaje/fix_btle_clockconfig_warning
...
btle: fix build warning about unused clockConfiguration
2019-02-13 19:15:06 -06:00
Cruz Monrreal
b66678d6d7
Merge pull request #9696 from naveenkaje/thread_extn_warning_fix
...
features: nanostack: fix warning in thread_extension.h
2019-02-13 18:29:53 -06:00
Cruz Monrreal
9be82d96d8
Merge pull request #9694 from naveenkaje/fix_icmpv6_warning
...
nanostack: icmpv6: fix build warning
2019-02-13 18:29:33 -06:00
Cruz Monrreal
e310458a88
Merge pull request #9692 from naveenkaje/fix_ublox_celluar_warning
...
target: UBLOX: Fix build warning in UBLOX_AT_CellularNetwork.cpp
2019-02-13 17:12:51 -06:00
Cruz Monrreal
e34ecae6c2
Merge pull request #9681 from NeilMacMullen/cross-compilation
...
Make a few trivial syntactic changes to better support cross-compilation
2019-02-13 17:10:23 -06:00
Cruz Monrreal
583980fa2f
Merge pull request #9576 from yossi2le/yossi_remove_redundant_ifdef
...
Remove redundant ifdef DEVICE_TRNG from DeviceKey
2019-02-13 17:09:57 -06:00
Oren Cohen
bb775c2e69
Storage mbed_lib.json files
2019-02-13 20:36:00 +02:00
Cruz Monrreal
b820ec8922
Merge pull request #9561 from theotherjimmy/test-resources
...
Tools changes for bare metal
2019-02-13 12:31:54 -06:00
Naveen Kaje
1f015aa0b7
features: nanostack: fix warning in thread_extension.h
...
Fix the following build warning seen with GCC
Compile [ 51.2%]: thread_bootstrap.c
[Warning] thread_extension.h@88,44: statement with no effect [-Wunused-value]
2019-02-13 10:48:33 -06:00
Naveen Kaje
0563276466
btle: fix build warning about unused clockConfiguration
...
Fix the following build warning seen with both GCC and ARM_CC
[Warning] btle.cpp@115,0: #177-D: variable "clockConfiguration" was declared but never referenced
2019-02-13 10:42:48 -06:00
Naveen Kaje
8d0c94e8dc
nanostack: icmpv6: fix build warning
...
Fix the following build warning seen when building with GCC
Compile [ 54.2%]: icmpv6.c
[Warning] icmpv6.c@1091,16: this statement may fall through [-Wimplicit-fallthrough=]
2019-02-13 10:34:51 -06:00
Yossi Levy
d8d91c336a
Adding MBEDTLS_ENTROPY_NV_SEED macro check in device key to allow key derivation when there is no TRNG but there is DRBG
2019-02-13 14:18:45 +02:00
Kari Haapalehto
31c40130d6
enet_tasklet_disconnect() should generate event to tasklet.
...
enet_tasklet_disconnect() is now generating event to ethernet_tasklet,
which will then handle it.
2019-02-13 13:57:03 +02:00
Cruz Monrreal
e84319fe70
Merge pull request #9326 from hasnainvirk/nfc_doxy
...
Doxygen correction
2019-02-12 20:27:17 -06:00
Cruz Monrreal
3e6cd4e89d
Merge pull request #9501 from caixue1102/mbed-os-rda
...
Add WIFI support for RDA target UNO_91H
2019-02-12 20:05:27 -06:00
Naveen Kaje
02e42fef3e
target: UBLOX: Fix build warning in UBLOX_AT_CellularNetwork.cpp
...
Fix this build warning seen when building with ARMCC
Compile [ 13.7%]: UBLOX_AT_CellularNetwork.cpp
[Warning] UBLOX_AT_CellularNetwork.cpp@65,0: #111-D: statement is unreachable
2019-02-12 15:50:23 -06:00
Cai
d92e33dcee
Add WIFI support for RDA target UNO_91H
2019-02-12 22:59:53 +08:00
Neil MacMullen
f29c5b22a1
Keep style linter happy
2019-02-12 14:37:07 +00:00
Neil MacMullen
a7f4cbcdce
Make a few trivial syntactic changes to better support cross-compilation
2019-02-12 12:01:05 +00:00
Hasnain Virk
2670eaf82d
Doxygen correction
...
Adding to proper group so that the API doxygen appears into the class
hierarchy group rather than data strutures.
2019-02-12 12:53:53 +02:00
Martin Kojtal
e1d891b858
Merge pull request #9587 from naveenkaje/fix_build_warning_QUECTEL
...
targets: QUECTEL: Fix build warning
2019-02-12 09:52:06 +01:00
Martin Kojtal
1bbb76dfd1
Merge pull request #9514 from mirelachirica/bg96_netsocket_tests
...
BG96 netsocket tests
2019-02-12 09:06:09 +01:00
Cruz Monrreal
a12d9bb2a0
Merge pull request #9650 from offirko/offir_fix_random_block_in_general_bd_test
...
Multi thread Block Device Tests Fix - Ensure unique block address
2019-02-11 18:46:34 -06:00
Cruz Monrreal
92e1464024
Merge pull request #9584 from michalpasztamobica/tlssocket_would_block
...
TLSSocket send/recv return WOULD_BLOCK error instead of NO_CONNECTION
2019-02-11 18:45:50 -06:00
Cruz Monrreal
58cba25799
Merge pull request #9372 from pan-/fix-cryptotoolbox
...
BLE - Nordic: Release crypto cell when not in use.
2019-02-11 18:45:17 -06:00
Martin Kojtal
10bb66a053
Merge pull request #9424 from SeppoTakalo/ONME-4125
...
Allows multiple network status listeners
2019-02-11 10:41:35 +01:00
Antti Yli-Tokola
8073ce20b6
Update mbed-coap to version 4.7.4
...
- Remove dependency to yotta tool
- Do not remove stored (GET) blockwise message when EMPTY ACK received. When non piggybacked response mode is used original GET request must not be removed from the stored message list.Message is needed for building the next (GET) blockwise message.
- Move definitions to sn_config.h
2019-02-11 10:37:43 +02:00
offirko
4bbc2cdc5b
Fix general block device test to ensure unique block address per test
2019-02-10 10:38:46 +02:00
Mirela Chirica
b473aca700
Cellular: Fix UDPSOCKET_SENDTO_INVALID test for BG96
2019-02-08 15:43:01 +02:00
Mirela Chirica
28b4e28207
Cellular: Fix socket's send and receive boundaries for BG96
2019-02-08 13:02:18 +02:00
Mirela Chirica
6af725822b
Cellular: Fix socket bind tests for BG96
2019-02-08 13:02:18 +02:00
Anna Bridge
3252530e3a
Merge pull request #9481 from vmedcy/add_cypress_kits
...
Add Cypress PSoC 6 targets
2019-02-08 10:43:28 +00:00
Volodymyr Medvid
a16811532b
PSoC6: add implementation of BLE HCI driver for CYW4343W/CYW43012
...
Add Cypress HCI driver implementation in TARGET_Cypress directory.
Update targets.json to enable CORDIO stack for Cypress PSoC 6 boards
with CYW43XXX radios with compatible HCI driver implementation:
CYW4343W and CYW43012.
2019-02-07 18:24:56 +02:00
Volodymyr Medvid
a304c2216a
CYW4343X: move HCI driver to TARGET_STM
...
TARGET_CYW4343X Bluetooth HCI driver is specific to STM32 targets
derived from USI_WM_BN_BM_22. Move the driver implementation to
TARGET_STM folder to not interfere with Cypress implementation at
TARGET_Cypress/TARGET_CYW43XXX/HCIDriver.cpp that is enabled for
PSoC 6 targets which also include the CYW4343X label.
2019-02-07 18:24:55 +02:00
Nir Sonnenschein
e6c2a1de40
Merge pull request #9566 from kfnta/alzix/crypto-warn
...
Fix warning in Crypto when using boot seed injection
2019-02-07 18:18:41 +02:00
Nir Sonnenschein
8c2ad14ace
Merge pull request #9568 from ARMmbed/feature-cellular-refactor
...
Merge feature cellular refactor
2019-02-07 18:17:32 +02:00
Jimmy Brisson
724487d545
Require dependencies from nanostack mbed_lib.json
2019-02-07 09:39:10 -06:00
Oren Cohen
32463d64dc
Add missing mbed_lib.json for frameworks and nanostack
...
* mbed-client-randlib
* nanostack-libservice
* coap-service
* nanostack-interface
2019-02-07 09:25:14 -06:00
Oren Cohen
94c17549dc
Fix nanostack libs
2019-02-07 09:23:52 -06:00
Michal Paszta
9db97247a2
TLSSocket returns WOULD_BLOCK error instead of ALREADY
...
In case mbedtls fails to execute handshake advertising
MBEDTLS_ERR_SSL_WANT_READ or MBEDTLS_ERR_SSL_WANT_WRITE,
TLSSocketWrapper::continue_handshake returns NSAPI_ERROR_WOULD_BLOCK.
2019-02-07 10:33:37 +02:00
Seppo Takalo
43a53df505
Fix ns_list for C++03 compilers, like IAR 7
2019-02-06 15:26:06 +02:00
Alexander Zilberkant
4a204015ac
Simplify entropy seed injection configuration
...
Move NVSEED callbacks configuration to a header file
2019-02-05 15:48:41 +02:00
Alexander Zilberkant
0622cc9865
Add header guard
2019-02-05 15:48:41 +02:00
Alexander Zilberkant
6e87615dc4
Fix compilation warning
...
Fix warning in entropy.c caused by injecting seed read & write callbacks
2019-02-05 15:48:41 +02:00
Martin Kojtal
95906f1062
Merge pull request #9579 from JarkkoPaso/timer_fhss_singleton
...
FHSS timer: Use singleton pointer
2019-02-05 10:53:42 +01:00
Martin Kojtal
a0ec77d9a8
Merge pull request #9378 from oscarh/master
...
Add get_connection_status() override in CellularContext
2019-02-05 10:39:00 +01:00
Martin Kojtal
dcba5ffa3c
Merge pull request #9529 from kfnta/its_crypto
...
RollUp PR Crypto with ITS
2019-02-04 17:14:05 +01:00
Martin Kojtal
026000d4d9
Merge pull request #9388 from SenRamakri/sen_ArmC6Fixes
...
Fix for ARMc6 compiler errors
2019-02-04 14:33:23 +01:00
Jarkko Paso
17e4e287de
FHSS timer: Use singleton pointer with timer objects
...
This is to save statically allocated memory. Without SingletonPtr the timer objects would always be included in build.
2019-02-04 12:13:29 +02:00
Senthil Ramakrishnan
2030d03590
Modified fixes with review comments
2019-02-01 17:49:49 -06:00
Senthil Ramakrishnan
ea30ed7a36
Fix for ARMc6 compiler errors
2019-02-01 17:46:50 -06:00
Lin Gao
85762a86b1
Update bootloader for ST disco board to fix FOTA
2019-02-01 15:32:44 -06:00
Naveen Kaje
08c9ae3927
targets: QUECTEL: Fix build warning
...
Fix the following warning seen when built with GCC_ARM with mbed-cli v1.8.3
$ mbed compile -c -t GCC_ARM -m K64F
<snip>
[Warning] QUECTEL_M26_CellularStack.cpp@364,9: variable 'sent_acked' set but not used [-Wunused-but-set-variable]
<snip>
2019-02-01 14:14:37 -06:00
Seppo Takalo
2744200cb7
Add NetworkInterface::attach() back, as it might be referred from binaries
2019-02-01 16:02:45 +02:00
Martin Kojtal
a0c4646e27
Merge pull request #9551 from theamirocohen/fix_gen_test_for_flashiap
...
Modify general blockdevice tests to run all storage components
2019-02-01 08:24:09 +01:00
Cruz Monrreal
695179bf21
Merge pull request #9471 from mtomczykmobica/ONME-3868
...
lwipstack: mem-size set to the to minimal working size with DTLS
2019-01-31 10:21:00 -06:00
Cruz Monrreal
66792b493e
Merge pull request #9445 from davidsaada/david_nvstore_fix_area_calc
...
NVStore: fix area calculation function
2019-01-31 10:20:44 -06:00
Oren Cohen
156d3b785b
Replace psa_prot_internal_storage.h with psa/internal_trusted_storage.h
2019-01-31 17:17:54 +02:00
Jaeden Amero
84ec1f7f1f
crypto: Update to Mbed Crypto 1.0.0d2
2019-01-31 17:17:52 +02:00
Seppo Takalo
06aea98f99
Call "new" instead of no-throw version and the MBED_ERROR.
...
Standard new operator already calls MBED_ERROR in failure.
2019-01-31 15:21:12 +02:00
Seppo Takalo
9c98d1572b
Allow multiple network status listeners
...
Allow more than one callback to be register to NetworkInterfaces.
This introduces new APIs:
void NetworkInterface::add_event_listener(...);
void NetworkInterface::remove_event_listener(...);
Which internally calls interfaces attach() functions.
2019-01-31 15:04:24 +02:00
Amir Cohen
a07f0fafaa
asyle issues
2019-01-31 14:40:33 +02:00
Amir Cohen
f1f60bf341
Modify general blockdevice tests to run all storage components
...
All tests will run for each storage component available on device excapt for test_get_type_functionality that will run once on the default blockdevice.
2019-01-31 14:36:37 +02:00
Ari Parkkila
47a8f24b1e
Cellular: Fix astyle
2019-01-31 04:15:01 -08:00
Martin Kojtal
a12ab30f98
Merge pull request #9414 from SeppoTakalo/ONME-4013
...
Clarify asynchronous Networkinterface::connect() and disconnect() API
2019-01-31 11:30:29 +01:00
Martin Kojtal
272bc14cde
Merge pull request #9546 from jarlamsa/mesh_api_fixes
...
Mesh api fixes
2019-01-31 11:19:55 +01:00
Martin Kojtal
94baadfc34
Merge pull request #9549 from paul-szczepanek-arm/fix-scan-timeout
...
BLE: fix missing scan timeout for 4.2 controllers using new API
2019-01-31 11:19:29 +01:00
Martin Kojtal
7c578cf2c6
Merge pull request #9527 from bridadan/remove_yotta_references
...
Remove yotta references within testing frameworks
2019-01-31 11:16:54 +01:00
Martin Kojtal
50b5f57c28
Merge pull request #9457 from blind-owl/fix_valgrind_defects_from_cellular
...
Fix valgrind defects from cellular
2019-01-31 11:12:00 +01:00
Martin Kojtal
1af3842b52
Merge pull request #9550 from michalpasztamobica/nanostack_double_connection_attempt
...
Prevent double attempt to connect mesh api
2019-01-31 11:08:37 +01:00
David Saada
48a3ae9636
FlashIAP driver: Add retries to erase and program operations.
...
Few boards may fail the write actions due to HW limitations (like critical
drivers that disable flash operations). Just retry a few times until success.
In addition, remove the redundant retries in NVStore (not needed now).
2019-01-30 16:05:27 +02:00
Michal Paszta
53a82faa5a
Prevent double attempt to connect mesh api
...
Socket network interface tests were failing due to DICONNECTED event
being advertised, where GLOBAL_UP was expected. It turned out that
nanostack receives two events: APPL_EVENT_CONNECT and
APPL_BACKHAUL_INTERFACE_PHY_UP. The second attempt to connect obviously
returns errors, but it also causes events to be sent out to the
application. The second attempt should not take place in case the
bootstrap is already started.
I also fixed two reports being sent with DISCONNECT status, while they
are actually something else.
2019-01-30 15:08:11 +02:00
paul-szczepanek-arm
d9c919b7e1
review fixes
2019-01-30 12:19:04 +00:00
paul-szczepanek-arm
e1a8fb5a7a
check scanning status first
2019-01-30 11:45:26 +00:00
paul-szczepanek-arm
7f888f86bf
scan timeout for 4.2 controllers using new API
2019-01-30 11:37:17 +00:00
Jarno Lamsa
740488d061
Set tasklet parameters before connecting
...
Set tasklet parameters before connecting to prevent the parameters to be set to 0.
The tasklet parameters are reset to 0 when wisun_tasklet_connect gets called,
thus those need to be set in the wisun_tasklet_configure_and_connect_to_network
before they are used. This is also done this way in other tasklets.
2019-01-30 13:06:17 +02:00
Jarno Lamsa
d7af9418da
Remove yotta-specific lines from .gitignore
2019-01-30 13:04:08 +02:00
Martin Kojtal
30070c6055
Merge pull request #9533 from mirelachirica/remove_obsolete_cellular_unittests
...
Cellular: Remove makefile and mbedignore refering to obsolete cellula…
2019-01-30 10:07:02 +01:00
Mirela Chirica
2bdfafc9fc
Cellular: Remove makefile and mbedignore refering to obsolete cellular unit tests
2019-01-29 13:23:39 +02:00
Kevin Bracey
983503f9ee
Mutex-protect mbedtls_hardware_poll
...
Like all HAL APIs, the calls in trng_api.h are not expected to
be thread-safe.
All current accesses to the TRNG HAL are currently via
`mbedtls_hardware_poll`. Mbed TLS does not currently serialise these
calls itself, as `MBEDTLS_THREADING_C` is not enabled. But even if
Mbed TLS's own accesses were serialised, there are other direct
users of `mbedtls_hardware_poll` such as randLIB, that need to use
direct calls due to lack of API to extract entropy from Mbed TLS.
As such it makes sense to treat `mbedtls_hardware_poll` as a de facto
public Mbed OS API, akin to the C++ veneers on top of the HAL, and add a
PlatformMutex there so that it is safe for multithreaded use.
2019-01-29 12:45:48 +02:00
Jaeden Amero
c3223072dc
crypto: Update to Mbed Crypto 1.0.0d1
2019-01-29 11:43:26 +02:00
Jaeden Amero
4a1584696c
crypto: importer: Update with fetch
...
Instead of doing a "pull --rebase" to update to the latest development
branch, do a "fetch" followed by a "checkout" to update to the specified
release. This enables us to get any new tags created since the last
update to the development branch, and removes the noise of updating a
local "development" branch.
2019-01-29 11:43:25 +02:00
Jaeden Amero
c74993bac4
crypto: Re-import Mbed Crypto 0.1.0b2
...
Use the Mbed-Crypto-specific importer script to re-import Mbed Crypto
0.1.0b2 to its new location.
2019-01-29 11:43:24 +02:00
Jaeden Amero
b5cf455bb7
tls/crypto: Make mbed-crypto importer independent
...
Obtain the version of Mbed Crypto to use not from the Mbed TLS
submodule, but independently through the Mbed Crypto importer instead.
2019-01-29 11:43:24 +02:00
Brian Daniels
4a0bb5b35d
Update utest README
2019-01-28 16:35:35 -06:00
Brian Daniels
1a9df4269b
Correct example given in greentea-client readme
2019-01-28 16:35:34 -06:00
Brian Daniels
b694a34873
Remove reference to yotta and mbed-drivers in greentea-client
2019-01-28 16:35:20 -06:00
Brian Daniels
96a71ce59a
Removing references to yotta and minar within utest
2019-01-28 16:31:20 -06:00
Cruz Monrreal
66cda8a8fe
Merge pull request #9499 from bridadan/remove_yotta_modules
...
Remove unused yotta module metadata
2019-01-28 10:37:30 -06:00
Cruz Monrreal
545d229ab1
Merge pull request #9497 from ARMmbed/AnotherButler-patch-2
...
Remove yotta from README.md
2019-01-28 10:36:36 -06:00
Cruz Monrreal
f5730a91b2
Merge pull request #9474 from VeijoPesonen/fix-newlines_at_end-of-files
...
Fix newlines at end of files
2019-01-28 10:33:37 -06:00
Cruz Monrreal
b49d949b50
Merge pull request #9393 from pan-/fix-safe-enum-type-safety
...
BLE: Fix SafeEnum type safety
2019-01-28 10:31:52 -06:00
Ari Parkkila
52ee61e1ae
Fix NetworkInterface::set_default_parameters binary compatibility
2019-01-28 03:27:10 -08:00
Martin Kojtal
0bc9bcc0ed
Merge pull request #9498 from ARMmbed/AnotherButler-patch-3
...
Remove outdated text and fix spelling in README.md
2019-01-28 11:05:15 +01:00
Amanda Butler
36438a1d70
Remove outdated content from README.md
...
Remove requested outdated content, and update TOC to reflect changes.
2019-01-25 09:57:19 -06:00
Jimmy Brisson
06ea053419
Minor fixes
2019-01-25 09:42:47 -06:00
Ari Parkkila
95839662c6
Cellular: Fix cellular specific Greentea tests
2019-01-24 23:34:44 -08:00
Jan Jongboom
ca987568d8
TCPSocket.cpp setting socket should terminate with semicolon
2019-01-24 14:25:34 -08:00
Amanda Butler
8b35bbc5b5
Remove .json blob from README.md
...
Make change suggested in comments.
2019-01-24 15:54:02 -06:00
Brian Daniels
99d6145cf3
Update features/frameworks/greentea-client/README.md
...
Co-Authored-By: AnotherButler <Amanda.Butler@arm.com>
2019-01-24 15:53:01 -06:00
Brian Daniels
ee5281abef
Remove unused yotta module metadata
2019-01-24 15:30:20 -06:00
Amanda Butler
25bb0d23c5
Remove outdated text and fix spelling in README.md
...
Remove reference to yotta, and fix spelling for correct branding.
2019-01-24 15:29:09 -06:00
Amanda Butler
39851e4c18
Remove yotta from README.md
...
Remove all references to yotta.md
2019-01-24 15:25:30 -06:00
Cruz Monrreal
e241b13865
Merge pull request #9452 from RonEld/crypto_platform_ranaming
...
Crypto platform renaming
2019-01-24 13:27:12 -06:00
David Saada
765b48336f
NVStore: fix area calculation function
...
Don't allocate the sector map array in this function,
as it was buggy and redundant. Separate user config vs. automatic allocation
cases instead (which was essentially the case anyway).
In addition, fix tests to get over failures in low end boards
2019-01-24 16:16:56 +02:00
Cruz Monrreal
b0b4013dde
Merge pull request #9302 from yossi2le/yossi_add_trng_checkup_devicekey
...
Add TRNG checkup in devicekey
2019-01-23 22:47:08 -06:00
Veijo Pesonen
a6d4c6b609
L3IPInterface: make inheriting virtual explicit
2019-01-23 17:04:42 +02:00
Veijo Pesonen
293b0189d2
Adds newlines to avoid compiler warnings
2019-01-23 16:44:16 +02:00
Veijo Pesonen
8f786a0450
Adds newlines to avoid compiler warnings
2019-01-23 16:43:45 +02:00
Veijo Pesonen
9f3830aa72
Adds newlines to avoid compiler warnings
2019-01-23 16:43:32 +02:00
Marcin Tomczyk
5e28c1eb56
ONME-3868, Modiefie mem-size parameter to minimal size that work with DTLS
2019-01-23 14:29:48 +01:00
Martin Kojtal
2cd83b45a4
Merge pull request #9392 from michalpasztamobica/tlssocket_documentation_update
...
Documentation of TLSSocket behavior on AUTH_FAILURE
2019-01-23 14:20:43 +01:00
Jari Poyhonen
84536bd09e
cellular ATHandler update due valgrind run
2019-01-23 09:43:03 +02:00
Martin Kojtal
f128891fc0
Merge pull request #9397 from yossi2le/fix_default_storage_type
...
Fixing folder path for KVStore FILESYSTEM configuration.
2019-01-22 13:35:52 +01:00
Ron Eldor
cad40e1633
Rename the platform context varaiable
...
Rename the generic name `ctx` of `mbedtls_platform_context`
in `platform_alt.c` to a specific name `plat_ctx`, to avoid conflicts
when used as external in crypto modules.
2019-01-22 13:57:32 +02:00
Ron Eldor
4ea68829c5
Rename the platform specific crypto_platform
...
To avoid collisions between the psa `crypto_platform.h` file and the
platform specific `crypto_platform.h` file, for the init \ terminate
functions, rename the latter to `crypto_device_platform`.
2019-01-22 13:56:59 +02:00
Michal Paszta
2cda5d28b8
Documentation of TLSSocket behavior on AUTH_FAILURE
2019-01-22 12:40:42 +01:00
Ari Parkkila
007caa0235
Cellular: Update modem drivers with get_default and other new APIs
2019-01-22 02:24:45 -08:00
Ari Parkkila
af0d2cf61d
Cellular: Update API description to match better onboard_modem_api
2019-01-22 02:24:45 -08:00
Ari Parkkila
c4de2f2f0e
Cellular: Power API updated to match onboard_modem_api
2019-01-22 02:24:45 -08:00
Ari Parkkila
269d151b12
Cellular: Default modem drivers with FF_ARDUINO
2019-01-22 02:24:45 -08:00
Ari Parkkila
75caa75a96
Cellular: Add get_target_default_instance in CellularDevice
2019-01-22 02:24:45 -08:00
Ari Parkkila
59972b6659
Cellular: Remove netsocket/generic_modem_driver
2019-01-22 02:24:45 -08:00
Ari Parkkila
139d506a24
Cellular: Move power on/off to device and remove CellularPower
2019-01-22 02:24:45 -08:00
Mirela Chirica
55b54f7c97
Cellular: Added API for setting default parameters to a network interface
2019-01-22 02:24:45 -08:00
Mirela Chirica
ba3727b4e8
Cellular: Unit tests for Non-IP socket
2019-01-22 02:24:45 -08:00
Mirela Chirica
d301e13610
Cellular: Non-IP socket and PDP context for EPS control plane data delivery
2019-01-22 02:24:44 -08:00
Teppo Järvelin
84e5013a2d
Cellular: added setting of data carrier support for UART.
2019-01-22 02:23:04 -08:00
Teppo Järvelin
725e14d15f
Cellular: Add State machine unit tests.
2019-01-22 02:23:04 -08:00
Teppo Järvelin
97709f52ec
Cellular: fix possible crash in state machine
...
_sim_pin was changed to pointer from array and length was checked with
strlen. If _sim_pin was null it caused crash. Fix by checking _sim_pin against NULL.
Power class could have been called without checking if power is NULL. Fix by checking
that power class is not null.
Fix state machine to return correct states when queried.
2019-01-22 02:23:04 -08:00
Teppo Järvelin
fa5d0fc358
Cellular: Added generic cellular modem
...
Generic cellular module (GENERIC_AT3GPP) can by used as a default
module when porting new cellular module. It's a good starting point
and eases porting of new modules. GENERIC_AT3GPP uses only standard
3GPP AT commands when communicating with the modem.
2019-01-22 02:23:04 -08:00
Teppo Järvelin
0c9130efeb
Cellular: change stack_type_supported to get_property
...
Change usage of AT_CellularContext::stack_type_supported to
AT_CellularBase::get_property. This way we can rid of
targets overriding stack_type_supported and delete
unnecessary classes and simplify new targets.
2019-01-22 02:23:04 -08:00
Teppo Järvelin
7c9f9d47ec
Cellular: Remove target files inheriting from AT_CellularNetwork
...
After AT_CellularNetwork::has_registration was replaced with
CellularProperties and better
AT_CellularNetwork::set_access_technology_impl default
implementation we can delete most of the target specific classes
that inherit AT_CellularNetwork.
2019-01-22 02:23:04 -08:00
Teppo Järvelin
9a72c221d8
Cellular: Change AT_CellularNetwork to use CellularProperties.
...
This change enables removing function has_registration from
class AT_CellularNetwork and all targets inheriting
AT_CellularNetwork.
2019-01-22 02:23:04 -08:00
Teppo Järvelin
b0d37ebec4
Cellular: Removed unnecessary checks after new
...
After this change we were able to change methods
ATHandler::set_urc_handler and CellularDevice::set_ready_cb to void
and simplify error handling.
2019-01-22 02:23:04 -08:00
Teppo Järvelin
8fcd2e0401
Cellular: changed support features to CellularProperty array.
2019-01-22 02:23:04 -08:00
Ari Parkkila
c7486b2a0d
Cellular: Added shutdown()
2019-01-22 02:23:04 -08:00
Ari Parkkila
bdddb445a6
Cellular: Moved reset from power to device
2019-01-22 02:23:03 -08:00
Ari Parkkila
1bc84404b2
Cellular: Removed set_power_level()
2019-01-22 02:23:03 -08:00
Ari Parkkila
0813b969f7
Cellular: Unify set_at_mode and init_module into init()
2019-01-22 02:23:03 -08:00
Ari Parkkila
2dde5a4376
Cellular: Move ready_cb from power to device
2019-01-22 02:23:03 -08:00
Ari Parkkila
19b24946df
Cellular: AT remove_urc_handler changed to set_urc_handler(prefix, 0)
2019-01-22 02:23:03 -08:00
Ari Parkkila
e49f90fb0b
Cellular: Move device_ready from power to device
2019-01-22 02:23:03 -08:00
Ari Parkkila
38f79a9b65
Cellular: Move PSM setting from power to device
2019-01-22 02:23:03 -08:00
Ari Parkkila
36292a4f14
Cellular: Move eDRX setting from power to network
2019-01-22 02:23:03 -08:00
Teemu Kultala
22a536a78a
cellular: eps ciot optimization network support check astyle fix
2019-01-22 02:23:03 -08:00
Teemu Kultala
f94117559b
cellular: eps ciot optimization network support check
...
-added an API for checking network eps ciot optimization support
-renamed the API for getting the UE parameters
-the API for setting the UE parameters includes now a callback, which
will be called once network support for eps ciot optimization is known
2019-01-22 02:23:03 -08:00
Teppo Järvelin
22d9105318
Removed CellularSIM interface.
...
Moved methods to classes CellularDevice and CellularInformation.
SIM interface was removed to simplify cellular usage and
methods better suite new classes.
Updated greentea and unit tests.
2019-01-22 02:23:03 -08:00
Ari Parkkila
235c2bc00d
Cellular: Removed get_extended_signal_quality and changed get_signal_quality
2019-01-22 02:23:03 -08:00
Teppo Järvelin
08bd651ae4
Cellular: Fixed CellularStateMachine to stop on all target states.
2019-01-22 02:23:03 -08:00
Martin Kojtal
31579fe4bb
Merge pull request #9328 from SeppoTakalo/ip-core-doxygen
...
Doxygen fixes for IP networking area
2019-01-22 10:48:10 +01:00
Martin Kojtal
bab6e2cb0b
Merge pull request #9440 from davidsaada/david_lfs_emubd_ignore
...
Put LittleFS emulated BD module under .mbedignore
2019-01-22 09:33:40 +01:00
Martin Kojtal
4019efb21d
Merge pull request #9399 from paul-szczepanek-arm/fix-null-check
...
BLE: fix missing null checks on Gap event handler
2019-01-21 13:43:16 +01:00
Martin Kojtal
ad5bcfc1de
Merge pull request #9427 from paul-szczepanek-arm/fix-truncation
...
BLE: fix possible truncation
2019-01-21 13:42:07 +01:00
Seppo Takalo
58c2760e3f
Fix spelling mistakes
2019-01-21 11:54:49 +02:00
Seppo Takalo
6b8b108ceb
Add missing copyright header.
2019-01-21 11:47:41 +02:00
Seppo Takalo
6f15b04655
Fix review findings.
2019-01-21 11:45:13 +02:00
Mel Weed
0f0469d03d
editorial changes
2019-01-21 11:45:13 +02:00
Mel Weed
b79b608362
mbed-tls/TLS to Mbed TLS
2019-01-21 11:45:13 +02:00
Mel Weed
40418d8ff9
grammatical corrections
2019-01-21 11:45:13 +02:00
Mel Weed
ea296afec2
editorial changes, punctuation
2019-01-21 11:45:13 +02:00
Kari Haapalehto
fcd497303d
Review changes
2019-01-21 11:45:12 +02:00
Mel Weed
f7e48f1385
typo fixes, future->present
2019-01-21 11:45:12 +02:00
Mel Weed
c454ba9f60
removing 'easy to use'
2019-01-21 11:45:12 +02:00
Kari Haapalehto
cabf597ab0
Hide protected start_handshake
2019-01-21 11:45:12 +02:00
Jarno Lamsa
981bfa139e
SocketAddress doxygen cleanup
2019-01-21 11:45:12 +02:00
Jarno Lamsa
8f5e003a1e
WifiInterface doxygen cleanup
2019-01-21 11:45:12 +02:00
Seppo Takalo
501f5ae32c
Add more documentation to Socket classes.
2019-01-21 11:45:12 +02:00
Seppo Takalo
db67332496
Fix DNS grouping
2019-01-21 11:45:12 +02:00
Seppo Takalo
706af114e3
Remove extra @param values
2019-01-21 11:45:12 +02:00
Kari Haapalehto
5fa13e43d1
Doxygen corrections to DTLSSocket.h, TLSSocket.h, TLSSocketWrapper.h
...
and DTLSSocketWrapper.h
2019-01-21 11:45:12 +02:00
Seppo Takalo
249fa7fd6f
Create new netinterface Doxygen group
2019-01-21 11:43:49 +02:00
Mel W
604a6ea5e0
backticks
2019-01-21 11:43:49 +02:00
Mel W
524c99b128
Formatting tweaks
...
#justnitpickythings
2019-01-21 11:43:49 +02:00
Ari Parkkila
397b396291
Cellular: Update cellular documentation
2019-01-21 11:43:49 +02:00
Seppo Takalo
0619b90997
Fix NetworkInterface grouping
2019-01-21 11:43:49 +02:00
Kari Haapalehto
0fbdb692e9
Doxygen corrections to:
...
- DTLSSocket.h
- TLSSocket.h
- TLSSocketWrapper.h
2019-01-21 11:43:49 +02:00
Seppo Takalo
bfd497fe26
Fix netsocket Doxygen group
2019-01-21 11:43:49 +02:00
Yossi Levy
5de92ca4c6
Fixing a bug in FileSystemStore to get the folder path from kv_config in FILESYSTEM and default configuration
2019-01-21 11:19:14 +02:00
David Saada
c826f2eba2
Put LittleFS emulated BD module under .mbedignore
2019-01-20 16:06:08 +02:00
paul-szczepanek-arm
42e4290160
error when there is no handler
2019-01-18 14:55:38 +00:00
Kevin Bracey
ab037c6f69
InternetSocket: better protect _callback
...
sigio callbacks can be triggered from interrupt, so changing _callback
needs critical section protection, not just a mutex.
2019-01-18 15:37:11 +02:00
Kevin Bracey
0f6a4cd0bd
InternetSocket: Use atomics, not volatile
...
Use a better tool for the job.
2019-01-18 15:37:11 +02:00
Seppo Takalo
6c5b845517
Clarify asyncronous Networkinterface::connect() and disconnect() API
...
This is slight API change, as a new return code is introduced.
Intention is to properly support asyncronous drivers that might
not be able to get new operation into execution, therefore they
need to return BUSY.
2019-01-18 15:36:23 +02:00
paul-szczepanek-arm
001919e81a
fix truncation
2019-01-18 12:10:30 +00:00
Martin Kojtal
cee814dc29
Merge pull request #9377 from offirko/offir_general_block_device_test
...
test: general_block_device fix to always erase prior the first program
2019-01-18 11:48:41 +01:00
Martin Kojtal
f48c1a9b13
Merge pull request #9344 from Pharap/fix-attach-function
...
Fix bug in templated attach function
2019-01-18 11:44:26 +01:00
Martin Kojtal
6c6ebc6b80
Merge pull request #9406 from geky/littlefs-validate-all-dirs
...
Extended mount to check all metadata-pairs
2019-01-18 11:34:38 +01:00
Martin Kojtal
40f40ac188
Merge pull request #9407 from offirko/offir_direct_access_handle_default_config
...
DirectAccess DeviceKey: add support for default storage type
2019-01-18 11:31:51 +01:00
Cruz Monrreal
fd2a96e7ad
Merge pull request #9339 from costanic/fix_oob
...
Fix Out-Of-Band (OOB) data generation for BLE OOB pairing
2019-01-17 21:51:54 -06:00
Cruz Monrreal
74f572356d
Merge pull request #9335 from naveenkaje/fix_thred_mle_warning
...
thread_mle_message_handler: fix build warning
2019-01-17 21:51:37 -06:00
Cruz Monrreal
3b43a2d976
Merge pull request #9333 from offirko/offir_doxygen
...
Minor Doxygen fixes for BufferedBlockDevice and iBeacon
2019-01-17 21:51:14 -06:00
Christopher Haster
9d6e309432
Extended mount to check all metadata-pairs
...
The most common issue with using littlefs in mbed-os is when users
change from littlefs->FAT->littlefs (or with MBR or similar). When this
corrupts the superblock, littlefs tries to fall back to the backup
superblock. However, at this point in the time the old superblock may be
very out-of-date and pointing to an incorrect filesystem.
There's no complete solution to a malicious modification of the
filesystem (short of checking all metadata+data, a very expensive
operation), but we can at least expand our validation to all of the
metadata for the filesystem. This at least catches the common issues
with changing between different filesystems.
2019-01-17 11:02:29 -06:00
offirko
e996b7f9ce
DirectAccess DeviceKey added support for default storage type
2019-01-17 10:58:55 -06:00
Martin Kojtal
284781a565
Merge pull request #9096 from pan-/fix-enforce-size-limits
...
BLE: Enforce advertising data payload limits
2019-01-17 12:41:57 +01:00
Martin Kojtal
714fc83054
Merge pull request #9369 from u-blox/target_C030-R412M
...
Add target C030-R412M
2019-01-17 12:39:43 +01:00
Cruz Monrreal
84f01d3217
Merge pull request #9261 from tz-arm/merge_quectel_m26
...
Initial version for Quectel M26 GSM/GPRS Module.
2019-01-16 22:07:07 -06:00
Cruz Monrreal
92a5f2f8f2
Merge pull request #9337 from tymoteuszblochmobica/removecellular
...
unittest: remove cellular driver L3IP stub
2019-01-16 22:06:27 -06:00
Cruz Monrreal
4f95298669
Merge pull request #9361 from yossi2le/yossi_fix_for_tfm
...
Removing dependency of TDBStore in SystemStorage file and moving some file location - TFM support.
2019-01-16 22:06:07 -06:00
Cruz Monrreal
d0665c8458
Merge pull request #9365 from lrusinowicz/cordio_ble_fix
...
Fix for asserion failing in BLE::callDispatcher with gcc debug profile.
2019-01-16 22:03:16 -06:00
Jimmy Brisson
e201fdb6e9
Add placeholder libraries for things we probably refer to as libraries
2019-01-16 14:58:58 -06:00
Vincent Coubard
79bd3ea982
BLE: Fix relationnal operator of SafeEnum
...
The relationnal operators were targeting the base class which defines an implicit constructor to an integral value. This is wrong as it allows SafeEnum instances to be compared against integers.
The fix is simple: define relationnal operators for the derived class. The derived class is known as it is passed as a template parameter of the base class.
For extra safety the SafeEnum constructor is now explicit and protected.
2019-01-16 16:06:21 +00:00
Vincent Coubard
f8ef143ed7
BLE: Fix comparison expression between an integer and a SafeEnum
2019-01-16 16:06:21 +00:00
paul-szczepanek-arm
fa36ed02ee
add missing null checks
2019-01-16 14:56:54 +00:00
Martin Kojtal
51a8c39088
Merge pull request #9245 from kjbracey-arm/lorawan_atomic_flag
...
LoRAWAN: volatile bool -> atomic_flag
2019-01-16 09:31:29 +01:00
Martin Kojtal
32c9c3ac46
Merge pull request #8970 from kegilbert/spell-checker-travisjob
...
Add doxygen spellcheck job to Travis
2019-01-16 09:30:46 +01:00
David Saada
af23e3f489
MBRBlockDevice: When partitioning, clear the rest of first erase unit
...
Make sure all the parts of the first erase unit, that are not part of the
partition table are clear.
2019-01-15 16:43:03 +02:00
Martin Kojtal
82abf979dd
Merge pull request #9363 from davidsaada/david_fsst_tr_error_remove
...
Remove unnecessary error prints in FileSystemStore
2019-01-15 10:34:38 +01:00
Alexander Zilberkant
971e29b669
Remove TARGET prefix from the TARGET_BYPASS_NVSTORE_CHECK and leave it as BYPASS_NVSTORE_CHECK
2019-01-15 10:54:22 +02:00
Yossi Levy
849db51b3a
Moving DirectAccessDevicekey.h and DirectAccessDevicekey.cpp to direct_access_devicekey sub folder For TFM support
2019-01-15 10:54:21 +02:00
Yossi Levy
a05180ac04
Moving KVStore to include sub folder For TFM support
2019-01-15 10:54:21 +02:00
Yossi Levy
eb7cbc1432
Removing the dependency of TDBStore in SystemStorage.h and NVStore co-existence checkup if compile for target TFM
2019-01-15 10:54:21 +02:00
Oscar Hellström
13222da2b6
Call network status callback from UBLOX AT
...
The helper method call_network_cb, actually does a lot more than calling
the callback. The method has a check that the network status supplied
for the callback is different compared to the internal one. It also sets
the class member if it is changed. This is a bit surprising, given the
name of the method. It also means that it doesn't work in this call, as
the member is already set.
2019-01-15 09:37:41 +01:00
Oscar Hellström
58b176ca04
Add connection status override for CellularContext
...
Add override for the virtual method get_connection_status() inherited
from NetworkInterface. The method in the base class returns
NSAPI_STATUS_ERROR_UNSUPPORTED. The CellularContext has the member
_connection_status, which means that we could return this.
2019-01-15 09:37:24 +01:00
offirko
5a9db72098
general_block_device test fixed to always erase prior to first program
2019-01-15 10:10:39 +02:00
Vincent Coubard
a10a10a3d7
BLE - Nordic: Release crypto cell when not in use.
...
Previously, the CryptoToolbox was allocated once as part of the security manager.
This was inneficient memory wise as it is only use to prepare key at initialization
and when we need to compute shared keys.
This was also inneficient power consumption wise as the Crypto cell was kept enabled even
when it wasn't used.
This fix creates a CryptoToolbox whenever it is needed and release it once it has fulfilled its
purpose. Note that CryptoToolbox allocation happens on the heap as mbed tls data structure are huge
and there's an high risk of crushing the stack.
2019-01-14 16:56:07 +00:00
Martin Kojtal
5212cc6544
Merge pull request #6622 from NXPmicro/Add_KW41Z_Thread
...
Add nanostack support for KW41Z
2019-01-14 14:00:14 +01:00
Fahim Alavi
5caeaed6db
Set target C030-R412M in mbed
2019-01-14 17:34:50 +05:00
Tymoteusz Bloch
18967a88f3
Removed cellular driver L3IP stub
2019-01-14 12:08:41 +01:00
Leszek Rusinowicz
f294447c25
Moved nextTimeout variable out of critical section in BLE::callDispatcher.
...
Initialization of Timeout object contains critical section inside constructor. Initialization inside critical section caused assertion failing under "debug" profile.
2019-01-14 11:13:28 +01:00
Kevin Bracey
6f757a5824
LoRAWAN: volatile bool -> atomic_flag
...
Now we have a proper atomic flag API, use it rather than a volatile
cheat.
2019-01-14 11:59:25 +02:00
Martin Kojtal
9d4db2b0ea
Merge pull request #9332 from jarlamsa/ble_doxygen_cleanup
...
Update and cleanup BLE.h doxygen
2019-01-14 09:43:16 +00:00
Martin Kojtal
601e2c3dba
Merge pull request #9355 from sbutcher-arm/mbedtls-importer-repo-param
...
Parameterise the repo used in the Mbed TLS importer script
2019-01-14 08:52:34 +00:00
Martin Kojtal
7a5192f969
Merge pull request #9330 from hasnainvirk/doxy_loraradio
...
Doxygen update for LoRaRadio class
2019-01-14 08:44:37 +00:00
Alexander Zilberkant
454ae256d4
Set "TDB_INTERNAL" default storage for Pelion
...
NUCLEO_F411RE
NUCLEO_F429ZI
UBLOX_EVK_ODIN_W2
2019-01-13 18:30:22 +02:00
David Saada
d6382bb114
Fix the general block device to support better low memory boards
...
In addition, fix prints and warnings.
2019-01-13 18:17:39 +02:00
David Saada
90e4286f2d
Remove unnecessary error prints in FileSystemStore
2019-01-13 17:17:55 +02:00
kegilbert
70b9b753db
Add doxygen spellcheck jobs to Travis
...
Currently tests
- drivers
- platform
- rtos
- events
- features/netsocket
2019-01-11 10:22:15 -06:00
Nic Costa
7795e30bce
Remove own_oob and peer_oob flags from Nordic PAL
...
the own_oob and peer_oob flags were not being set to 1 even though
an OOB pairing request was in progress, which therefore prevented
OOB data from being passed down to the softdevice during a OOB
pairing operation, thus causing the OOB pairing process to fail.
2019-01-11 08:54:30 -06:00
Nic Costa
24d793ce5d
Fix parameters provided to oob generator function
...
The function in the Nordic SDK for generating OOB data,
sd_ble_gap_lesc_oob_data_get, requires local LE Secure Connection
P256 Public Keys in {X,Y} format, but was being supplied with
the local secret key. This caused the generated OOB data to
fail to correspond to the Public Keys, which caused a mismatch
during the OOB pairing phase of the OOB confirmation value by
a remote peer when attempting to verify the OOB data against
the Public Keys, ultimately causing the OOB pairing request to
fail with a Confirm Value Failed (0x04) error.
2019-01-11 08:54:30 -06:00
Nic Costa
55507eaf75
Fix race condition when generating OOB data
...
The GenericSecurityManager tracks the most recent OOB data generated
by the PAL and the PAL function to generate OOB data is expected to
be asynchronous such that the OOB data is returned via a callback.
There was a race condition on the security manager's oob data variable
because it was cleared (set to all zeros) after calling PAL generate.
The expectation was that the clear operation would occur before the
callback executed, but this is proving to not be the case. Instead,
the callback is being executed as if it were syncronous with PAL
generate, then PAL generate returns and the oob data is cleared,
thereby losing the generated oob data that was set in the callback.
To fix the issue, clear the oob data variables before calling into
the PAL.
2019-01-11 08:54:30 -06:00
Martin Kojtal
307bdd7363
Merge pull request #9305 from davidsaada/david_littlefs_fatfs_doxy_fix
...
Minor Doxygen fixes for all file system classes
2019-01-11 14:07:51 +00:00
Martin Kojtal
adeb5be670
Merge pull request #9334 from yossi2le/yossi_write-a-thon2
...
Doxygen fixes in block devices
2019-01-11 14:06:50 +00:00
Simon Butcher
7bf33f01f9
Parameterise repo used in Mbed TLS importer script
...
This commit makes the repo used to import new Mbed TLS versions into Mbed OS
a parameter, to allow CI scripts (and any other script or users) to specify
specific repos to use for testing.
2019-01-11 13:51:19 +00:00
Cruz Monrreal
fd04d25e52
Fixed single space that astyle caught
2019-01-11 11:31:42 +02:00
Mel W
701bb055a2
Writer review
...
Grammatical changes, passive -> active in some places, and future -> present.
2019-01-11 11:31:22 +02:00
Hasnain Virk
8ed521e7ed
Doxygen update for LoRaRadio class
...
Added more documentation to the data structures and corrected the
inclusion of this class to the correct class hierarchy.
2019-01-11 11:29:57 +02:00
Cruz Monrreal
12980f4acd
Merge pull request #9232 from ChazJin/gd32f450
...
Add GD32_F450ZI as new target
2019-01-10 16:07:33 -06:00