Russ Butler
7c96e22fa7
Move USBDevice processing out of user callbacks
...
Perform processing triggered by user callbacks when USB is being
unlocked rather than synchronously. This prevents recursive callbacks
which reduces stack usage. This also prevents state change inside
the user callback which makes the code easier to reason about.
2019-02-22 10:52:33 -06:00
Russ Butler
ff157a237a
Update stall state on set and clear feature
...
Call USBDevice::endpoint_stall/unstall in the request to set/clear
halt so the endpoint state is properly updated in the array
_endpoint_info.
2019-02-22 10:52:33 -06:00
Russ Butler
23f3c01633
Fix USB init problems
...
Initialize the _transfer structure so the behavior is the same
regardless of prior memory contents. This fixes a hang during
USB testing when CI flags are used.
2019-02-22 10:52:33 -06:00
Russ Butler
de12bb57fa
Update USBTester for simplified read handling
...
Remove read_start and replace read_finish with read to match the new
USBDevice API.
2019-02-22 10:52:33 -06:00
Russ Butler
3168a92231
Change USBDevice read handling
...
Remove the USBDevice function read_start and automatically start all
reads internally in USBDevice. This patch also renames the function
read_finish to read.
2019-02-22 10:52:33 -06:00
Russ Butler
57ca5bc335
Add and assert USB callback completion
...
Assert that when a callback is completed it is the active callback.
2019-02-22 10:52:33 -06:00
Russ Butler
23615a7769
Update Kinetis USB to match the USBPhy API
...
Copy the Kinetis USB driver files from
mbed-os\features\unsupported\USBDevice\targets\TARGET_Freescale
and update them to match the new USBPhy API.
2019-02-22 10:52:33 -06:00
Russ Butler
25fb3183cf
Add Kinetis USB files
2019-02-22 10:52:32 -06:00
Russ Butler
2e7e026d2f
Remove mbed 2 USB tests from Travis
...
Remove the mbed 2 USB tests since USB support will be part of mbed 5.
2019-02-22 10:52:32 -06:00
Russ Butler
4be11ff158
Add USBPhy for the LPC17xx
...
Move the LPC17xx USB driver files from
mbed-os\features\unsupported\USBDevice\targets\TARGET_NXP
and update them to match the new USBPhy API.
2019-02-22 10:52:32 -06:00
Russ Butler
f9f12766d8
Add USBDevice test code
...
Add a USB test and the class USBTester.cpp to go along with it.
2019-02-22 10:52:32 -06:00
Russ Butler
caace4ac61
Update USBDevice and configure to use a USBPhy
...
Update the USBDevice class API so it matches mbed-os's naming
conventions, has a more robust API and uses USBPhy as its backend.
2019-02-22 10:52:32 -06:00
Russ Butler
f7cb2cd280
Update USB licenses and format code
...
Update USB licenses from MIT to Apache 2 and run astyle on the code.
2019-02-22 10:52:32 -06:00
Russ Butler
a4b6cfe90a
Copy USBDevice from unsupported
...
Copy the USBDevice code out of unsupported and into a top level USB
folder in preparation for development.
squash
2019-02-22 10:52:32 -06:00
Russ Butler
8ae123f2d4
Add USBPhy, USB HAL and Utility class
...
Add the USBPhy and USBPhyEvents abstract classes, the HAL header using
this class and the EndpointResolver utility class.
2019-02-22 10:52:32 -06:00
Cruz Monrreal
e03b3b68c1
Merge pull request #9806 from SenRamakri/sen_UpdateStatsARMCCFlags
...
Update mbed_stats.c to use __ARMCC_VERSION flag for compatibility with AC6
2019-02-21 21:36:33 -06:00
Cruz Monrreal
497d0d65c3
Merge pull request #9802 from orenc17/patch-2
...
Fix psa_system_reset() on PSA IPC platform
2019-02-21 17:31:11 -06: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
Senthil Ramakrishnan
3fb8224237
Update mbed_stats.c to use __ARMCC_VERSION flag to be compatible with AC6
2019-02-21 17:12:09 -06:00
Cruz Monrreal
77591fbdd3
Merge pull request #9772 from kfnta/tfm_extras
...
Additions to TF-M source integration
2019-02-21 15:32:28 -06:00
Cruz Monrreal
2ecb0a5031
Merge pull request #9798 from jeromecoutant/PR_LPTICKER_BOOTLOADER
...
STM32 LPTICKER (LPTIM): correct init execution after bootloader
2019-02-21 13:55:20 -06:00
Oren Cohen
3c5c205a23
Add flash IAP to sequana_psa m4
2019-02-21 20:59:19 +02:00
Oren Cohen
922cdeab82
Update crypto IPC handling of negative errors
2019-02-21 20:59:18 +02: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
Cruz Monrreal
235a75f5b8
Merge pull request #9796 from SeppoTakalo/wiced_binaries
...
New Wiced binaries
2019-02-21 12:10:16 -06:00
Oren Cohen
6b68bf7fdf
Fix psa_system_reset on PSA IPC platform
2019-02-21 19:50:02 +02:00
Cruz Monrreal
091da53589
Merge pull request #9783 from bridadan/fix_unsigned_crc_header
...
Ensure header CRC is written as unsigned int
2019-02-21 11:23:23 -06:00
Cruz Monrreal
01aeb48d0f
Merge pull request #9767 from TacoGrandeTX/fix_nrf_swo_led2_clash
...
Remove ITM from NRF52_DK and DELTA_DFBM_NQ620 targets
2019-02-21 11:01:46 -06:00
Cruz Monrreal
bba538c714
Merge pull request #9777 from ashok-rao/MTB_STM_L475
...
Adding STM32_L475 as a new MTB target
2019-02-21 10:37:59 -06:00
Cruz Monrreal
5a2e135283
Merge pull request #9782 from Rhomb-io/master
...
Adding RHOMBIO_L476DMW1K as a new Board target
2019-02-21 10:31:03 -06:00
Michael Schwarcz
7016ac7d8c
Add image signing scripts from TF-M bl2 library
2019-02-21 17:42:58 +02:00
Michael Schwarcz
d2c433ccfe
TFM Importer: Update SHAa of TFM patches
2019-02-21 17:42:56 +02:00
Oren Cohen
8800ad5c80
TFM: Add defines to mbed_lib.json
2019-02-21 17:38:30 +02:00
Michael Schwarcz
6354b9a473
TF-M patch: More fixes to tfm_memory_check issue (TF-M issue #224 )
...
- Link to bug tracking: https://developer.trustedfirmware.org/T224
2019-02-21 17:38:30 +02:00
jeromecoutant
0d620fe720
STM32 LPTICKER (LPTIM): correct init execution after bootloader
2019-02-21 16:25:20 +01:00
Seppo Takalo
98846b64ec
New Wiced binaries
2019-02-21 16:59:11 +02:00
Martin Kojtal
baed84a109
Merge pull request #9670 from kegilbert/timeout_units
...
Add units to timeout argument in EventFlags
2019-02-21 15:53:38 +01: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
Guillermo Alonso
16628d7b8d
Change in license identifier, removed commented dead code
...
Change in license identifier
Removed commented dead code
Removed some tab space
2019-02-21 11:55:41 +01:00
Ashok Rao
9102b59824
Changing SPDX license identifier to BSD-3-Clause
2019-02-21 10:35:25 +00:00
Brian Daniels
434d86b08a
Ensure header CRC is written as unsigned int
2019-02-20 20:30:54 -06:00
kegilbert
f1abca35cf
Change EventFlag timeout paramter
...
Matches rest of RTOS class timeout parameters by using the unit name. Remove ambigious statement in reference to 0 ms being no-timeout as a timeout of 0 causes the function to not block and return immediately (osWaitForever is used as no timeout as it will wait forever)
2019-02-20 17:52:28 -06:00
Jaeden Amero
fdc57f88cf
crypto: Update to Mbed Crypto 1.0.0d4
2019-02-20 22:21:16 +02:00
Cruz Monrreal
f61dee1626
Merge pull request #9774 from 0xc0170/fix_license_md
...
license: use .md extension
2019-02-20 12:14:33 -06:00
Cruz Monrreal
813c844fb4
Merge pull request #9745 from moranpeker/psa_security_lifecycle
...
Fix incorrect return value in psa_security_lifecycle_state (emul)
2019-02-20 12:12:56 -06: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
2910ed54c1
Merge pull request #9277 from deepikabhavnani/flags_fixes
...
Sleep: error flags fix
2019-02-20 12:07:15 -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