Vincent Coubard
eed52a05d5
Replace default_handlers value by a reference.
2016-08-30 13:29:12 +01:00
Vincent Coubard
4bf28d474c
Convert case_control to a POD.
2016-08-30 13:29:10 +01:00
Vincent Coubard
7a6edda44c
Enhance compatibility between control_t and base_control_t:
...
* Add conversion operator in control_t to convert instances to base_control_t
2016-08-30 13:29:09 +01:00
Vincent Coubard
6d319c521f
Construct control_t from a POD struct.
...
Replace const control_t instances by this POD.
This save memory and prevent inclusion of the constants in the binary if
they are not used.
2016-08-30 13:29:07 +01:00
Vincent Coubard
8fa239cdfd
Move constant definitions of non POD object into cpp file.
...
It save space and fix the ODR violation.
2016-08-30 13:29:05 +01:00
Vincent Coubard
2bc5c3d069
Move global Timeout object from utest_shim in static function.
...
The change of scope allow the linker to remove the variable if not used.
2016-08-30 13:29:03 +01:00
Vincent Coubard
acc3115e27
Move utest global serial object into a function.
...
That way it is not a global object anymore and is not attached to the
.init section and init array. If the function which contain the object is
not called then the serial object will not be present in the final binary.
2016-08-30 13:23:08 +01:00
Jussi Vatjus-Anttila
691555aa22
initial github issue and PR templates
2016-08-30 11:06:18 +03:00
Toyomasa Watarai
270780c025
Use pre_main symbol instead of software_init_hook
2016-08-30 16:37:01 +09:00
Christopher Haster
c3130e51e4
lwip - Added check for previously-bound socket
...
Avoids what turns into an infinite loop in lwip's internals
2016-08-29 18:47:30 -05:00
Christopher Haster
db2738f850
nsapi - Corrected handling of errors in TCPServer accept
...
- Corrected handling, before errors would forcibly restart the
accept loop without checks for timeouts
- Rearranged accept logic to match the logic of
recv/send/recvfrom/sendto
2016-08-29 17:38:06 -05:00
Christopher Haster
506aa3d4ea
lwip - Fixed handling of max sockets in socket_accept
2016-08-29 17:37:13 -05:00
Russ Butler
dd07c522c9
Fix double free in NanostackInterface
...
When freeing all memory in the rx buffer chain set the head pointer to
NULL. This prevents the head rx buffer from getting freed twice.
2016-08-29 17:14:16 -05:00
Jimmy Brisson
f7a1d1f749
Move to feature filter for target and toolchain detection; print passed tests
2016-08-29 14:38:16 -05:00
Jimmy Brisson
78028a9ceb
Move example tests to their own folder
2016-08-29 14:01:57 -05:00
Jimmy Brisson
95ee4f6370
Use json for the example to target mapping and print failures
2016-08-29 13:46:39 -05:00
Jimmy Brisson
eb11561c1f
Add smoke test that builds example programs with mbed-cli
2016-08-29 11:26:37 -05:00
Sam Grove
9111aa4c2d
Merge pull request #2570 from yogpan01/compilation-fix
...
Fix failing compilation for mbed-os
2016-08-29 11:07:36 -05:00
Jimmy Brisson
c7bf3fac60
Allow an empty or mal-formed config to be passed to the config system
2016-08-29 10:03:36 -05:00
Yogesh Pande
be70130f3e
Fix failing compilation for mbed-os
...
This commit fixes issue
https://github.com/ARMmbed/mbed-os/issues/2569
This commit has to go in coming mbed-os release else the build is broken.
2016-08-29 14:49:29 +03:00
svastm
e68b5f9a4e
[STM32F1] Add tests for asynchronous serial
2016-08-29 10:27:03 +02:00
svastm
a2aadc2c46
[STM32F1] Enable asynchronous serial
2016-08-29 10:25:57 +02:00
svastm
c9db4ba141
[STM32F1] Add asynchronous serial
2016-08-29 10:25:57 +02:00
Sam Grove
5c14cb9790
Merge pull request #2555 from ytsuboi/master
...
[TY51822r3] a patch for TY51822r3 to use a change of PR #2535
2016-08-27 07:32:31 -05:00
Sam Grove
ea56684fff
Merge pull request #2531 from radhika-raghavendran/master
...
ncs36510 from ON Semiconductor
2016-08-27 07:31:39 -05:00
Sam Grove
eeead562f1
Merge pull request #2558 from meriac/master
...
Update uVisor with new page allocator
2016-08-27 07:30:50 -05:00
Sam Grove
fe1f2b6066
Merge pull request #2563 from sarahmarshy/path_error_rev
...
Check if executble exists
2016-08-26 18:05:50 -05:00
Sarah Marsh
bd0acdc527
Check executable
2016-08-26 17:32:57 -05:00
Sam Grove
9ec0ec0309
Merge pull request #2497 from geky/nsapi_dns
...
[nsapi] Refactor dns-query
2016-08-26 14:42:18 -05:00
Sam Grove
ea3526d657
Merge pull request #2418 from sarahmarshy/path_error_rev
...
Readable error when toolchain paths not set. Allow IAR and ARM toolchains to be set in user's PATH.
2016-08-26 13:10:48 -05:00
Christopher Haster
022f821d0c
Rewrote thread deprecation notices to help migration
...
User feedback indicated that the previous deprecation notices
were confusing and mislead migration from the old style of thread
spawning.
The deprecation notices were updated to emphasize the replacement
functions, and examples of correct usage were added in the doxygen.
2016-08-26 12:50:13 -05:00
Christopher Haster
756a09003c
Added explicit void specialization in callbacks
...
One limitation of C++ is that implicit casts do not occur when
matching template overloads, as a consequence the callback's
argument type requires a strict match.
Unfortunately, the prevents the previously common pattern of using
void pointers as function arguments, causing unnecessary problems
for users porting code.
Thing *t;
void doit(void *p) { blablabla }
Callback<void()> cb(t, doit);
To avoid this, explicit overloads on void pointers were added. This
avoids a template expansion, and allows the implicit cast to occur
as the user would expect.
2016-08-26 12:50:13 -05:00
Christopher Haster
4ffeec1797
[nsapi] Restructured nsapi_dns.h to have clear separation between C/C++
...
- Separated overloads based on language
- Removed NSAPI_C_LINKAGE definition
2016-08-26 12:39:52 -05:00
Sam Grove
39127f856a
Merge pull request #2462 from svastm/serial_asynch_f2
...
[STM32F2] Add asynchronous serial
2016-08-26 12:18:33 -05:00
Christopher Haster
a3ecdf3b71
[nsapi] Adopted netconn_gethostbyname in the lwip interface
...
Provides proper integration with DHCP through lwip
2016-08-26 12:16:41 -05:00
Christopher Haster
f9552ddbbe
[nsapi] Add support for implementation-provided DNS servers
...
Support intended for DNS servers provided by DHCP requests.
2016-08-26 12:16:41 -05:00
Christopher Haster
dc9ddd42ef
[nsapi] Removed unnecessary dns_query functions
2016-08-26 12:16:41 -05:00
Christopher Haster
08584916a5
[nsapi] Added IPv6 support to DNS query
...
To avoid complications with unexpected IP versions, the wanted
IP version was added as an extra argument to DNS query functions
(defaults to NSAPI_IPv4).
Internal API changes:
m nsapi_dns_query
m nsapi_dns_query_multiple
Interestingly, though multiple questions can be encoded in a single
DNS packet, few, if any, nameservers respect any but the first
question. This makes support for coelescing DNS queries useless.
2016-08-26 12:16:41 -05:00
Christopher Haster
665309986e
[nsapi] Added support for multiple results in a dns-query
...
Internal API changes:
+ nsapi_dns_query_multiple
Note, dns_query_multiple takes a buffer of nsapi_addr_t to fill. This is
less dynamic than the linked-list method used in linux's gethostbyname,
but is easier to manage and more constrained.
2016-08-26 12:16:41 -05:00
Christopher Haster
126df2b4a9
[nsapi] Refactored dns-query to match style of the rest of the nsapi
...
Internal API changes:
dnsQuery -> nsapi_dns_query
Additionally restructured query code to emit/parse network structures
in stream form to hopefully document the underlying structure more
explicitly.
2016-08-26 12:16:41 -05:00
Sam Grove
a3a9daf24a
Merge pull request #2487 from ARMmbed/memory_instrumentation
...
Runtime dynamic memory tracing
2016-08-26 11:34:24 -05:00
Alessandro Angelino
b98227c939
K64F: Revert to hardcoded stack pointer in RTX
2016-08-26 17:19:04 +01:00
Milosch Meriac
9cb6d6099e
Update uVisor page allocator
2016-08-26 17:18:45 +01:00
Niklas Hauser
170ba1c802
Move page heap after uVisor private data.
2016-08-26 17:18:45 +01:00
svastm
cd7c44ba4d
[STM32F2] Add tests for asynchronous serial
2016-08-26 17:10:23 +02:00
svastm
2a8ef3917c
[STM32F2] Enable asynchronous serial
2016-08-26 17:09:11 +02:00
svastm
d49a879aa7
[STM32F2] Add asynchronous serial
2016-08-26 17:09:11 +02:00
Radhika
2dc38063b9
Formatting code according to ARM guidelines.
...
Ran pylint and astyle.
Rebased latest ARMmbed-os code.
2016-08-26 20:34:23 +05:30
Radhika
048d53134a
rebasing with mbed-os latest
2016-08-26 20:34:20 +05:30
Sam Grove
a7c7ceda0e
Merge pull request #2455 from bridadan/share-greentea-serial-in-frameworks
...
Sharing greentea-client's RawSerial with utest and UNITY.
2016-08-26 09:56:23 -05:00