Commit Graph

961 Commits (f26ae03e48e8a6ae6d7ed61fbf1ecb025553a9e2)

Author SHA1 Message Date
Michel Jaouen fdde91037f USBHOST : mouse fix for high speed mouse 2017-05-09 16:18:33 +02:00
Michel Jaouen fdec62002e USBHOST: TARGET_STM add more hub to support larger hub 2017-05-09 16:18:32 +02:00
Michel Jaouen f3c6f95b0a USBHOST: USBHOST_OTHER Add timeout on TD (indentation) 2017-05-09 16:18:32 +02:00
Michel Jaouen 309b9aef62 USBHOST TARGET_STM : changes for hub support 2017-05-09 16:18:31 +02:00
Michel Jaouen c860377464 USBHOST : USBHOST_OTHER add control disable counter 2017-05-09 16:18:30 +02:00
Michel Jaouen 73d8e5e9ef USBHOST: USBHOST_OTHER fix in endpoint
- set_state specific
- speed init
2017-05-09 16:18:29 +02:00
Michel Jaouen ccce1c5273 USBHOST : change interrupt endpoint behaviour
In case interrupt reports error,
call back  can send interrupt request again.
2017-05-09 16:18:29 +02:00
Michel Jaouen fa2abd22c7 USBHost : USBHostHID , USBHostHub fix indentation. 2017-05-09 16:18:28 +02:00
Michel Jaouen bae762eb24 USBHOST: put deviceInited to false when device disconnected 2017-05-09 16:18:27 +02:00
Michel Jaouen bf2fc0a2cf USBHOST : as DISCONNECTED_EVENT from root hub is sent in irq handler
and connection from hub are  sent from usb task.
A connection on an hub port can be sent ,
after irq disconnection from root hub.
2017-05-09 16:18:26 +02:00
Michel Jaouen 41f12260b1 USBHost : fix indentation USBHost.cpp 2017-05-09 16:18:25 +02:00
Michel Jaouen 27877bd4e8 USBHOST : fix disconnection during device registering 2017-05-09 16:18:24 +02:00
Andrzej Puzdrowski 1f1168a51e NRF5: changes for code review of merg nrf52840 to NRF5 sources
s140 headers renamed form ble_* to nrf_ble_*,
Removed s130 and s132 headers named form ble_*
(Them had been added by #2ff572682798562e812015dc775b5896e0fda5a4)
Headers inclusinons were changed in order to meet above changes.

Revrted bad change in us_ticker.c:
use __disable_irq lock instead of core_util_critical_section_enter lock
for setting rtc1 tick for systick emulation as was good before.
2017-05-09 15:43:30 +02:00
Jimmy Brisson 3b11b23371 Merge pull request #4238 from tung7970/fix-mbedos
lwip - power up emac before reading its settings
2017-05-08 11:15:45 -05:00
Anna Bridge a85873c863 Merge pull request #4248 from screamerbg/fix/stm32-usb-support
Fixed STM32 USB Device support for mbed Classic
2017-05-05 13:51:38 +01:00
Kevin Bracey 984e87d8e9 NSAPI - Don't send trailing garbage in DNS queries
Observed during investigation of
https://github.com/ARMmbed/mbed-os/issues/4246 - DNS queries sent
the entire buffer, not just the bit filled in.

Inefficient, especially for 6LoWPAN, and a security hole - the trailing
data could be previously-used heap.
2017-05-05 11:35:48 +03:00
Anna Bridge e2469ecbba Merge pull request #4186 from geky/fs-dot-entries
Filesystem: Include '.' and '..' in directory iteration
2017-05-04 15:55:41 +01:00
Anna Bridge 9a3122af39 Merge pull request #4254 from 0x6d61726b/patch-3
Removed unused variable in TARGET_NXP/lpc17_emac.c
2017-05-04 15:47:43 +01:00
Jimmy Brisson d123ee1162 Merge pull request #4155 from karsev/thread_sec_policy
Thread sec policy
2017-05-02 11:33:25 -05:00
0x6d61726b acf18ac9c7 removed warning: unused variable 'ethhdr' [-Wunused-variable] 2017-04-30 16:29:47 +02:00
Mihail Stoyanov 301ce550c9 Fixed STM32 USB Device support by migrating all specific target headers to unsupported features where they belong until USB support is officially introduced in mbed OS 5 2017-04-28 17:23:07 +01:00
Tony Wu 0b2bfca6da lwip - delay mbed_lwip_set_mac_address until device is inited
mbed_lwip_set_mac_address calls mbed_mac_address to get hwaddr
from device, but device may not be accessible until it is powered
up and initialized.

This patch delays mbed_lwip_set_mac_address call until device is
ready.

Signed-off-by: Tony Wu <tonywu@realtek.com>
2017-04-28 00:30:40 +08:00
Tony Wu cdc40ff3bb lwip - power up emac before reading its settings
emac settings are only available after powered up.

Signed-off-by: Tony Wu <tonywu@realtek.com>
2017-04-28 00:15:07 +08:00
Seppo Takalo fb91d73606 Merge commit '8d65f6d10a610bd4305528f7338e081059a93fb8' as 'features/FEATURE_COMMON_PAL/nanostack-libservice' 2017-04-27 15:19:39 +03:00
Seppo Takalo 210508b801 Remove libservice, to be added as a subtree 2017-04-27 15:15:30 +03:00
Andrzej Puzdrowski 53c6f853c0 Apply resloution for the "Read long UUID of service problem" according to
NRFFOETT-1674.
2017-04-27 12:15:58 +02:00
Andrzej Puzdrowski b2080ab6d9 Make NRF5 BLE implementation compatible with SoftDevice API 2.x.x,3.x.x,5.0.0-1.alpha by
Copy of changes from
features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5_SDK13/source
to
features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5/source
2017-04-27 09:46:38 +02:00
Jimmy Brisson 143e3462a3 Merge pull request #4210 from adbridge/usb_logo
USB: Added support for the logo key to the keyboard
2017-04-24 10:56:29 -05:00
adbridge d23520ebb2 Maxim USB library update
Adding support for new platforms into official USB library
2017-04-21 17:06:46 +01:00
adbridge 906286f446 Added support for the logo key to the keyboard
Minor change - List of key modifiers updated to include the
logo/GUI/windows key. Also added the options to specify the right hand
versions of the keys rather than just the left if for some reason
someone wants to do this.

Changes are limited to the keyboard header file and are backwards
compatible.

The new modifier values are in line with the table given on page 56 of
this document http://www.usb.org/developers/hidpage/HID1_11.pdf
2017-04-21 16:56:56 +01:00
Anna Bridge 49802765a9 Merge pull request #4199 from adbridge/usb_prs
USB: bus reset for KL25Z fix, USBSerial update
2017-04-21 14:15:04 +01:00
Sam Grove 32401318a6 Merge pull request #4048 from tung7970/feature-lwipopt
Make LWIP options configurable
2017-04-20 09:05:31 -05:00
Anna Bridge 2e2fe377b3 bus reset for KL25Z fix, USBSerial update
1. added call to busReset() to KL25Z HAL; now the USB stack survives if you disconnect the cable, similar to LPC40 2. busReset callback to update terminal_connected in USBCDC 3. new bool USBSerial::connected() to read protected terminal_connected property, useful when you want to check if the terminal is ready from main app
2017-04-19 15:38:51 +01:00
Christopher Haster fd80dcc51b Filesystem: Include '.' and '..' in directory iteration
The standard is intentionally vague on if filesystems must
have '.' and '..' entries, allowing filesystems to omit this
concept completely:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/readdir.html

However, the '.' and '..' entries are common on FAT filesystems
and in most other filesystems.

This enables '.' and '..' entries in the FAT filesystem.
2017-04-13 14:30:57 -05:00
Alessandro Angelino 8bc81e0efd uVisor: Fix copy of quick-start doc in exporter script 2017-04-12 14:28:43 +01:00
Kari Severinkangas f5d6e7d33c Update README.md
Minor changes
2017-04-12 15:21:02 +03:00
Kari Severinkangas 7d2b03bde8 Update README.md
Config table updated
2017-04-11 16:37:52 +03:00
Kari Severinkangas e10f2ae287 irrelevant zeros removed from timestamp 2017-04-11 16:19:01 +03:00
Kari Severinkangas e52d3db50e Security policy defined in .json 2017-04-11 15:45:12 +03:00
Sam Grove c776eaa767 Merge pull request #3987 from karsev/thread_link_config_update
thread link configuration bypass flag in mesh-api
2017-04-10 10:16:05 -05:00
Tony Wu e9d3cf4468 lwip - make lwip thread stack size configurable
Define tcpip-thread-stacksize and default-thread-stacksize in
lwip's mbed_lib.json, and use them accordingly in lwipopts.h.

Signed-off-by: Tony Wu <tonywu@realtek.com>
2017-04-10 17:09:27 +08:00
Sam Grove 8af190f550 Merge pull request #4112 from adamgreen/fixLpc17xxEthernetIsrAlwaysLinkedIn
Only link in LPC17xx ethernet ISR as needed
2017-04-06 11:16:10 -05:00
Sam Grove 7a35a4df51 Merge pull request #3992 from u-blox/c030-dev
Introducing UBLOX_C030 platform.
2017-04-06 11:07:58 -05:00
Sam Grove 517982c6f7 Merge pull request #4060 from geky/fix-lpc1768-broadcast-recv
lpc1768: Remove invalid use of IP_SOF_BROADCAST_RECV option
2017-04-06 08:56:18 -05:00
Adam Green be0bab3f40 Only link in LPC17xx ethernet ISR as needed
Originally the ethernet ISR would be linked in to all mbed-os based
firmware because it was named ENET_IRQHandler() so that it would be
automatically placed in the FLASH image's interrupt vector table. This
meant that programs which made no use of the lwIP stack still pulled in
this ISR.

This commit changes the name of the routine so that the ISR isn't
automatically placed in the interrupt vector table at link time but is
instead dynamically placed in the interrupt vector table at runtime
when the lwIP stack is initialized. Now the ethernet ISR is only linked
in when it is actually needed.

Example arm-none-eabi-size output for a simple LED blinking program
showing the before and after size results:
   text	   data	    bss	    dec	    hex	filename
  13208	    148	   7784	  21140	   5294	LPC1768/HelloWorld.elf

   text	   data	    bss	    dec	    hex	filename
  12700	    148	   7468	  20316	   4f5c	LPC1768/HelloWorld.elf
2017-04-04 14:42:21 -07:00
Rob Meades 7387c09872 Introducing UBLOX_C030 platform. 2017-04-04 16:22:50 +01:00
bcostm bca2617662 STM32L0: add family in USBEndpoints.h 2017-03-30 14:50:13 +02:00
Sam Grove 067fe9b0e5 Merge pull request #3848 from jamike/USBAUDIO_JITTER
USBAudio: writesync with 1 sample jitter capability.
2017-03-30 00:01:07 +01:00
Christopher Haster 2918270222 lpc1768: Removed invalid use of IP_SOF_BROADCAST_RECV option
From opt.h:
IP_SOF_BROADCAST_RECV (requires IP_SOF_BROADCAST=1) enable the broadcast
filter on recv operations.

The IP_SOF_BROADCAST_RECV option does not enable or disable recieving
broadcast packets, it only enables a software filter.
2017-03-28 13:37:36 -05:00
Michel Jaouen f6f73938eb USBHOST : fix device disconnection from hub during hub port reset 2017-03-28 11:32:43 +02:00
Kari Severinkangas 8862edefad -useless static_config.h removed 2017-03-28 11:46:40 +03:00
Michel Jaouen 5913cf309e USBAudio: writesync with 1 sample jitter capability. 2017-03-28 10:22:20 +02:00
Kari Severinkangas b2b106c431 config update to the previous commit 2017-03-28 11:16:05 +03:00
Kari Severinkangas 156cd00d66 - some refactoring and cleaning 2017-03-28 11:14:03 +03:00
Anna Bridge 35a561217a Merge pull request #3934 from stevew817/siliconlabs/update_sdk_tbsense_12
[Silicon Labs] Update to HAL and devices
2017-03-24 14:16:50 +00:00
Anna Bridge 12eb5b702d Merge pull request #3841 from nvlsianpu/nRF52840_target
Add nRf52840 target
2017-03-23 15:45:44 +00:00
Anna Bridge 039ef42822 Merge pull request #3867 from geky/fs-revert-filehandle
Filesystem: Revert deprecation of FileHandle
2017-03-23 15:45:01 +00:00
Anna Bridge fd5c327de1 Merge pull request #3976 from yogpan01/master
mbed-coap error fixes merge to mbed OS
2017-03-23 15:40:41 +00:00
Anna Bridge ebfe04a841 Merge pull request #3975 from kjbracey-arm/lwip_buf_free
NSAPI/lwIP: Free held netbuf on close
2017-03-23 15:39:52 +00:00
Kari Severinkangas 90d4590a05 Arm powered core removed. 2017-03-22 14:27:48 +02:00
Sam Grove 18dee8f2f2 Merge pull request #3953 from jeromecoutant/PR_LOOP_TESTS
OS2 tests minor updates for STM32
2017-03-22 12:07:21 +00:00
Sam Grove 4b04a81d3d Merge pull request #3939 from ARMmbed/update_mbed-trace
Update mbed trace
2017-03-22 12:06:21 +00:00
Sam Grove 2d2479ac1c Merge pull request #3918 from OpenNuvoton/nuvoton
[NUC472/M453] Support unique locally administered MAC address and other driver updates
2017-03-22 12:03:19 +00:00
Sam Grove 9677218d0c Merge pull request #3747 from geky/bd-verbose-test
bd: Add randomness to block device test and more debug friendly output
2017-03-22 12:02:51 +00:00
Kari Severinkangas f359b60c2a thread-static-link-config paramter added
when false thread has empty link config
must join the network by commissioning
2017-03-22 11:08:31 +02:00
Ron Eldor c78f73ca63 Fix compilation errors on linux machine
Change path of include from '\' to '/', which works on linux as well.
2017-03-22 08:38:34 +01:00
Andrzej Puzdrowski b1e55094aa [NRF52480] fix bugs:
- 128 bits service's UUID discovered by a GATT client was shifted.
- not possible to connect while being scanning.
- not possible to scanning while being connected.
    for sd >= 3 whitelisting is now setups into setWhitelist method
- Gap::setAddress could failed
- Gap::getWhitelist wron implemenation
2017-03-22 08:38:34 +01:00
Andrzej Puzdrowski 9f0d754ab6 [NRF5_SDK13] fix:
- whitelistin setup modifies identitiy flag and omits address' type.
2017-03-22 08:38:34 +01:00
Andrzej Puzdrowski f32da7a9ee [nRF5_SDK13] fix:
Gap::setAddress implementation
Gap::getPermittedTxPowerValues implemnetation
2017-03-22 08:38:34 +01:00
Andrzej Puzdrowski 3a81e23cf2 [nRF5_SDK13] Changes from CR.
- fix typso, renaming, repharse commnets.
- fix alghoritm of white/id lists setup functions in nRF5xGap class.
2017-03-22 08:38:34 +01:00
Andrzej Puzdrowski 4e188af065 upgrade implementationof gap::connect in case of private address and whitelisting for SD API 3 and further 2017-03-22 08:38:34 +01:00
Andrzej Puzdrowski 9d8c05bbe8 introduce API update to (v3.x.x and further)in BLE_GAP_EVT_CONNECTED service.
whitelist and identiti list settings provider now takes into account scaner filter po0licy and advertise r filter policy
2017-03-22 08:38:34 +01:00
Andrzej Puzdrowski 42fcae481a nRF5: whitelisting update fo SD API >-3.x.x 2017-03-22 08:38:34 +01:00
Andrzej Puzdrowski 689d12df62 NRF5_SDK13: Make BLE sources compilable - this is not redy to use!
- Remove ble_advertising.h/c - it was unused, redundant code
- includes for SD header ble.h were changed to headers\ble.h in order to distingusch form feature-ble BLE.h
- btle_init() introduced PM for disable <B>privacy</B> for API 3 and further.
- temporary removed or mocked real implemantation of whitelist-ing support functionalities:
btle_security.createWhitelistFromBondTable , gap::startAdvertising, gat::startRadioScan, gap::stopAdvertising
Gap::generateStackWhitelist, Gap::getStackWhiteIdentityList-(mock)
- Characteristic Descriptor Discoverer - aligned to the apply SD API
- long uuid service's read spupport
- add BLE features support to sdk configurations file
- publicate sdk's id_manager.ah() function.
- cutted out f. app_error_handler for mbed-os
- removed PACKED definition form app_util_platform (redefined by mbed-os)
- Gap::setAddress  - allign to new SD API using peer manager
- extend Gap::getPermittedTxPowerValues for nRF52840
2017-03-22 08:38:34 +01:00
Andrzej Puzdrowski f1c3d75c21 initial creation of nRF52840 BLE target implementation "NRF5_SDK13" as a copy of "NRF5" 2017-03-22 08:38:34 +01:00
Steven Cooreman d2173574d0 Stop using device_has for non-mbed options
As asked by @0xc0170 in PR #3934, we won't be using device_has for indicating RF/Crypto features any longer. RF config options moved to the SL_RAIL lib.json, crypto config options will come with mbedTLS integration.
2017-03-21 16:23:52 +01:00
Steven Cooreman 2ee05def53 EFR32 radio driver small fixes
* Reduce verbosity of EFR32 radio driver when debug tracing is on.
* Correctly pass pending bit of received ACK to the stack.
2017-03-21 16:23:50 +01:00
Yogesh Pande cf8863c53b mbed-coap error fixes merge to mbed OS
This commit includes
 - Error fixes done on mbed-coap merge back to mbed OS.
 - Detailed CHANGELOG  is available here (https://github.com/ARMmbed/mbed-coap/compare/v4.0.2...v4.0.3)
2017-03-21 12:39:11 +02:00
Kevin Bracey 2f056f2814 NSAPI/lwIP: Free held netbuf on close
mbed_lwip_socket_recv() takes one netbuf at a time from the netconn API,
and it holds a partially-read netbuf if necessary in order to present as
a stream for TCP.

This held netbuf was not being freed when the socket was closed.
2017-03-21 11:14:39 +02:00
Steven Cooreman 59dc6da5c4 Update to Gecko SDK 5.1.2
Update RAIL library to 1.5.1
2017-03-20 16:34:12 +01:00
Steven Cooreman 0e098678b5 First pass on TB Sense (and EFR32MG12) support 2017-03-20 16:34:12 +01:00
jeromecoutant 23de782868 OS2 tests minor updates for STM32
Some pin configuration are now aligned with ci-shield
2017-03-16 17:48:45 +01:00
Seppo Takalo da80d6bd4b Update mbed-trace
* commit 'c8a16cc274fbbb074909690a78a9d2aaf5411d5a':
  Squashed 'features/FEATURE_COMMON_PAL/mbed-trace/' changes from 31e338c23..af5f59cd2
2017-03-16 10:54:21 +02:00
Christopher Haster 18bab4e024 Filesystem: Fixed typo in param naming 2017-03-14 11:04:22 -05:00
Christopher Haster 90fc0b9c47 FileSystem: Reverted deprecation of DirHandle
Should follow same path as FileHandle, although this is less used
and there is currently no route to introduce a hook for a customized
DirHandle in retarget.
2017-03-14 11:02:34 -05:00
Christopher Haster 61c9683644 Filesystem: Moved retarget related file interfaces into platform 2017-03-14 11:02:34 -05:00
Christopher Haster 77243ef46b Filesystem: Revert deprecation of FileHandle
As identified by @hasnainvirk, @kjbracey-arm, the FileHandle and
FileBase serve two separate functions and their integration is
limiting for certain use cases.

FileLike is actually the redundant class here, but the multiple
inheritance it provides is used as a hack by the retargeting code
to get at the FileHandle implementation bound to the FileBase name.

It may make more sense for the FileBase to inherit from FileHandle,
(with perhaps a different name), but rather than explore the
possibility, this will just restore the previous hierarchy.
2017-03-14 11:02:34 -05:00
Michel Jaouen 873cacfc73 Revert "Revert "Target stm usb config""
This reverts commit ec329be6f2.
2017-03-14 15:57:28 +01:00
Anna Bridge e743a26f94 Merge pull request #3691 from adustm/STM_aes_f439zi
[TLS / hw acceleration] AES ECB for NUCLEO_F439ZI
2017-03-14 14:32:25 +00:00
cyliangtw f429675dd0 [NUC472] remove dead code in nuc472_netif.c 2017-03-14 19:48:37 +08:00
Christopher Haster 704c94d52e bd: Remove constraints on device for block device tests 2017-03-10 11:24:28 -06:00
Christopher Haster 09b3afb598 bd: Added randomness to block device test and more debug friendly output 2017-03-10 11:24:28 -06:00
Christopher Haster 51b58b1ad4 Filesystem: Restored LocalFileSystem tests for mbed 2 2017-03-10 11:04:05 -06:00
cyliangtw c58631bb71 [NUC472] Adjust locally administered MAC address 2017-03-10 16:18:14 +08:00
MS30 CYLiang fa0f928de4 [NUC472] Support unique locally administered MAC address 2017-03-10 16:18:14 +08:00
Martin Kojtal 67f80928ea Merge pull request #3877 from andresag01/update-mbedtls-2.4.2
Update mbed TLS feature to mbedtls-2.4.2
2017-03-09 16:19:50 +00:00
Martin Kojtal 8a56c8ce9c Merge pull request #3906 from rjpdasilva/master
uVisor: Fix 'publish' and core libs dependencies
2017-03-09 16:13:15 +00:00
Martin Kojtal 7a04d580fe Merge pull request #3866 from geky/bd-fix-const-missing
bd: Fix missing const attributes on functions
2017-03-09 15:47:38 +00:00
Vincent Coubard 5596cd05cd [NRF51822] Fix reference to sleep in hal_patch override
The `sleep` function as been changed into `hal_sleep` by #3607.
Unfortunately the call to `sleep` in the hal_patch for the NRF51822 has not been
updated to `hal_sleep`. The result was a link time error for targets based on
NRF51822_LEGACY compiling with the mbed OS 5 tree.
2017-03-09 12:44:49 +00:00
Andres AG 1c8d7c1115 Update mbed TLS feature to mbedtls-2.4.2 2017-03-08 15:56:59 +00:00
Ricardo Silva 5b059821d4 uVisor: Fix 'publish' and core libs dependencies
The 'TARGET_M%' rules depend on files generated by the 'rsync' target,
so make this dependency explicit by setting 'rsync' as a pre-requisite
of 'TARGET_M%'. The 'rsync' dependency was removed from 'publish' to
avoid the case where make would select one of the 'TARGET' rules before
completing 'rsync', which would cause the build to fail.

Additionally, also moved the core libs selection in the 'TARGET_M%'
pattern rule from the pre-requisites into the rule's recipe. This is
required because when the wildcard expression used before as a
pre-requisite is expanded (make's 1st phase), it won't find any files
(not built yet via 'rsync' target), so it won't create the associated
'TARGET_M%' rules, finally causing the 'publish' target building to fail
due to missing rules for 'TARGET_M3' and 'TARGET_M4'.

With this change and the previous one, it is ensured that 'rsync' is
done before executing the recipe for 'TARGET_M%', so the required core
libs are already available and can be used from withing the recipe. The
same wildcard pattern is used as before.

The issues being fixed are visible with GNU Make 4.2.1, but not seen
with GNU Make 3.81.

Fixes issue #3905.
2017-03-08 00:49:53 +00:00
Martin Kojtal b8e1b06924 Merge pull request #3846 from simonqhughes/fs_20170227
STORAGE: removal of unsupported tests having ported to sd-driver repository
2017-03-06 16:55:28 +00:00
Martin Kojtal 1be7418883 Merge pull request #3836 from cuvva/master
Allow to redefine nRF's PSTORAGE_NUM_OF_PAGES outside of the mbed-os
2017-03-06 16:53:31 +00:00
Martin Kojtal 05e7aad52a Merge pull request #3832 from geky/lwip-fix-test-timeout
lwip: Increase timeout on network tests with python projects
2017-03-06 16:52:15 +00:00
Christopher Haster 87c0b82230 Updated includes of renamed platform header files 2017-03-01 16:45:55 -06:00
Christopher Haster 31e0875cd1 bd: Fix missing const attributes on functions 2017-03-01 16:11:40 -06:00
adustm 5c858a456e remove mbedtls_printf error notification 2017-02-28 18:07:20 +01:00
adustm d73088a90e Big commit after code review from andesag01
cleanup in include files (unrequired removed + other moved to aes_alt.h)
hcryp_aes moved to mbedtls_aes_context to allow multi instances
remove ctx->nr, ctx->buf
doxygen comments are removed (kept in .h file)
function _ALT are removed (full module _ALT)
handle error returned by HAL_CRYPxx functions
aes is symetric, remove the dupplicated set_key_enc and set_key_dec
buffer, and factorize the call to set_key function
2017-02-28 16:42:06 +01:00
adustm fe1e7aac98 Better use of MBEDTLS_AES_ALT
removed from targets.json, added in mbedtls_device.h
  remove function alternate defines (not used as we replace the full
  module)
2017-02-28 16:42:03 +01:00
adustm fa8f6e4a86 Add AES_CBC mode 2017-02-28 16:42:01 +01:00
adustm 35bf8e17e6 AES ECB for NUCLEO_F439ZI
+---------------------------+--------+--------+--------+
| test case                 | passed | failed | result |
+---------------------------+--------+--------+--------+
| mbedtls_aes_self_test     | 1      | 0      | OK     |
| mbedtls_entropy_self_test | 1      | 0      | OK     |
| mbedtls_sha256_self_test  | 1      | 0      | OK     |
| mbedtls_sha512_self_test  | 1      | 0      | OK     |
+---------------------------+--------+--------+--------+
2017-02-28 16:41:16 +01:00
Simon Hughes 8d084de412 STORAGE: removal of unsupported tests having ported to https://github.com/ARMmbed/sd-driver basic.cpp test. 2017-02-27 17:37:30 +00:00
Sam Grove 3a27568a50 Merge pull request #3773 from geky/fs-filesystem-simple-3
Filesystem: Restructure the filesystem api to be consistent with mbed OS
2017-02-24 18:25:03 -06:00
Christopher Haster 129bae4f7d Filesystem: Added test for basic filesystem operation on cpp api 2017-02-24 15:28:43 -06:00
Sam Grove 262234db27 Merge pull request #3817 from AlessandroA/update_uvisor
Update uVisor to v0.27.0
2017-02-24 14:04:26 -06:00
Christopher Haster c4649afba5 Filesystem: Last minute changes due to feedback on directory iteration
- Changed to use dirent structure type
- Fixed memory leak in closedir
2017-02-24 12:03:14 -06:00
Christopher Haster b9122c73f9 Filesystem: Integrate error handling between c++/posix layers 2017-02-24 12:03:09 -06:00
Christopher Haster c6b1fcbfa5 Filesystem: Integrate filesystem classes with common mbed.h entry point 2017-02-24 11:56:45 -06:00
Christopher Haster eea5c9f08a Filesystem: Integration with retarget code 2017-02-24 11:55:37 -06:00
Christopher Haster e5197ceaca Filesystem: Initial integration with the FATFileSystem 2017-02-24 11:53:17 -06:00
Christopher Haster ee3e920ed1 Filesystem: Moved toolchain-specific types into retarget.h 2017-02-24 11:42:32 -06:00
Christopher Haster a5245e32fe Filesystem: Created prototypical filesystem class
Intention is to make filesystem api and network stack api consistent
as current designs diverge greatly. Attempted to change as little as
possible outside of api structure.
2017-02-24 11:41:34 -06:00
Sam Grove 9844a390d9 Merge pull request #3762 from simonqhughes/ms_20170213_fs_integration
STORAGE: Merging feature-storage branch commits to master
2017-02-24 11:37:42 -06:00
Hovik Melikyan c4a979ef72 Allow to redefine nRF's PSTORAGE_NUM_OF_PAGES outside of the mbed-os source
By default the number of pstorage pages is set 1 and all addresses are
calculated in the pstorage module accordingly. Nordic recommends
changing this macro to whatever number is suitable for the app (see
https://devzone.nordicsemi.com/question/53066/what-will-be-the-starting-
address-of-pstorage-page-how-we-can-change-it/?answer=53085#post-id-5308
5) which is not quite elegant given that pstorage_platform.h is part of
the mbed-os repo. With this modification you can e.g. define
PSTORAGE_NUM_OF_PAGES on the command line, however note that you should
rebuild mbed-os with this setting as it affects pstorage_platform.c.
2017-02-24 11:24:24 +00:00
Simon Hughes 794c6f8d04 STORAGE: move fat_file_system test into external repository as this is an SDCard dependent test. 2017-02-24 10:59:46 +00:00
Christopher Haster 2cf67734c4 Filesystem: Remove invalid write to unallocated memory in heap block device 2017-02-23 20:41:38 -06:00
Sam Grove 371aaa53c3 Merge pull request #3789 from yogpan01/master
Separating CoAP library from mbed-client-c
2017-02-23 15:44:58 -06:00
Sam Grove e9880c72dc Merge pull request #3830 from ARMmbed/dummy_definitions
Add NS_DUMMY_DEFINITIONS_OK
2017-02-23 15:18:33 -06:00
Christopher Haster 2d41da2c63 Storage/lwip: Renamed lwip/errno.h -> lwip/lwip_errno.h to avoid conflicts 2017-02-23 14:23:39 -06:00
Christopher Haster ff3fc8b532 lwip: Increase timeout on tests
Sometimes when under heavy load, the CI machines can take a significant
amount of time to bring up a python process (~10s). The timeouts for
the network tests were chosen without much thought, and didn't leave
much room for this sort of delay.

This patch brings up timeouts for ntetwork tests 20s -> 60s
2017-02-23 12:18:43 -06:00
Simon Hughes 410c2f8dc0 STORAGE: rebased with master and fixed FATFileSystem.cpp merge conflicts. 2017-02-23 16:50:34 +00:00
Simon Hughes 9a1966fadb STORAGE: fixes for BlockDevice test cases. 2017-02-23 16:39:51 +00:00
Christopher Haster ea5ac4bb4d Storage: Last minute changes to the block device api
- Remove write set of functions
  - Caused confusion with small benefit
  - Trivial to add later
- Remove unused error codes
  - Initial expirementation indicates most of these may not be useful
  - Trivial to add later
- Removed bd_error_t
  - Carries to additional type information, int already carries
    sufficient connotation
  - Trivial to add later

per @c1728p9, @sg-
2017-02-23 16:39:49 +00:00
Simon Hughes 840c77793b STORAGE: Pull request 3762 review feedback changes.
- Fixing code formatting errors with astyle tool.
- Replaced use of TOOLCHAIN_xxx macros with compiler emitted macros.
- Added const to BlockDevice::get_xxx_size() member functions.
- Added documentation for FAT filesystem thread support.
- Added documentation for fat_filesystem_set_errno().
- Added documentation clarifying the reasons for errno/stat symbol definitions in retarget.h.
- Removed FAT filesystem from mbed 2 testing.
- Fixed FATMisc.h Copyright (c) 2016 year to 2017 as its a new file.
- Removed #ifndef NDEBUG from HeapBlockDevice.cpp.
- Removed unnecessary todo comment in retarget.cpp.
2017-02-23 16:39:42 +00:00
Simon Hughes b8e31c8156 Removal of SD card driver (SDBlockDevice module) and related test cases (moved into https://github.com/ARMmbed/sd-driver repository). 2017-02-23 16:39:36 +00:00
Simon Hughes 3e35d4bb81 STORAGE: added test case to write/check n x 25kB files storing ~250kB data. 2017-02-23 16:39:32 +00:00
Simon Hughes c0a53a907f STORAGE: added opendir(), readdir(), closedir() test. 2017-02-23 16:39:30 +00:00
Simon Hughes f84f2f2d20 STORAGE: missing retarget.h in fat_file_system/main.cpp for missing S_IRWXU, S_IRWXG, S_IRWXO symbols. 2017-02-23 16:39:28 +00:00
Christopher Haster cbcc445f54 Added d_type member of dirent struct to readdir 2017-02-23 16:39:25 +00:00
Simon Hughes 0b0fc7d7d1 STORAGE: fix for heap_block_device and util_block_device test binaries being too large for IAR KL25Z with MBED_STACK_STATS_ENABLED build. 2017-02-23 16:39:23 +00:00
Simon Hughes 2b96c74f84 STORAGE: Pull Request 3704 requested minor changes including:
- renaming FATFileSystemSetErrno() fat_file_system_set_errno.
- changing FATFileSystem::format() to be mount fs internally in function, rather than expecting fs to be mounted.
- requested const char *filename change.
2017-02-23 16:39:21 +00:00
Simon Hughes fdadb8cc66 STORAGE: moved toolchain_support.h into platform/retarget.h 2017-02-23 16:39:18 +00:00
Simon Hughes c877fb6287 STORAGE: compiler warning fixes. 2017-02-23 16:39:13 +00:00
Simon Hughes 860d7f03f2 STORAGE: fixing error handling for fopen() and other upper edge filesystem API methods.
- integrated work with new block api.
- Conflicts: features/filesystem/fat/FATFileSystem.cpp
2017-02-23 16:39:11 +00:00
Simon Hughes 0b7a2ca030 STORAGE: fixes for merging in format test with new block device implementation of format. 2017-02-23 16:38:22 +00:00
Simon Hughes 01baa72ab9 STORAGE: change FATFileSystem::format() to include allocation_unit argument, to facilitate fixing of inconsistent file systems.
Conflicts:
	features/filesystem/fat/FATFileSystem.cpp
	features/filesystem/fat/FATFileSystem.h
2017-02-23 16:38:19 +00:00
Simon Hughes 26141f0f5d STORAGE: test case fixes to support ARMCC and IAR toolchains. 2017-02-23 16:38:17 +00:00
Simon Hughes 4f5e94c746 STORAGE: test case fixes to support ARMCC and IAR toolchains.
Conflicts:
	features/TESTS/filesystem/fopen/fopen.cpp
2017-02-23 16:38:15 +00:00
Christopher Haster ad176c5c6a Updated filesystem tests to use FATFileSystem + SDBlockDevice 2017-02-23 16:37:18 +00:00
Christopher Haster 0176450c5a bd: Adopted the block storage api in the FATFileSystem 2017-02-23 16:37:13 +00:00
Christopher Haster ba5e1427fc bd: Added utility block device classes
- ChainingBlockDevice
- SlicingBlockDevice
2017-02-23 16:36:27 +00:00
Christopher Haster 03a332c5eb bd: Adopted the block device api in the SDBlockDevice 2017-02-23 16:36:25 +00:00
Christopher Haster 4633d3129d bd: Adopted the block device api in the HeapBlockDevice
Port of MemBlockDevice from mbed 2
2017-02-23 16:36:22 +00:00
Christopher Haster 99698379ef bd: Added prototype block device api 2017-02-23 16:36:20 +00:00
Simon D Hughes 67165e292c ARMCC temporary fixes for undefined errno symbols. 2017-02-23 16:36:18 +00:00
Simon D Hughes aefb03ccd6 ARMCC temporary fixes for undefined errno symbols. 2017-02-23 16:36:16 +00:00
Simon D Hughes 29f8d838d0 STORAGE: updated filesystem readme.md. 2017-02-23 16:36:10 +00:00
Simon D Hughes cffea7e3c4 Remove unnecesary symbol definitions. 2017-02-23 16:36:08 +00:00
Simon Hughes 8378af044f Updated filesystem README.md. 2017-02-23 16:36:06 +00:00
Simon Hughes 0c87537f10 Added errno codes to retarget, mkdir() and ftell() tests. 2017-02-23 16:36:03 +00:00
Christopher Haster 39a1eddb93 Filesystem: Added EEXIST reporting to mkdir through errno 2017-02-23 16:34:56 +00:00
Simon Hughes c8fecb6c88 STORAGE: tests added for errno, ferror() and clearerr(). 2017-02-23 16:30:55 +00:00
Simon Hughes 912044b829 FILESYSTEM: fopen() and basic test improvements. 2017-02-23 16:30:50 +00:00
Christopher Haster 9299a88e8f Filesystem: Add support for stat
Provided through FileSystemLike::stat
2017-02-23 16:30:42 +00:00
Simon Hughes 7514476e2f FILESYSTEM: Fix to only build SDFileSystem if DEVICE_SPI defined, to build correctly for targets that dont have SPI interfaces. 2017-02-23 16:30:30 +00:00
Simon Hughes 66446275fa FILESYSTEM: fix KL25Z CI build failure but not instantiaing SDFileSystem. 2017-02-23 16:30:27 +00:00
Simon Hughes 1b562cc2fe Fix fopen test build error due to #include <sys/stat.h>, which is not present. 2017-02-23 16:30:25 +00:00
Simon Hughes 5c7fdc13c7 FILESYSTEM: renamed features/TESTS/fs-fat features/TESTS/filesystem. 2017-02-23 16:30:23 +00:00
Simon Hughes 4acf33f436 FILESYSTEM: moved FAT filesystem implemenation to features/filesystem subdir, and fs-fat tests to features/TESTS. 2017-02-23 16:30:21 +00:00
Simon Hughes a35919afbe minor edits to fopen test. 2017-02-23 16:30:16 +00:00
Simon Hughes df099b8567 First version of fopen test added. 2017-02-23 16:30:14 +00:00
Simon Hughes a024a78f20 STORAGE: updated basic test case and README for moving work onto feature-storage branch. 2017-02-23 16:30:12 +00:00
Simon Hughes e84814885d Ported glibc POSIX file API test test_rdwr to greentea. 2017-02-23 16:30:10 +00:00
Simon Hughes 8206663917 Updated FAT32 readme file to switch to correct branch. 2017-02-23 16:30:07 +00:00
Simon Hughes 3fd14f2f0b Re-instating the FAT32/SDCard support with POSIX File API for mbed-client team. 2017-02-23 16:30:05 +00:00
Sam Grove 3642c3b226 Merge pull request #3736 from karsev/thread_config_update
Thread config update
2017-02-23 10:18:48 -06:00
Sam Grove cf64f09230 Merge pull request #3721 from mikaleppanen/lwip_2_0_1_stable
Lwip 2.0.1 stable
2017-02-23 10:16:57 -06:00
Sam Grove 30ddefc968 Merge pull request #3654 from geky/header-rename
Renamed files in platform to match source names
2017-02-23 10:16:35 -06:00
Sam Grove 078995a021 Merge pull request #3482 from Neuromancer2701/patch-1
Update lwipopts.h
2017-02-23 10:15:24 -06:00
Seppo Takalo 9137ba8f8a Add NS_DUMMY_DEFINITIONS_OK
Add definition from master repository.
This fixes compilation of coap_service.c on non-secure platforms.
2017-02-23 14:44:59 +02:00
Yogesh Pande f51329b858 Reverting fix for IOTCLT-1439 because of regression 2017-02-23 12:29:49 +02:00
Yogesh Pande 9f8271e495 Taking error fix for IOTCLT-1439 2017-02-23 08:23:39 +02:00
Yogesh Pande d3b48a8e2d Merge remote-tracking branch 'upstream/master' 2017-02-23 08:15:51 +02:00
Christopher Haster aff49d8d1e Renamed files in platform to match source names
critical.h     -> mbed_critical.h
sleep.h        -> mbed_sleep.h
toolchain.h    -> mbed_toolchain.h
rtc_time.h     -> mbed_rtc_time.h
semihost_api.h -> mbed_semihost_api.h
wait_api.h     -> mbed_wait_api.h
2017-02-22 18:17:54 -06:00
Kari Severinkangas 52ca190474 timestamp bit moved to correct place. 2017-02-22 14:03:59 +02:00
Kari Severinkangas 81452424d4 Security related traces removed. Network name copy fixed. 2017-02-22 13:59:31 +02:00
Kari Severinkangas 407d8d3962 yotta defines removed. minor edits on thread conf. 2017-02-22 13:59:31 +02:00
Kari Severinkangas ba5cd8c6d6 IOTTHD-1028: thread config update 2017-02-22 13:59:31 +02:00
Kari Severinkangas a26a80d686 IOTTHD-1028: thread config update 2017-02-22 13:59:31 +02:00
Sam Grove 6f6e5c478f Merge pull request #3784 from geky/nsapi-sigio
nsapi: Rename attach -> sigio to decrease confusion on its behaviour
2017-02-21 10:56:40 -06:00
Sam Grove cfd517a3a0 Merge pull request #3783 from geky/cb-deprecate-attach
Callback: Deprecate attach member function in favor of simple assignment
2017-02-21 10:55:44 -06:00
Sam Grove 094fab43e7 Merge pull request #3760 from adustm/usb_txsize_fix
Fix #3756 for 64 bytes transfers
2017-02-21 10:47:44 -06:00
Alessandro Angelino ad436c4c92 uVisor: Update to version 0.27.0
* Updated docs
* Re-factored vMPU drivers
* Non-backwards-compatible API change: uvisor_ctx is now called
  __uvisor_ctx and requires the user to explicitly cast it to their own
  private context structure.
  This only affects applications with uVisor enabled.
* Use "public box" instead of main box for box 0.
2017-02-21 13:24:23 +00:00
Alessandro Angelino e18c1186b8 uVisor: Add header file copy to importer script
The core_cmSecureAccess.h file contains secure-access APIs that are a
good candidate for a proposal to CMSIS. At the moment we maintain these
APIs ourselves in ARMmbed/uvisor, and will push updates to
ARMmbed/mbed-os when running our usual importer script.
2017-02-21 13:09:31 +00:00
Mika Leppänen 90db9c0cb4 Corrected IAR compilation and removed compiler warnings 2017-02-21 14:31:26 +02:00
Mika Leppänen 30b6d2304d Set TCP socket created by accept to non-blocking mode 2017-02-21 14:31:10 +02:00
Mika Leppänen 93f02e4fed Renamed filter constant 2017-02-21 14:30:45 +02:00
Mika Leppänen b62df0033f Merged lwip 2.0.1 stable to mbed-os
* commit '61a7b15741c964dfa1f1a14244de38ea4e2ce22a':
  Squashed 'features/FEATURE_LWIP/lwip-interface/lwip/' changes from d7a6c6d..10f93f4
2017-02-21 14:27:32 +02:00
Sam Grove 7fc73e42f2 Merge pull request #3781 from geky/lwip-dtls-speed
lwip: Added delay to dtls handshake test to compensate for local network
2017-02-17 09:20:58 -06:00
Sam Grove 2a331143c8 Merge pull request #3772 from Ingramz/master
Improve readability of USBHID related descriptors
2017-02-17 09:20:42 -06:00