Commit Graph

29663 Commits (88a6d37a0740ed56ecd5a0b366cbb00826b301b1)

Author SHA1 Message Date
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 4f7abe970f
Merge pull request #12746 from deepak-shreshti/master
Removed Toshiba targets (AdBun-M066, M3H6 & M3HQ).
2020-04-17 10:06:06 +02: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
Martin Kojtal dcd863bfe9
Merge pull request #12736 from Patater/rtosv2-compat
rtos: Improve CMSIS-RTOSv2 app compatibility
2020-04-17 09:29:01 +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
Deepak Shreshti dc4f086129 Removed Toshiba target AdBun-M066, M3H6 and M3HQ.
---
AdBun-M066

Removed from targets.json
5d64e55880/targets/targets.json (L12900-L12941)

Deleted directory
https://github.com/ARMmbed/mbed-os/tree/master/targets/TARGET_TOSHIBA/TARGET_TMPM066

Removed from mbed_rtx.h
5d64e55880/targets/TARGET_TOSHIBA/mbed_rtx.h (L23-L33)
---

AdBun-M3H6

Removed from targets.json
5d64e55880/targets/targets.json (L13465-L13507)

Deleted directory
https://github.com/ARMmbed/mbed-os/tree/master/targets/TARGET_TOSHIBA/TARGET_TMPM3H6

Removed from mbed_rtx.h
5d64e55880/targets/TARGET_TOSHIBA/mbed_rtx.h (L47-L53)
---

AdBun-M3HQ

Removed from targets.json
5d64e55880/targets/targets.json (L14159-L14208)

Deleted directory
https://github.com/ARMmbed/mbed-os/tree/master/targets/TARGET_TOSHIBA/TARGET_TMPM3HQ

