Commit Graph

7124 Commits (6768d81691c71943adea826c3af5aab7dfed89e1)

Author SHA1 Message Date
Vincent Coubard 1f53752dd1 Merge pull request #2 from anangl/nrf52_nrf51_unified_integration
Fixed RTC1_IRQHandler linking problem.
2016-07-22 20:31:26 +01:00
Głąbek, Andrzej d59608a85b Refactored serial_api implementation, improved asynchronous routines.
Not using Nordic SDK driver now, since it prevented interrupts from being handled properly.
2016-07-22 21:12:28 +02:00
Jimmy Brisson a603bb0e01 Fix "project.py --help - typerror type argument unexpected" (#2223) 2016-07-22 12:59:57 -05:00
Alessandro Angelino bb12868ce5 uVisor: Update to v0.20.0-alpha
This release brings the support of Keil RTX with uVisor on mbed OS, plus
several other improvements.

**New features**

* Integration in Keil RTX in mbed OS.
* Secure dynamic allocation APIs.
* Box initialization routines.
* Register gateway.
* vMPU recovery generalized for both Kinetis and ARMv7-M MPUs.
* APIs for per-box interrupts disablement and re-enablement.

**Work in progress**

* Remote Procedure Call (RPC). New API signatures have been published.
* The alpha-level implementation will follow soon.

**Deprecated features**

* Secure gateway. Cross-box communication will be implemented with RPC
* gateways.

**Bugfixes**

* Several ARMv7-M-specific bug fixes.
* Fixed a bug that sent the device into lock-up after a hard fault.
* Fixed checks on revision numbers for Cortex-M devices.

**Miscellaneous improvements**

* Optimized memory protection for ARMv7-M devices with shared SRAM.
* Build artifacts are grouped into the target/build
* option/configuration-specific folder.
* Documents have been grouped into API vs. core documents.
* Improved style and consistency.
2016-07-22 15:54:47 +00:00
Alessandro Angelino 99ea8a3649 uVisor: Add RPC API header files 2016-07-22 15:54:19 +00:00
Alessandro Angelino a5d2127e0c uVisor importer: Update the path of QUICKSTART.md 2016-07-22 15:51:42 +00:00
Alessandro Angelino e6effc2540 uVisor importer: Point to the master branch 2016-07-22 15:50:48 +00:00
Bogdan Marinescu b8ab75db03 Includre rtos.h in mbed.h if present
So that apps don't need to include "rtos.h" explicitly anymore.
2016-07-22 18:08:32 +03:00
Jarek Zgoda 8c785e5022 [BLUEPILL_F103C8] Sleep code refactor 2016-07-22 15:10:13 +02:00
Głąbek, Andrzej 42d9898fd0 Fixed RTC1_IRQHandler in a bit more elegant way. 2016-07-22 14:58:17 +02:00
Martin Kojtal 6b8ff8feb3 Merge pull request #2192 from egostm/sleep_code_refactor
[STM32] Sleep code refactor
2016-07-22 13:40:06 +01:00
Głąbek, Andrzej 900acc6562 Fixed RTC1_IRQHandler linking problem. 2016-07-22 13:33:02 +02:00
Mihail Stoyanov c8a5aae7ab Merge pull request #2098 from svastm/switch_default_build
[STM32XX] Fix default build
2016-07-22 12:11:07 +01:00
Martin Kojtal d5b839fa7d Merge pull request #2218 from fvincenzo/master
[BEETLE] Add comment to clarify LEDs Emulation
2016-07-22 12:05:57 +01:00
Vincenzo Frascino 015067f73b [BEETLE] Add comment to clarify LEDs Emulation
Beetle board is built to optimize power consumption therefore does not
provide on-board LEDs.

This patch adds a comment in PinNames in order to clarify that the
Emulated LEDs are provided for compatibility reasons with the MBED test
suite.

Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
2016-07-22 10:28:27 +01:00
Martin Kojtal 51cd3cb972 Merge pull request #2191 from geky/callback-fp-deprecate
[api] Mark FunctionPointer and friends as deprecated
2016-07-22 10:25:07 +01:00
Martin Kojtal 239f31b437 Merge pull request #2199 from neilt6/rtos-timer-update
[RTOS] Updated RtosTimer to use Callback
2016-07-22 10:17:32 +01:00
Rohit Grover 9182b6d57d erase-optimization: check sectors for all-1s before launching erase
With this change, we check for all-1s before executing erase. This means that
the cost of erasing a range is now proportional to the amount of sectors which
have been programmed. This should result in latency improvements in our use of
containers based on flash storage.
2016-07-22 10:08:37 +01:00
Rohit Grover 1efb48f4b1 add helper function launchCommandFromIRQ() 2016-07-22 09:57:28 +01:00
Rohit Grover 02738b7af6 Add a separate error code for runtime/intergrity-check failures 2016-07-22 09:51:11 +01:00
Martin Kojtal 37e254fa16 Merge pull request #2204 from fvincenzo/master
Lp_ticker and Us_ticker time count fix
2016-07-22 09:50:05 +01:00
Rohit Grover 8396aafb5a add missing include for stdint.h to Driver_Storage.h 2016-07-22 09:38:11 +01:00
Rohit Grover 81ab477abc switch to using more specific names in DEVICE_STORAGE_CONFIG_*
This should help avoid conflicts with configs for other Storage devices in the
future.
2016-07-22 09:31:43 +01:00
Rohit Grover c82e7775b1 minor fixes to include headers 2016-07-22 09:21:58 +01:00
Rohit Grover 9014777a31 remove an un-necessary comment header 2016-07-22 09:17:44 +01:00
Rohit Grover 4f2c3edf5b salvaging the changes from PR#2150 which are useful in spite of fix to RWW
The RWW fix is controversial because it requires holding off interrupts for
periods of around 5ms at a time. But there were still some minor improvements
around that change which could be retained. This commit contains these
changes.
2016-07-22 09:14:39 +01:00
Martin Kojtal 781fda0465 Merge pull request #2193 from neilt6/lpc15xx-ticker-fix
[LPC15XX] Fixed µs_ticker implementation
2016-07-22 09:11:17 +01:00
Vincent Coubard 50ce4fd59c Initialize ticker prior to read, this is required by the wait_api module. 2016-07-22 08:41:34 +01:00
Christopher Haster 1fcc02318a Add 'features/net/FEATURE_IPV4/lwip-interface/' from commit '63e816f0858cf3de3678aea4deec941add516790'
git-subtree-dir: features/net/FEATURE_IPV4/lwip-interface
git-subtree-mainline: 83f24fb0bd
git-subtree-split: 63e816f085
2016-07-22 02:04:56 -05:00
Christopher Haster 63e816f085 Adopted nsapi_stack_t in lwip
- Removes problem with non-gced vtables
- Moves some tedius operations up into the nsapi
2016-07-22 02:02:38 -05:00
Christopher Haster a40c23d214 Adopted the nsapi_socket_t type in lwip 2016-07-22 02:02:38 -05:00
Christopher Haster f49aa238d2 Adopted nsapi header in lwip 2016-07-22 02:02:38 -05:00
Christopher Haster c412a0cfde Adopted SingletonPtr to avoid vtable leak in lwip
Globally declared C++ classes with vtables are not gced by current
toolchains, even if the C++ class contains no member variables and
no constructor. This causes all of lwip to be dragged into resulting
binaries, even if lwip is not accessed.

Adoption of the SingletonPtr class in lwip allows us to workaround
this issue.
2016-07-22 02:02:38 -05:00
Christopher Haster 3b20e4b8f3 Moved to static declaration of LWIPStack and refactored a bit
- Renamed LWIPInterface to LWIPStack
- Moved LWIPStack to static declaration
- Removed hidden comments
- Reduced lwip includes
2016-07-22 02:02:38 -05:00
Christopher Haster 004750be26 Move to lwip netconn api to correctly synchronize multiple threads
- lwip socket api did not provide signaling mechanism compatible with
  mutliple stacks
- lwip raw api did not support multiple threads

The netconn api provides the necessary signalling mechanism while still
supporting multiple threads. The netconn api also shares several design
similarities to the current socket api.

Additionally, the move to a higher-level api reduced implementation
complexity significantly and will hopefully reduce integration
difficulties
2016-07-22 02:02:38 -05:00
Christopher Haster 41629b49c6 Added stddef.h include to cc.h in lwip for size_t define
per @cyliangtw
2016-07-22 02:02:37 -05:00
Armelle DUBOC 59a18290de Workshop st: Add IPV4 feature to NUCLEO_F746ZG platform (#438)
* NUCLEO_F746ZG : enable Ethernet and LwIP for this target.
Net tests were passed :
mbed-os-features-feature_ipv4-tests-mbedmicro-net-nist_internet_time_service
| OK
mbed-os-features-feature_ipv4-tests-mbedmicro-net-tcp_client_hello_world
| OK
The 2 other are failing because I cannot test them on my ST computer.
2016-07-22 02:02:37 -05:00
Russ Butler 35ca7d108a Separate interface from stack for ethernet
Refactor LWIPInterface so it is a NetworkInterface rather than a
NetworkStack.  Rename LWIPInterface to EthernetInterface since it
is no longer a stack.  Update tests to use this new name.
2016-07-22 02:02:37 -05:00
Sam Grove 6762ead376 add lwip to all c files that come from the lwip codebase to reduce duplicate file names when exporting. 2016-07-22 02:02:37 -05:00
Russ Butler 3fe5d320ec Fix LPC1768 tests
Don't have GCC_ARM use GCC_CR's memory region in mem.c.  This fixes
some tests.
2016-07-22 02:02:37 -05:00
Sam Grove 89d02fab17 added default placement macro for all boards and toolchains 2016-07-22 02:02:37 -05:00
Sam Grove f4e3ab4058 add IAR placement for LPC1768 and lwip buffers 2016-07-22 02:02:37 -05:00
Christopher Haster 68365a9a59 Increased lwip connect timeout to 5 seconds by default
For very slow networks the previous default has be problematically short
2016-07-22 02:02:37 -05:00
Christopher Haster d82bbb1c40 Fixed incorrect semaphore handling on lwip connect and socket_connect
- Semaphore returns 0 on timeout, and negative was incorrect used for
  errors
- Correctly checked error code on tcp_connect

thanks to @LiyouZhou
fixes #284, fixes #285, fixes #166
2016-07-22 02:02:37 -05:00
Christopher Haster df5c05f38c Added handling for already connected sockets in LWIPInterface::connect 2016-07-22 02:02:37 -05:00
Christopher Haster 9eac5102fd Fixed behaviour of get_ip_address and get_mac_address for LWIPInterface
per the socket API documentation:

  /** Get the local IP address
   *
   *  @return         Null-terminated representation of the local IP address
   *                  or null if not yet connected
   */
  virtual const char *get_ip_address() = 0;

LWIPInterface incorrectly returned "\0" if unconnected
2016-07-22 02:02:37 -05:00
Christopher Haster 53349343e9 Added NSAPI_KEEPIDLE option to the socket API and LWIPInterface 2016-07-22 02:02:37 -05:00
geky 864c73b64a Implement the NSAPI_KEEPINTVL in the LWIPInterface 2016-07-22 02:02:37 -05:00
Christopher Haster b251c59ffe Added support for NSAPI_KEEPALIVE in LWIPInterface 2016-07-22 02:02:37 -05:00
Christopher Haster 05b21d7b2d Fixed uninitialized port in lwip dragged in by KSDK2 2016-07-22 02:02:37 -05:00