Commit Graph

737 Commits (a6151cf4c40b19022b503104916aad1b88aaf2f3)

Author SHA1 Message Date
Adam Green 7a08fb0d2b 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-07 14:02:59 +01:00
Rob Meades 703817c1e0 Introducing UBLOX_C030 platform. 2017-04-07 14:02:53 +01:00
Christopher Haster 523f543726 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-04-07 14:01:49 +01:00
Michel Jaouen bf96039159 USBHOST : fix device disconnection from hub during hub port reset 2017-04-07 14:01:15 +01:00
Ron Eldor 7e2a2ca1df Fix compilation errors on linux machine
Change path of include from '\' to '/', which works on linux as well.
2017-04-07 14:00:13 +01:00
Andrzej Puzdrowski febf63b728 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-04-07 13:59:34 +01:00
Andrzej Puzdrowski c4e6c0e938 fix: - whitelistin setup modifies identitiy flag and omits address' type. 2017-04-07 13:59:28 +01:00
Andrzej Puzdrowski b5d9db7b44 fix: Gap::setAddress implementation Gap::getPermittedTxPowerValues implemnetation 2017-04-07 13:59:21 +01:00
Andrzej Puzdrowski bb1f316ad5 Changes from CR. - fix typso, renaming, repharse commnets. - fix alghoritm of white/id lists setup functions in nRF5xGap class. 2017-04-07 13:59:15 +01:00
Andrzej Puzdrowski 69919a45e5 upgrade implementationof gap::connect in case of private address and whitelisting for SD API 3 and further 2017-04-07 13:59:02 +01:00
Andrzej Puzdrowski 3a969c6748 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-04-07 13:58:56 +01:00
Andrzej Puzdrowski d6a7eeb94c nRF5: whitelisting update fo SD API >-3.x.x 2017-04-07 13:58:44 +01:00
Andrzej Puzdrowski 0e8a393d54 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-04-07 13:58:32 +01:00
Andrzej Puzdrowski 60d90ac939 initial creation of nRF52840 BLE target implementation "NRF5_SDK13" as a copy of "NRF5" 2017-04-07 13:58:19 +01:00
Seppo Takalo 0edca5ad20 Update mbed-trace
* commit 'c8a16cc274fbbb074909690a78a9d2aaf5411d5a':
  Squashed 'features/FEATURE_COMMON_PAL/mbed-trace/' changes from 31e338c23..af5f59cd2
2017-03-28 09:28:14 +01:00
Steven Cooreman 691564aab3 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-24 20:48:20 +00:00
Steven Cooreman 62093af9de 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-24 20:47:55 +00:00
Steven Cooreman 00e1d939fa Update to Gecko SDK 5.1.2
Update RAIL library to 1.5.1
2017-03-24 20:47:09 +00:00
Steven Cooreman 94e1ad50fa First pass on TB Sense (and EFR32MG12) support 2017-03-24 20:46:35 +00:00
Yogesh Pande 8806ed6df0 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-24 20:45:06 +00:00
Kevin Bracey 2d985eb6dd 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-24 20:44:53 +00:00
jeromecoutant 9524b33821 OS2 tests minor updates for STM32
Some pin configuration are now aligned with ci-shield
2017-03-24 20:44:28 +00:00
cyliangtw f2850b0cdf remove dead code in nuc472_netif.c 2017-03-24 20:43:35 +00:00
cyliangtw fbe31a7106 Adjust locally administered MAC address 2017-03-24 20:43:23 +00:00
MS30 CYLiang 8f6171ec28 Support unique locally administered MAC address 2017-03-24 20:43:10 +00:00
Christopher Haster 48bbb7aea9 bd: Remove constraints on device for block device tests 2017-03-24 20:41:30 +00:00
Christopher Haster 5029cbcd9c bd: Added randomness to block device test and more debug friendly output 2017-03-24 20:41:18 +00:00
adustm 3604c3a7d3 remove mbedtls_printf error notification 2017-03-24 20:38:03 +00:00
adustm 48de782b58 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-03-24 20:37:55 +00:00
adustm 1a5bab8f78 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-03-24 20:37:47 +00:00
adustm ec5a2ef6f7 Add AES_CBC mode 2017-03-24 20:37:38 +00:00
adustm 7f63650a2e 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-03-24 20:37:28 +00:00
Christopher Haster 745b8effd2 Filesystem: Restored LocalFileSystem tests for mbed 2 2017-03-13 11:14:50 +00:00
Andres AG febfa8b720 Update mbed TLS feature to mbedtls-2.4.2 2017-03-13 11:14:39 +00:00
Christopher Haster 3947dbfa04 bd: Fix missing const attributes on functions 2017-03-13 11:14:31 +00:00
Vincent Coubard 6aab786ca5 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-13 11:13:33 +00:00
Simon Hughes ef6f87ab0d STORAGE: removal of unsupported tests having ported to https://github.com/ARMmbed/sd-driver basic.cpp test. 2017-03-13 11:13:06 +00:00
Hovik Melikyan 6a5d2045a7 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-03-13 11:12:55 +00:00
Christopher Haster 7521e30ec6 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-03-13 11:12:51 +00:00
Christopher Haster 2bb4d3a925 Updated includes of renamed platform header files 2017-03-03 17:52:25 +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