Removed from mbed_rtx.h
5d64e55880/targets/TARGET_TOSHIBA/mbed_rtx.h (L63-L69)
---
2020-04-17 10:22:33 +05:30
Kyle Kearney 76a14f2ff4 Cypress: Fix unitialized memory in spi_master_write
'received' was declared as an int but populated by cyhal_spi_transfer
after being cast to to (uint8_t *), which left the upper 3 bytes
uninitialized. Instead, declare as uint8_t and let the compiler upcast
the value when it is returned.
2020-04-16 16:54:12 -07: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
Martin Kojtal bb8038513f
Merge pull request #12741 from kivaisan/add_lora_drivers
Add Semtech Lora radio drivers
2020-04-16 17:04:03 +02:00
Martin Kojtal 8fea81a96a
Merge pull request #12738 from Patater/rip-mbed-spm
Remove Mbed SPM
2020-04-16 17:01:39 +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
Jaeden Amero 07a84ec10a psa: Remove MBED_SPM code
All MBED_SPM targets have been removed previously, via commits
5cc66282dd ("PSOC6: remove PSA targets") and 115b09aba43b ("psoc6:
Remove FUTURE_SEQUANA and FUTURE_SEQUANA_M0"). Remove all the dead
MBED_SPM code, as no targets use it.

Signed-off-by: Jaeden Amero <jaeden.amero@arm.com>
2020-04-16 14:10:54 +01:00
Jaeden Amero 47b359974f psoc6: Remove FUTURE_SEQUANA and FUTURE_SEQUANA_M0
FUTURE_SEQUANA targets are no longer supported. Remove the target from
Mbed.

Signed-off-by: Jaeden Amero <jaeden.amero@arm.com>
2020-04-16 14:10:51 +01:00
Martin Kojtal 7f4dc90853
Merge pull request #12815 from kivaisan/allow_debug_at_null
Cellular: Fix build problem if cellular.debug-at is set as null
2020-04-16 15:02:41 +02:00
Martin Kojtal 3f4e8e500c
Merge pull request #12755 from artokin/update_astyle_filtering_rules
Update astyle filtering rules for Nanostack
2020-04-16 13:39:25 +02:00
Rajkumar Kanagaraj 8bc7ffe6e3 Baremetal: Enable Semaphore greentea test 2020-04-16 12:07:05 +01: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 fcc20b1201
Merge pull request #12765 from MultiTechSystems/update-mdot-target
Update MTS_MDOT_F411RE target and remove bootloader from tools
2020-04-16 11:53:26 +02:00
Hugues Kamba d6b764e75f Remove deprecated Platform header files 2020-04-16 09:28:27 +01:00
Devaraj Ranganna fa5a954031 rtos: Improve CMSIS-RTOSv2 app compatibility
Some non-Mbed-OS, pre-existing CMSIS-RTOSv2 applications depend on
CMSIS-RTOSv2 Automatic Dynamic Allocation, also known as Object-specific
memory pools. Mbed OS doesn't by default provide any memory to the
CMSIS-RTOSv2 Automatic Dynamic Allocation pool, as doing so would waste
memory if the feature is not used; even if the feature is used, as a
platform, Mbed OS can't know how many objects of which types will be
created by an application and therefore will either waste memory or not
provide enough memory in a hard to debug manner. Portable CMSIS-RTOSv2
applications depending on CMSIS-RTOSv2 Automatic Dynamic Allocation
should instead configure the memory pools themselves, as applications
know best their memory requirements.

Add Mbed configuration options which can be used by applications to
control the amounts of memory available to the CMSIS-RTOSv2 Automatic
Dynamic Allocation subsystem. This enables portable CMSIS-RTOSv2
applications, which can run on any CMSIS-RTOSv2 OS, to be able to run on
Mbed OS as well.

RTX's configuration options for CMSIS-RTOSv2 memory are documented at
http://www.keil.com/pack/doc/CMSIS_Dev/RTOS2/html/config_rtx5.html

Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
Signed-off-by: Jaeden Amero <jaeden.amero@arm.com>
2020-04-15 18:08:14 +01:00
Martin Kojtal a252b073cf
Merge pull request #12797 from AGlass0fMilk/stm-custom-board
Add custom board option to STM32 pins generation script
2020-04-15 17:01:33 +02:00
Martin Kojtal 4c08455125
Merge pull request #12778 from GaborAbonyi/add_i2c_to_musca_b1
Add I2C api to Musca-B1 target
2020-04-15 16:53:35 +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
Martin Kojtal 9ffc5bcaa6
Merge pull request #12779 from rajkan01/eventflags_greentea_test
Baremetal: Enable EventFlags greentea test
2020-04-15 15:00:48 +02:00
Martin Kojtal 58de040af3
Merge pull request #12674 from LDong-Arm/ble_remove_deprecated_targets
Remove Maxim and SoftDevice BLE stacks which do not support the latest APIs
2020-04-15 14:23:21 +02:00
Lingkai Dong 6954dbe17d targets.json: further clean-up of SoftDevice configurations 2020-04-15 10:29:01 +01:00
Gabor Abonyi b442e35f85 Add I2C api to Musca-B1 target
Change-Id: Iab5a76e6b8ea28933b39b4ec4ee753f45e5bfcc7
Signed-off-by: Gabor Abonyi <gabor.abonyi@arm.com>
2020-04-15 11:13:46 +02:00
Lingkai Dong a85c157952 Remove Nordic SoftDevice BLE driver 2020-04-15 09:57:42 +01:00
Lingkai Dong 897acb8f8e Disable Nordic SoftDevice BLE stack from targets (affects NRF51* targets)
The Nordic SoftDevice BLE stack used by NRF51* targets only
supports legacy BLE APIs which we will removed completely.

Note: NRF52* targets which use Cordio BLE stack are unaffected.
2020-04-15 09:57:38 +01:00
Lingkai Dong 4cb729fb49 Remove Maxim BLE stack which does not implement the new API 2020-04-15 09:51:14 +01:00