Russ Butler
69431da0c7
Add a test to check for init race conditions
...
Test SingletonPtr initailization along the with lazy initailization
that is built into the C++ language itself.
2016-08-30 11:23:11 -05:00
Marcos Gomes
bc2dc5e60e
Added support for ADC only pins in LPC43xx
2016-08-30 16:55:16 +01:00
Russ Butler
1ef06f5eb0
Set size of callback irq array to IrqCnt
...
Rather than hard coding the size of the callback array for irqs,
instead set the size to IrqCnt which is defined by the irq enumeration.
2016-08-30 10:33:44 -05:00
Laurent MEUNIER
498de9c88c
[STM32] Move RTC_LSI to macros instead of device_has
...
device_has is a control list for generic apis, while macros can be used
more freely. DEVICE_RTC_LSI being STM32 specific, it is moved to macros.
2016-08-30 15:09:14 +02:00
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
Tony Wu
5364e8148c
LPC11U6X - Fix multiple definition of operator new/delete
...
Fix the following linker errors:
ToolException: ./.build/LPC11U68/GCC_ARM/mbed-os/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_GCC_ARM/TARGET_LPC11U68/startup_LPC11U68.o: In function `operator new(unsigned int)':
startup_LPC11U68.cpp:(.text._Znwj+0x0): multiple definition of `operator new(unsigned int)'
./.build/LPC11U68/GCC_ARM/mbed-os/hal/common/retarget.o:retarget.cpp:(.text._Znwj+0x0): first defined here
./.build/LPC11U68/GCC_ARM/mbed-os/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_GCC_ARM/TARGET_LPC11U68/startup_LPC11U68.o: In function `operator new[](unsigned int)':
startup_LPC11U68.cpp:(.text._Znaj+0x0): multiple definition of `operator new[](unsigned int)'
./.build/LPC11U68/GCC_ARM/mbed-os/hal/common/retarget.o:retarget.cpp:(.text._Znaj+0x0): first defined here
./.build/LPC11U68/GCC_ARM/mbed-os/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_GCC_ARM/TARGET_LPC11U68/startup_LPC11U68.o: In function `operator delete(void*)':
startup_LPC11U68.cpp:(.text._ZdlPv+0x0): multiple definition of `operator delete(void*)'
./.build/LPC11U68/GCC_ARM/mbed-os/hal/common/retarget.o:retarget.cpp:(.text._ZdlPv+0x0): first defined here
./.build/LPC11U68/GCC_ARM/mbed-os/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_GCC_ARM/TARGET_LPC11U68/startup_LPC11U68.o: In function `operator delete[](void*)':
startup_LPC11U68.cpp:(.text._ZdaPv+0x0): multiple definition of `operator delete[](void*)'
./.build/LPC11U68/GCC_ARM/mbed-os/hal/common/retarget.o:retarget.cpp:(.text._ZdaPv+0x0): first defined here
collect2: error: ld returned 1 exit status
Signed-off-by: Tony Wu <tung7970@gmail.com>
2016-08-30 15:25:11 +08: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
Tony Wu
934ac09d69
STM32F4 - Fix STM32F407VG target name
...
The target name of STM32F407VG should be TARGET_STM32F407VG,
rather than TARGET_F407VG.
Signed-off-by: Tony Wu <tung7970@gmail.com>
2016-08-29 20:52:11 +08: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
Christopher Haster
98ec80c484
lwip - Added checks for invalid state of network
...
- Check if disconnected in socket open
- Check if connected in interface connect
- Check if disconnected in interface disconnect
2016-08-26 15:35:26 -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