Martin Kojtal
f468c9b1fe
Merge pull request #12830 from kivaisan/fix_bg96_offload_dns_query
...
Cellular: Fix BG96 offloaded DNS query for new API
2020-04-21 09:38:56 +02:00
Jason Huang
f3f69b8db7
Correction of judgment errors.
2020-04-21 13:22:33 +08:00
MarceloSalazar
d9cb51dbc6
Remove OLIMEX_STM32E407_F407ZG target
2020-04-20 16:55:34 +01:00
MarceloSalazar
e78ba7065b
Remove MTB_MTS_XDOT target
2020-04-20 16:55:33 +01:00
MarceloSalazar
4b1ad8ad4c
Remove MTB_STM_L475 target
2020-04-20 16:55:33 +01:00
Martin Kojtal
27405bff31
Merge pull request #12671 from hugueskamba/hk-netsocket-remove-armc5-support
...
Netsocket/lwIP Stack: Remove support for ARM Compiler 5
2020-04-20 14:16:20 +02:00
Seppo Takalo
fc9e75bddc
Allow Devicekey::generate_root_of_trust() to define key size.
...
By default, generate 16 byte keys, to be compatible with bootloader.
But allow user to generate 32 byte keys as well.
2020-04-20 14:40:26 +03:00
Kimmo Vaisanen
fe98dbef94
Cellular: Fix BG96 offloaded DNS query for new API
...
Fixed following issues in BG96 offloaded DNS:
- Fixed mbed-os 6 API change for asynchronous DNS callback. Return value is no longer
an error value but in success case the amount of DNS records
- Asynchronous request returns request ID instead of NSAPI_ERROR_OK. BG96 supports only
one asynchronouse DNS query at the time, so ID 1 is used.
- BG96 does not support multi-ip DNS responses, so disabled multi-ip tests
2020-04-20 12:35:09 +03:00
Dustin Crossman
d9655da2e8
Update COMPONENT_SCL
2020-04-17 13:13:18 -07:00
Martin Kojtal
a79d3ce18d
Merge pull request #12271 from jainvikas8/jae-feature-twincpu-6-mbed-os-integration
...
Make cypress psoc64 TFM ready and also add TF-M initialization
2020-04-17 15:48:58 +02:00
Lingkai Dong
50928fbcff
BLE whitelist can only contain public or random static addresses
2020-04-17 09:59:17 +01:00
Lingkai Dong
a6810ddc37
Remove a few leftovers in BLE namespace
2020-04-17 09:59:16 +01:00
Lingkai Dong
3c922acec4
Gap.tpp: remove misleading deprecation header
2020-04-17 09:59:15 +01:00
Lingkai Dong
8de604d485
Rename ConnectionParams_t -> PreferredConnectionParams_t
...
For actual connections, full ConnectionParameters is used. But
as per BLE specification, Generic Access Service can display
preferred connection parameters which is a smaller subset and
ConnectionParams_t matches exactly. Thus we rename/repurpose
it to PreferredConnectionParams_t.
2020-04-17 09:59:14 +01:00
Lingkai Dong
76b92b82e2
BLE: correct misspelling: prefered -> preferred
2020-04-17 09:59:14 +01:00
Lingkai Dong
7c49aeb01f
Remove connection_params from internal on_connected()
...
The callback on_connected() in ConnectionEventMonitorEventHandler
contains a parameter ConnectionParams_t which is superceded by
ConnectionParameters. Since it's not used, remove it.
2020-04-17 09:59:13 +01:00
Lingkai Dong
d6eeab1744
Cordio: bring back device name & appearance function
...
Functions in Cordio for device name & appearance are currently
unused as they are both part of and dependent on deprecated
Mbed OS BLE APIs.
Nonetheless we want to keep them (and disable using macros)
so we can reintroduce them and make improvements in the future
as needed.
2020-04-17 09:59:12 +01:00
Lingkai Dong
53550bb63b
Gap: create legacy advertising set only when required
2020-04-17 09:59:11 +01:00
Lingkai Dong
0341d5c898
disconnection_reason_t from raw uint8_t should be explicited an undocumented
2020-04-17 09:59:11 +01:00
Lingkai Dong
0b163ffbe1
Add default initialisation of own_address_type_t
2020-04-17 09:59:10 +01:00
Lingkai Dong
25608eede1
Remove BLEProtocol.h
2020-04-17 09:59:09 +01:00
Lingkai Dong
9455f86954
BLE: replace legacy address types (BLEProtocol) with new ones
2020-04-17 09:59:08 +01:00
Lingkai Dong
ae86c119d2
Add whitelist_t::entry_t which will replace Address_t to store addr type and value
2020-04-17 09:59:08 +01:00
Lingkai Dong
7fed75b356
BLE: remove ResolutionStrategy type
2020-04-17 09:59:07 +01:00
Lingkai Dong
7ce73d414e
BLE LinkLossService: use new EventHandler API to handle disconnection
2020-04-17 09:59:06 +01:00
Lingkai Dong
eba5821fd8
GenericGap: ensure legacy advertising set exists when setting data
2020-04-17 09:59:06 +01:00
Lingkai Dong
2422efc9bb
GenericGap: clean up unused helper functions
2020-04-17 09:59:05 +01:00
Lingkai Dong
09a81a9972
GenericAccessService: remove unused device name/appearance functions due to API changes
2020-04-17 09:59:04 +01:00
Lingkai Dong
55ecc57ac9
BLE: use up-to-date structs for disconnections
2020-04-17 09:59:04 +01:00
Lingkai Dong
c17cf0f3f3
Add to Gap/GenericGap non-deprecated APIs originally in LegacyGap
2020-04-17 09:59:03 +01:00
Lingkai Dong
2989466b01
BLE: construct disconnection_reason_t from uint8_t (received from HCI)
2020-04-17 09:59:02 +01:00
Lingkai Dong
d2d09b2bce
BLE: Remove LegacyGap and related types
2020-04-17 09:59:02 +01:00
Lingkai Dong
af6f32e584
Cordio: remove LegacyGap implementation
2020-04-17 09:59:01 +01:00
Lingkai Dong
be3858cec2
BLE: update to use whitelist_t from ble namespace
2020-04-17 09:58:58 +01:00
Lingkai Dong
e97582bd23
Move BLE whitelist APIs from LegacyGap to ble::Gap
2020-04-17 09:56:25 +01:00
Lingkai Dong
eee3b687c4
GenericGap: prepare legacy advertising set
...
This is based on (and supercedes) PR #10772 .
As the switches between old and new APIs do not exist anymore,
we create a function for legacy advertising set creation.
2020-04-17 09:56:24 +01:00
Lingkai Dong
a2a99291d4
BLE Gap: remove version one scan API
2020-04-17 09:56:24 +01:00
Lingkai Dong
db14f196e7
GenericGap: remove legacy timeout callback signalling
2020-04-17 09:56:23 +01:00
Lingkai Dong
d35a6b88a9
GenericGap: remove legacy dis/connection callbacks signalling
2020-04-17 09:56:22 +01:00
Lingkai Dong
6f701cd6ef
Remove deprecated implementations from GenericGap & LegacyGap
2020-04-17 09:56:21 +01:00
Lingkai Dong
55edb6131d
ble/Gap.h: remove deprecated APIs
2020-04-17 09:56:21 +01:00
Martin Kojtal
b574ff50da
Merge pull request #12817 from kivaisan/improve_at_debug_flags
...
Cellular: Disable AT traces when mbed-trace is disabled
2020-04-17 09:29:15 +02:00
Arto Kinnunen
a14ccad485
Review corrections
...
-Check pointer before writing to it. It allows application to ask
only some of the stagger values.
-Change type of data_amount in get_stagger_estimate_to_address to be
uint16_t.
2020-04-17 08:55:48 +03:00
Arto Kinnunen
a7d3a981b7
Add getsockopt option to reading network property
...
Add getsockopt options NSAPI_LATENCY and NSAPI_STAGGER to read
network specific timing constraints from socket.
-NS_LATENCY returns estimated latency to given address.
-NSAPI_STAGGER returns estimated initial delay that application
should wait before transmitting data to network.
Application can use the new options to avoid network congestion by
adjusting transmission delays and retry timeouts.
2020-04-17 08:55:48 +03:00
Martin Kojtal
7b0c38aabb
Merge pull request #12742 from LDong-Arm/gatt_sm_deprecated_cleanup
...
BLE: remove deprecated APIs from Gatt and SecurityManager
2020-04-16 17:21:52 +02:00
Kimmo Vaisanen
738f9fbcf6
Cellular: Disable AT traces when mbed-trace is disabled
...
Earlier if mbed-trace was disabled but debug-at enabled, some AT trace codes were still
enabled causing unnecessary code size increase.
This commit fixes the issue that AT debug trace code is enabled only when both
mbed-trace.enable and cellular.debug-at are enabled.
Reduces binary size by about ~340bytes when mbed-trace is disabled but debug-at enabled.
2020-04-16 16:24:40 +03:00
Kimmo Vaisanen
2f384e3c1f
Cellular: Fix build problem if cellular.debug-at is set as null
2020-04-16 13:50:02 +03:00
Martin Kojtal
ac21ee90a8
Merge pull request #12791 from cy-arsm/cy-arsm/pr/IPv6_Dual_stack_fix
...
Fix for IPv6 Dual Stack support
2020-04-16 12:10:40 +02:00
Martin Kojtal
ee476d9954
Merge pull request #12699 from hugueskamba/hk_remove_armc5_support_storage
...
Storage: Remove support for ARM Compiler 5
2020-04-15 15:30:44 +02:00
Martin Kojtal
447cfbc9a0
Merge pull request #12804 from kivaisan/check_serial_for_set_baud_rate
...
Cellular: Check if serial is supported
2020-04-15 15:01:03 +02:00
Lingkai Dong
a85c157952
Remove Nordic SoftDevice BLE driver
2020-04-15 09:57:42 +01:00
Lingkai Dong
4cb729fb49
Remove Maxim BLE stack which does not implement the new API
2020-04-15 09:51:14 +01:00
Chun-Chieh Li
123c254f52
KVStore: Remove incorrect check with non-default configuration FLASHIAP
...
With non-default configuration FLASHIAP, the region can be defined in front of application. The after-application check must be skipped.
2020-04-15 16:50:06 +08:00
Martin Kojtal
ea56ffbafc
Merge pull request #12799 from kyle-cypress/pr/tdb-calc-size
...
TDBStore: Handle odd number of sectors in block
2020-04-15 09:43:06 +02:00
Martin Kojtal
8926ea0983
Merge pull request #12763 from kivaisan/fix_athandler_read_string
...
Cellular: Fix ATHandler::read_string to handle delimiter inside string
2020-04-15 09:27:40 +02:00
Martin Kojtal
90db09ed9f
Merge pull request #12745 from JojoS62/add-eth-MI-config
...
add config option for phy media interface
2020-04-15 09:21:44 +02:00
Martin Kojtal
fef75b3b52
Merge pull request #12731 from kivaisan/fix_socketaddress_verification
...
Testing: Fix multihoming test compilation issues
2020-04-15 09:21:18 +02:00
Martin Kojtal
05dd4ce633
Merge pull request #12769 from miteshdedhia7/pr/rssi-gt-fix
...
Fix WIFI-GET-RSSI test case failure and remove extra label from CYW9P62S1_43438EVB_01 in target.json
2020-04-15 09:19:22 +02:00
Martin Kojtal
4128efdf3d
Merge pull request #12785 from LDong-Arm/port_packetcraft_ltk_improvements
...
Cordio: Apply Packetcraft's fix for possible SweynTooth vulnerabilities
2020-04-15 09:08:24 +02:00
Martin Kojtal
c1048c6aa7
Merge pull request #12754 from artokin/nanostack_patch_to_mbedos6
...
Nanostack release for Mbed OS 6
2020-04-15 09:07:47 +02:00
Martin Kojtal
68f1ef2df6
Merge pull request #12716 from OpenNuvoton/nuvoton_m487_bsp
...
M487: Update BSP
2020-04-15 09:07:10 +02:00
Kimmo Vaisanen
214df550c0
Cellular: Check if serial is supported
...
Baud rate can be only changed if BufferedSerial (or Serial in general) object is supported
2020-04-14 13:14:22 +03:00
Kimmo Vaisanen
236054175b
Netsocket: Remove deprecated TCPServer
...
TCPSocket should be used instead.
2020-04-14 12:13:08 +03:00
Kimmo Vaisanen
e776a9bb72
Netsocket: Add get_dns_server API for NetworkInterface
...
With get_dns_server DNS servers can be queried from NetworkInterface object
2020-04-14 12:04:03 +03:00
Kimmo Vaisanen
09fe16618a
Netsocket: Implement set_ip_address to enable setting second address
...
set_ip_address API can be used to set a static IPv4 address or IPv6 link-local
address to network stack.
This is needed for example in cellular use cases where device gets multiple IP
addresses from cellular context.
2020-04-14 12:04:03 +03:00
Arto Kinnunen
152c1030b9
Merge commit 'e357a4329c5f417bf8246b26f5423e416cb55718'
...
* commit 'e357a4329c5f417bf8246b26f5423e416cb55718':
Squashed 'features/nanostack/sal-stack-nanostack/' changes from 89a497a386..cc03296c27
2020-04-14 11:32:26 +03:00
Kyle Kearney
b46da65937
TDBStore: Handle odd number of sectors in block
...
Rework TDBStore::calc_area_params so that it can handle situations where
the block device size is not an even multiple of the sector size (while
retaining its ability to handle non-uniform erase sizes).
This avoids intermittent asserts on boards where TDBStore is implemented
in internal flash, in which case the size of the block device varies
with the application size and a minor change (or a shift in optimization
level) can shift TDBStore from an odd to an even number of sectors.
2020-04-13 12:01:25 -07:00
Arun S
cfcfd11049
Remove ethernet interface logic for SoftAP and STA
...
Issue: The problem is that there is a race condition introduced in that the LWIP thread is relying on the
interface as it is taken down by a application thread while calling disconnect.
In disconnect api called from application context, whd_emac_wifi_link_state_changed() will refer to netif interface
structure in its callback api netif_link_irq(netif). This netif will be cleared by remove_etherent_interface().
whd_emac_wifi_link_state_changed will post message to tcpip_thread. tcpip_thread will process the message and
call the callback api netif_link_irq(netif)
Calling sequence is whd_emac_wifi_link_state_changed -> remove_etherent_interface(). Hence there is a timing issue
that netif might be cleared first before tcpip thread process the message netif_link_irq(netif)
Fix: remove_etherent_interface() will post message to tcpip thread and tcpip thread process the message delete_interface()
which will actually remove the inferface from the netif_list.
Calling sequence is whd_emac_wifi_link_state_changed() message post -> remove_etherent_interface() message post.
message processing order netif_link_irq(netif) -> delete_interface().
Since both the processing is handled in single thread, processing of message is handled sequentially.
2020-04-13 16:45:23 +05:30
Lingkai Dong
c927773115
Port Cordio LE Secure Connections check from PacketCraft
...
This change is provided by Packetcraft (which maintains the
Cordio BLE stack) to address possible Sweyntooth vulnerabilities.
2020-04-09 16:01:28 +01:00
Lingkai Dong
0402fe4efb
Port Cordio SMP control block improvements from Packetcraft
...
This change is provided by Packetcraft (which maintains the
Cordio BLE stack) to address possible Sweyntooth vulnerabilities.
2020-04-09 15:57:59 +01:00
MarceloSalazar
a15f6a43ad
General clean-up of unsupported targets
2020-04-09 15:36:21 +01:00
Martin Kojtal
7fce7f552c
Merge pull request #12572 from rajkan01/waitapi_remove_deprecated
...
Remove mbed wait deprecated APIs
2020-04-09 14:57:46 +02:00
Martin Kojtal
149235f731
Merge pull request #12589 from u-blox/disconnect
...
Cellular: Add deativation of context associated with profile
2020-04-09 09:39:27 +02:00
Rajkumar Kanagaraj
9739b565b2
Fix the CI build issue
2020-04-08 10:35:07 +01:00
Rajkumar Kanagaraj
83be3f24a5
Remove mbed wait deprecated APIs
2020-04-08 10:35:07 +01:00
midd
0504873255
Remove an assert from get_rssi() in WhdSTAInterface.cpp which causes rssi greentea test to fail in Cypress parts. This is because the rssi GT test expect the negative test case to return 0 and not assert.
2020-04-07 10:42:17 -07:00
Lingkai Dong
07c25bba16
GattCharacteristic: remove deprecated APIs and helper function SecurityModeToAttSecurity
2020-04-07 10:27:16 +01:00
Lingkai Dong
70a564e7de
GattClient: remove deprecated onDataWrite
2020-04-07 10:27:16 +01:00
Lingkai Dong
1a89b7718c
BLE SecurityManager: remove legacy event callbacks and deprecated API
2020-04-07 10:27:16 +01:00
Kimmo Vaisanen
584d54e955
Cellular: Fix ATHandler::read_string to handle delimiter inside string
...
For example if input buffer includes:
+CCLK: "20/04/05,15:38:57+12"
read_string return "20/04/05,15:38:57+12" instead of "20/04/05"
2020-04-06 16:28:04 +03:00
Martin Kojtal
b1ce678d30
Merge pull request #12728 from jeromecoutant/PR_ETHERNET_THREADSIZE
...
STM32 EMAC : increase thread-stacksize
2020-04-05 19:57:44 +02:00
Vikas Katariya
9b7ef82b40
psa: Init IPC, Mailbox and Non-secure Interface
...
These changes are for TFM_DUALCPU and TFM_V8M platforms.
The initialization happens after mbed-os kernel is kicked off and
when the thread is up and running.
We are initializing the following for TFM_DUALCPU platforms:
* IPC Interrupts for syncing multi-core platforms.
* NS Mailbox to receive messages.
* NS interface.
We are only initializing Non-secure interface for TFM_V8M platforms.
mbed_tfm_init() in tfm_mbed_boot.c overrides the WEAK mbed_tfm_init()
for a specific platform.
Signed-off-by: Vikas Katariya <vikas.katariya@arm.com>
2020-04-03 15:48:58 +01:00
Arto Kinnunen
6275f710bf
Merge commit '185db1333ed41be03e3a565e0f0171cad90857a1'
...
* commit '185db1333ed41be03e3a565e0f0171cad90857a1':
Squashed 'features/nanostack/sal-stack-nanostack/' changes from fb7413b846..89a497a386
2020-04-03 14:57:23 +03:00
Arto Kinnunen
54f3465e45
Merge commit '9cb63ab0e4b525c8d067ea94d7e4302203ba835a'
...
* commit '9cb63ab0e4b525c8d067ea94d7e4302203ba835a':
Squashed 'features/nanostack/coap-service/' changes from e5e0c138e6..5aa54b8e62
2020-04-03 14:56:53 +03:00
Martin Kojtal
c8ab263388
Merge pull request #12701 from dustin-crossman/pr/custom-bt-firmware
...
Add custom BT Firmware image for CYW9P62S1_43012EVB_01
2020-04-03 09:09:46 +02:00
Martin Kojtal
5539d65017
Merge pull request #12638 from tymoteuszblochmobica/testall
...
Enable storage tests to all targets
2020-04-03 09:00:18 +02:00
Martin Kojtal
74ace63eaa
Merge pull request #12729 from AnttiKauppila/mbedtls_fixes
...
Mbedtls fixes
2020-04-03 08:59:14 +02:00
Martin Kojtal
548e1c6766
Merge pull request #12676 from LDong-Arm/ble_deprecation_cleanup
...
Remove deprecated BLE:: APIs and unsupported services
2020-04-03 08:36:38 +02:00
Ryan Morse
f060b6afd7
Add custom BT Firmware image for CYW9P62S1_43012EVB_01
2020-04-02 09:30:17 -07:00
Martin Kojtal
ded879daed
Merge pull request #12603 from dustin-crossman/pr/add-cysbsyskit_01
...
Add target CYSBSYSKIT_01
2020-04-02 18:18:11 +02:00
JojoS62
a4d5186f39
add config option for phy media interface
2020-04-02 12:16:57 +02:00
Tymoteusz Bloch
2ca832c673
Enable storage tests to all targets
2020-04-01 12:04:36 +02:00
Kimmo Vaisanen
949856d967
Replace unique_ptr::reset() call with "= nullptr"
...
This is a workaround for IAR library bug.
2020-04-01 12:13:49 +03:00
Martin Kojtal
a6ef9db8dc
Merge pull request #12626 from jeromecoutant/PR_F4
...
STM32F4 update drivers version to CUBE V1.25.0
2020-04-01 10:50:32 +02:00
Martin Kojtal
0eca8d38d0
Merge pull request #12715 from RyoheiHagimoto/rza1-eth-deprecation
...
RZ_A1H remove usage of ethernet hal API
2020-04-01 08:54:31 +02:00
Chun-Chieh Li
d709c775b4
M487: Add SPDX license identifier
2020-04-01 13:55:45 +08:00
Chun-Chieh Li
3b9492fdbc
M487: Update BSP
...
Relevant modifications:
1. Support degrading QSPI0/1 to SPI4/5 for normal SPI transfer
2. Fix with BSP crypto driver API change
3. Fix with BSP PDMA driver API change
4. Make necessary modifications to pass FPGA CI Test Shield tests
5. Don't distinguish pinmap among parts e.g. M480 LG. Application users must take care.
2020-04-01 13:55:12 +08:00
Martin Kojtal
dba3962f16
Merge pull request #12570 from kjbracey-arm/nsapics
...
Improve nsapi_create_stack
2020-03-31 16:34:20 +02:00
Antti Kauppila
5f19b6b03a
Licence updated
2020-03-31 16:16:30 +03:00
Antti Kauppila
7904ff05b3
more error handling added for ctr and hmac
2020-03-31 15:59:56 +03:00
Antti Kauppila
abb37c09be
MBEDTLS_SSL_EXPORT_KEYS added to Nanostack's tls_sec_prot_lib
2020-03-31 14:21:45 +03:00
Antti Kauppila
69c6f29ab6
trace group defiined for shared_rng
...
Unittests fixed
2 mbedtls functions were updated to reflect the api
2020-03-31 14:21:45 +03:00
Teppo Järvelin
c5d5d21f05
Added missing optimizations based on mbedtls/baremetal.h config
2020-03-31 14:21:45 +03:00
Teppo Järvelin
0f889c3764
fixed ssl hostname handling
2020-03-31 14:21:44 +03:00
Teppo Järvelin
17e513891b
Added new global rng, needed for MbedTLS optimisations
2020-03-31 14:21:44 +03:00
Teppo Järvelin
793837cafe
Prepare for upcoming MbedTLS changes
2020-03-31 14:21:44 +03:00
Hugues Kamba
209f1e6a71
Netsocket/lwIP Stack: Remove support for ARM Compiler 5
...
ARM Compiler 5 is no longer actively supported and was superseded in
Mbed OS by ARM Compiler 6.
2020-03-31 10:54:36 +01:00
jeromecoutant
dfeeb821dc
STM32 EMAC : increase thread-stacksize
2020-03-31 11:41:51 +02:00
jeromecoutant
4b9a7fa86a
STM32F4 V1.19.0 -> V1.25.0 : MBEDTLS adaptation
2020-03-31 11:04:57 +02:00
Martin Kojtal
8b929726e1
Merge pull request #12609 from rajkan01/semwait_remove_deprecation
...
Remove Semaphore deprecated APIs
2020-03-31 10:36:43 +02:00
Martin Kojtal
6cdb44ea38
Merge pull request #12682 from jeromecoutant/PR_TRACELEVEL
...
MBED TRACE default level is INFO
2020-03-31 09:28:11 +02:00
Martin Kojtal
5d07fa8ada
Merge pull request #12705 from hugueskamba/hk_remove_armc5_support_mbed-client
...
mbed-client-cli: Remove support for ARM Compiler 5
2020-03-31 08:34:33 +02:00
Martin Kojtal
fea7c1abef
Merge pull request #12472 from praveenCY/pr/wpa3_support_merge
...
Add WPA3 support in mbed-os for green tea tests
2020-03-31 08:32:27 +02:00
Martin Kojtal
4c6e59d714
Merge pull request #11629 from kyle-cypress/pr/tdb-bounds-refactor
...
Refactor TDB internal bounds computation
2020-03-30 09:39:15 +02:00
RyoheiHagimoto
7794221c69
[RZ_A1H] remove usage of ethernet hal API
2020-03-30 14:54:35 +09:00
Anna Bridge
009ff7adf3
Merge pull request #12036 from kjbracey-arm/callback_fiddle
...
Callback extension and optimisation
2020-03-27 14:07:20 +00:00
Anna Bridge
2736896fb9
Merge pull request #12706 from hugueskamba/hk_remove_armc5_support_tests
...
Tests: Remove support for ARM Compiler 5
2020-03-27 14:05:26 +00:00
Anna Bridge
abaf612ccd
Merge pull request #12704 from michalpasztamobica/lwip_apimsg_err
...
LWIP: propagate the apimsg->err out of netconn_apimsg()
2020-03-27 14:04:27 +00:00
Anna Bridge
1bbcaec04a
Merge pull request #12683 from kivaisan/socketaddress_refactor
...
SocketAddress rework
2020-03-27 11:30:12 +00:00
Dustin Crossman
56099951b5
Ran astyle on COMPONENT_SCL.
2020-03-26 11:50:58 -07:00
Hugues Kamba
a79ae95703
mbed-client-cli: Remove support for ARM Compiler 5
...
ARM Compiler 5 is no longer actively supported and was superseded in
Mbed OS by ARM Compiler 6.
2020-03-26 13:45:46 +00:00
Michal Paszta
dc142979d8
LWIP: propagate the apimsg->err out of netconn_apimsg()
2020-03-26 13:45:50 +02:00
Hugues Kamba
4318a0747f
Tests: Remove support for ARM Compiler 5
...
ARM Compiler 5 is no longer actively supported and was superseded in
Mbed OS by ARM Compiler 6.
2020-03-25 18:22:00 +00:00
Hugues Kamba
a9a00e9b29
Storage: Remove support for ARM Compiler 5
...
ARM Compiler 5 is no longer actively supported and was superseded in
Mbed OS by ARM Compiler 6.
2020-03-25 17:25:20 +00:00
Syed Fahimuddin Alavi
c6b6efc456
Added deativation of context associated with profile
...
Added emt method in At cellular context stub file
2020-03-25 16:02:18 +05:00
Martin Kojtal
b62fdaed1f
Merge pull request #12685 from kivaisan/remove_deprecated_netsocket_methods
...
Remove deprecated netsocket methods
2020-03-25 10:12:55 +01:00
Martin Kojtal
fff23428de
Merge pull request #12686 from jeromecoutant/PR_REVERT_ETHERNET
...
STM32 EMAC : remove TIMEOUT issue when cable is not plugged yet
2020-03-25 08:59:55 +01:00
Kyle Kearney
ab8ac8871c
Remove stray include of TDBStore.h
2020-03-24 12:27:21 -07:00
Kyle Kearney
ae7c6203cc
kv_config: Remove hard fail on too few pages
...
STORE_SECTORS is a hard requirement. If there are fewer than 2 pages
then the kvstore will not work, because the garbage collection process
relies on having at least two sectors to work with.
STORE_PAGES is a heuristic. It is a reasonable default to use if the
application does not specify the amount of flash to use for TDBStore.
But if an application knows that a smaller number of pages will suffice
for its specific needs, then that is valid and should be permitted.
2020-03-24 12:27:21 -07:00
Kyle Kearney
7f18a6ce49
Move flash bounds helpers from TDBStore to kv_config
2020-03-24 12:27:21 -07:00
Kyle Kearney
926423c109
Reuse TDBStore default size computation in devicekey test
...
Replace custom caluation that always assumed two sectors with the standard
calculation exposed on TDBStore.
2020-03-24 12:27:21 -07:00
Kyle Kearney
622a50ff6a
KV_CONFIG: Change errors to use tr_error not tr_warning
2020-03-24 12:27:21 -07:00
Kyle Kearney
e1b857078a
Remove unnecessary reference-typed arguments
...
No callers make use of the modified argument values, so change
them to a more straightforward pass by value.
2020-03-24 12:27:21 -07:00
Kyle Kearney
3ef04db1a3
TDBStore: Increase min pages to 14
...
Increase minimum page count from 10 to 14 based on further experiments
with features-storage-tests-kvstore-static_tests.
2020-03-24 12:27:21 -07:00
Kyle Kearney
0002830c03
TDBStore: remove get_flash_bounds input constraint
...
Handle the case where the entirety of flash (size = 0) is required
for a flash memory starting at address 0, instead of erroring out.
2020-03-24 12:27:20 -07:00
Kyle Kearney
9d414316da
TDBStore: Fix potential alignment issue in default addresses
...
When 10 pages is larger than 2 sectors, align the selected size
down to be an even multiple of the sector size, to ensure that
the allocated space divides cleanly in half for garbage collection.
2020-03-24 12:27:20 -07:00
Kyle Kearney
7cd4d11a8a
Expand error checks in _calculate_blocksize_match_tdbstore
...
The minimum size required by tdbstore is either 2 sectors or 10 pages,
whichever is larger. Correspondingly, adjust the error checks in
_calculate_blocksize_match_tdbstore to match this requirement.
2020-03-24 12:27:20 -07:00
Kyle Kearney
cda0af66eb
Move TDB bounds computation for better reuse
...
Migrate into TDBStore so that DirectAccessDeviceKey can use it as well.
2020-03-24 12:27:20 -07:00
Kyle Kearney
afa88b76d4
Refactor internal flash TDB bounds determination
...
Default the size to the larger of two sectors or 10 pages, so that the
computation works better on devices with a low sector to page size ratio.
Reduce code duplication.
2020-03-24 12:27:20 -07:00
Kimmo Vaisanen
619a5a7bcc
Netsocket: Remove deprecated constructor with open
...
Default constructor with separate open call should be used instead.
2020-03-24 12:46:30 +02:00
Kimmo Vaisanen
4918bc6aad
TCPSocket: Remove deprecated contructor with open
...
Default constructor and separate open call should be used instead.
2020-03-24 12:46:30 +02:00
Kimmo Vaisanen
2cfee7be71
Netsocket: Remove deprecated InternetSocket::attach methods
...
InternetSocket::sigio should be used instead.
2020-03-24 12:46:30 +02:00
Kevin Bracey
4eda58893e
SocketAddress rework
...
* Add optimised constexpr default constructor. Default construction
was previously by a heavyweight defaulted `nsapi_addr_t` parameter.
* Remove deprecated resolving constructor.
* Take `nsapi_addr_t` inputs by constant reference rather than value.
* Inline the trivial getters and setters.
* Use `unique_ptr` to manage the text buffer.
* Make `operator bool` explicit.
* Optimise some methods.
* Update to C++11 style (default initialisers, nullptr etc)
2020-03-24 11:05:33 +02:00
jeromecoutant
7b0ac0669f
MBED TRACE default level is INFO
2020-03-24 09:36:21 +01:00
Martin Kojtal
5d64e55880
Merge pull request #12651 from kivaisan/add_ec2x_start_timout_configuration
...
Cellular: Make Quectel EC2x modem start up timeout configurable
2020-03-24 08:53:59 +01:00
Martin Kojtal
ae0ec86d59
Merge pull request #12667 from boomer41/fix-devicekey
...
Add check for return code in DeviceKey to avoid injecting invalid ROT
2020-03-23 19:59:10 +01:00
Lingkai Dong
de89b9a572
BLE DeviceInformationService: fix deprecated addService usage
2020-03-23 16:37:21 +00:00
Lingkai Dong
682927d0a7
Remove deprecated BLE:: API
...
Note: The BLE() constructor is now private.
2020-03-23 16:14:20 +00:00
Lingkai Dong
266de6a69a
Remove BLE services that are not maintained anymore
2020-03-23 16:14:19 +00:00
Martin Kojtal
4f4c8c48e1
Merge pull request #12637 from armPelionEdge/#12625-BLE-Cardio-Patch
...
Cordio: fix for issue #12625
2020-03-23 14:47:52 +01:00
Martin Kojtal
ef2c1c89e6
Merge pull request #12658 from VeijoPesonen/fix_tests-integration-fs
...
tests-integration;tests-filesystem: fix code causing compiler warnings and enable more tests
2020-03-23 12:31:13 +01:00
Martin Kojtal
cc799a83fc
Merge pull request #12661 from kbarm/feature-fix-documentation-ascii-art
...
Adjusted SecurityManager Doxygen ASCII art
2020-03-23 10:18:54 +01:00
Stephan Brunner
c6e8ae56db
Use correct return value.
2020-03-23 09:26:30 +01:00
Stephan Brunner
f01bc974ef
Add check for return code in DeviceKey to avoid injecting invalid ROT
2020-03-23 06:57:50 +01:00
Anna Bridge
ab483c2ead
Merge pull request #12654 from kbarm/feature-remove-cc-arm-macro
...
Removed all references to __CC_ARM
2020-03-20 15:22:03 +00:00
Anna Bridge
1b83d31e07
Merge pull request #12648 from artokin/nanostack_wisun_device_type_config
...
Nanostack: Add config for Wi-SUN device type
2020-03-20 15:20:17 +00:00
Anna Bridge
d048cd4c83
Merge pull request #12410 from rajkan01/serial_remove_deprecate
...
Remove the deprecated RawSerial, UARTSerial, Serial
2020-03-20 15:19:32 +00:00
Krzysztof Borowczyk
a624acd45c
Adjusted SecurityManager Doxygen ASCII art to make it display correctly on mbed.com
2020-03-20 10:20:58 +01:00
Veijo Pesonen
244c2fba5f
tests-filesystem: enable all for QSPIF- OSPIF(future)-devices
...
littlefs is the preferred filesystem for general filesystem tests.
2020-03-19 19:26:16 +02:00
Krzysztof Borowczyk
4465295332
Remove ARMC5 reference from Mbed OS platform (removed all references to __CC_ARM)
2020-03-19 16:00:45 +01:00
Kimmo Vaisanen
4f7d7750e4
Cellular: Make Quectel EC2x modem start up timeout configurable
...
Default timeout also increase from 5sec to 15sec.
2020-03-19 12:31:46 +02:00
Arto Kinnunen
1b171791c3
Nanostack: Add config for Wi-SUN device type
...
Add configuration option for Wi-SUN device types.
2020-03-19 08:44:37 +02:00
Marcin Tomczyk
6a21dfa080
[Storage] Use internal flash for KVStore always if default configuration. TDB_INTERNAL is always for first choose.
2020-03-18 06:05:52 -07:00
Martin Kojtal
dc21432cc1
Merge pull request #12633 from kivaisan/bg96_use_offload_tlssocket_flags
...
Cellular: Add offload TLSSocket implementation inside feature flag
2020-03-17 12:17:12 +01:00
Vishal Bhargava
4ea64cb6c6
Update hci_tr.c
...
Indent formating
2020-03-17 12:13:07 +05:30
Kimmo Vaisanen
51175eed1f
Cellular: Add offload TLSSocket implementation inside feature flag
...
Reduce binary size (~500 bytes with GCC_ARM and developer profile) when offloaded TLSSocket is not in use.
2020-03-17 08:42:59 +02:00
Vishal Bhargava
5b65d3b119
Update hci_tr.c
...
Handled fragmented packet case also.
2020-03-17 11:57:14 +05:30
Dustin Crossman
89c70fbd9a
Fix licenses in COMPONENT_SCL.
2020-03-16 09:40:34 -07:00
Rajkumar Kanagaraj
a6b78c6429
Remove Semaphore deprecated APIs
2020-03-16 09:37:45 -07:00
Martin Kojtal
2a4e48179d
Merge pull request #12624 from OpenNuvoton/nuvoton_ec2x
...
Cellular: Support EC2x power control pin support no connect
2020-03-16 14:34:58 +00:00
jeromecoutant
488c9db81e
STM32 EMAC : remove TIMEOUT issue when cablke is not plugged yet
2020-03-13 16:58:47 +01:00
Anna Bridge
532654ebb3
Merge pull request #12597 from kivaisan/alt1250_ppp_cellular
...
Cellular: Add ALT1250 PPP cellular target
2020-03-13 11:08:13 +00:00
Chih-Chiang Chang
73b96c1cbc
Support EC2x PWRKEY set as no connect
2020-03-13 13:46:24 +08:00
Kevin Bracey
bb733f1ee8
Callback updates
...
* Optimise clearing by adding `nullptr` overload. This overload means
`Callback(NULL)` or `Callback(0)` will no longer work; users must
use `Callback(nullptr)` or `Callback()`.
* Optimise clearing by not clearing storage - increases code size of
comparison, but that is extremely rare.
* Reduce ROM used by trivial functors - share copy/destroy code.
* Config option to force trivial functors - major ROM saving by
eliminating the "operations" table.
* Config option to eliminate comparison altogether - minor ROM saving by
eliminating zero padding.
* Conform more to `std::function` API.
2020-03-11 15:46:03 +02:00
Anna Bridge
da9f85b6af
Merge pull request #12580 from cy-arsm/cy-arsm/pr/PR_SoftAP_STA_Fix_revert
...
Reverting #12312 as it breaking current WiFI connect()->Disconnect() sequence
2020-03-10 12:50:27 +00:00
Anna Bridge
e307695e82
Merge pull request #12599 from tymoteuszblochmobica/rotfix
...
Greentea kvstorage tests Cypress targets fix.
2020-03-10 12:08:48 +00:00
Dustin Crossman
05776d6f88
Update COMPONENT_SCL.
2020-03-09 10:07:12 -07:00
Dustin Crossman
6b6db89434
Improve documentation.
2020-03-09 10:07:12 -07:00
Dustin Crossman
e754510cce
Add COMPONENT_SCL.
2020-03-09 10:07:11 -07:00
Martin Kojtal
0692fc65bc
Merge pull request #12567 from jeromecoutant/PR_EMAC_TRACE
...
STM32 EMAC : increase thread size when mbed-trace is enabled
2020-03-09 15:01:20 +00:00
Tymoteusz Bloch
7b9170541a
KV storage. Root of trust fix to pass Greentea tests for CY8CPROTO_062_4343W.
2020-03-09 13:53:28 +01:00
Kimmo Vaisanen
164a2cab4d
Cellular: Add ALT1250 PPP cellular target
...
Co-authored-by: Mirela Chirica <mirela.chirica@arm.com>
Co-authored-by: Antti Kauppila <antti.kauppila@arm.com>
2020-03-09 14:47:52 +02:00
Martin Kojtal
e71ab0d0f0
Merge pull request #12590 from devran01/importer-remove-license-file
...
Importer script: remove apache-2.0.txt
2020-03-09 09:01:04 +00:00
Martin Kojtal
c17f32f04e
Merge pull request #12507 from variablo87/cellular-context-semaphore-release
...
Cellular: release _semaphore only once
2020-03-09 07:14:47 +00:00
Simon Butcher
19b208f211
Update the contribution guidelines for Mbed TLS
...
This commit changes the contribution guidelines to refer the user to the
contribution guidelines in the Mbed TLS repo. It also removes the outdated references to the
CLA, and CLA not being required for trivial changes.
Signed-off-by: Simon Butcher <simon.butcher@arm.com>
2020-03-06 17:32:17 +00:00
Anna Bridge
1f2e66dd49
Merge pull request #12560 from Patater/import-mbedcrypto-3.0.1
...
crypto: Update to Mbed Crypto 3.0.1
2020-03-06 13:57:57 +00:00
Devaraj Ranganna
4773a219b8
tls: Remove apache-2.0.txt from importer script
...
Both Mbed TLS and Mbed Crypto libraries doesn't contain
`apache-2.0.txt` anymore. Do not access those files in the importer
script.
Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
2020-03-06 11:26:45 +00:00
Kevin Bracey
4759e9d667
Remove unnecessary friends of NetworkInterface
2020-03-05 16:45:36 +02:00
Kevin Bracey
70a6701006
Improve nsapi_create_stack
...
Use tag dispatch to better handle both NetworkInterface and NetworkStack
pointers.
The previous design was intended to avoid ambiguities when presented
with a scenario like
class MyDevice : public NetworkInterface, public NetworkStack {
};
TCPSocket(&MyDevice);
// Need NetworkStack *: use NetworkInterface::get_stack or
// cast to NetworkStack?
But the previous solution didn't actually work as intended. The overload
pair
nsapi_create_stack(NetworkStack *);
// versus
template <class IF>
nsapi_create_stack(IF *);
would only select the first form if passed an exact match -
`NetworkStack *`. If passed a derived class pointer, like `MyDevice *`,
it would select the template.
This meant that an ambiguity for MyDevice was at least avoided, but
in the wrong direction, potentially increasing code size.
But in other cases, the system just didn't work at all - you couldn't
pass a `MyStack *` pointer, unless you cast it to `NetworkStack *`.
Quite a few bits of test code do this.
Add a small bit of tag dispatch to prioritise the cast whenever the
supplied pointer is convertible to `NetworkStack *`.
2020-03-05 16:45:36 +02:00
Arun S
19cbfd7c15
Reverting #12312 as it breaking current WiFI
...
connect()->Disconnect() sequence
This reverts commit 18285e1fc1
2020-03-05 16:44:59 +05:30
Martin Kojtal
aa6fd58804
Merge pull request #12558 from jarlamsa/differing_eusize
...
Fix issue when TDBStore has varying erase sizes between areas.
2020-03-04 13:25:51 +00:00
Martin Kojtal
9ec6f5d8fa
Merge pull request #12536 from DavidLin1577/patch-7
...
Fixed typo 'thead' in thread_neighbor_class.h
2020-03-04 13:23:26 +00:00
Martin Kojtal
0542b40f36
Merge pull request #12537 from DavidLin1577/patch-8
...
Minor optimization to improve readability of code
2020-03-04 13:23:08 +00:00
Kevin Bracey
6f45e969b0
SocketStats: tighten up
...
* Avoid undefined behaviour when copying/clearing `mbed_stats_socket_t`.
As it contains a `SocketAddress`, memset and memcpy should not be used.
* Avoid array overrun when `mbed_stats_socket_get_each` is passed a
count greater than `nsapi.socket-stats-max-count`.
* Remove `const` from internal `stats_new_socket_entry` method to avoid
const-losing cast.
2020-03-04 14:54:17 +02:00
Kevin Bracey
eb10cc18c5
Optimise SocketStats
...
* Remove unnecessary virtual destructor.
* Use inline empty functions when disabled.
* Remove pointless `const`s from declarations.
2020-03-04 14:54:17 +02:00
Martin Kojtal
b4034dc547
Merge pull request #12551 from rajkan01/mpm_remove_deprecated
...
Remove mbed power management deprecated API
2020-03-04 08:22:52 +00:00
Martin Kojtal
6137c98d6a
Merge pull request #12543 from kivaisan/remove_deprecated_connect
...
TLSSocket: Remove deprecated connect
2020-03-04 08:20:23 +00:00
jeromecoutant
3a02671028
STM32 EMAC : increase thread size when mbed-trace is enabled
2020-03-04 09:14:41 +01:00
Martin Kojtal
498e2d2bc8
Merge pull request #12499 from u-blox/ubx_cellular
...
Cellular: For ublox modem, read '@' char first then send data.
2020-03-04 07:58:51 +00:00
Martin Kojtal
804d1e613e
Merge pull request #12489 from kjbracey-arm/override_lwip
...
C++11-ify virtualisation in lwIP classes
2020-03-04 07:58:30 +00:00