Laurent MEUNIER
62841f31d5
[STM32L4] Make device.h a common file
2016-08-30 15:00:22 +02:00
Laurent MEUNIER
6c36a211dc
[STM32L1] Make device.h a common file
2016-08-30 15:00:22 +02:00
Laurent MEUNIER
4f7a654896
[STM32L0] Make device.h a common file
2016-08-30 15:00:22 +02:00
Laurent MEUNIER
5d25183212
[STM32F7] Make device.h a common file
2016-08-30 15:00:22 +02:00
Laurent MEUNIER
de74ef152c
[STM32F4] Make device.h a common file
2016-08-30 15:00:22 +02:00
Laurent MEUNIER
a5eaf1540b
[STM32F3] Make device.h a common file
2016-08-30 15:00:22 +02:00
Laurent MEUNIER
0ac02a5e4b
[STM32F1] Make device.h a common file
2016-08-30 15:00:22 +02:00
Laurent MEUNIER
dca48d7ab0
[STM32F0] Make device.h a common file
2016-08-30 15:00:22 +02:00
Laurent MEUNIER
d889a609e9
[STM32] clean-up DEVICE features
...
Device features definition have been moved to targets.json,
so definitions in device.h are not required anymore.
2016-08-30 15:00:22 +02:00
Vincent Coubard
a9d9987d7c
Fix a rare case of imcompatibility between base_control_t and control_t.
...
Both branches of a ternary operator should yield the same type;
compatibility is not enough in that case.
2016-08-30 13:29:19 +01:00
Vincent Coubard
85bce1467f
Improve compatibility between base_control_t and control_t.
...
* provide missing member functions from control_t in base_control_t
* construction of control_t from reference of base_control_t instead of
value.
* overload operator+ for all permutations between control_t and
base_control_t.
2016-08-30 13:29:17 +01:00
Vincent Coubard
df3e3b251d
Fix scope of the serial variable.
2016-08-30 13:29:16 +01:00
Vincent Coubard
daa135a1b3
Move defaults and handlers variable into a static function.
...
This change allow a lot of code from utest to be removed from the final
binary if not used.
2016-08-30 13:29:14 +01:00
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