Vincent Coubard
fdcece847f
Use SingletonPtr for the internal variables defaults and handlers in utest_harness.
2016-09-15 18:07:01 +01:00
Vincent Coubard
8a94c85eb0
Use a SingletonPtr for the Timeout object in utest_shim.
...
Makes sure to initialize it, otherwize, it might be initialized in
interrupt context.
2016-09-15 18:07:00 +01:00
Vincent Coubard
3aeba87f41
Use greentea_serial SingletonPtr.
2016-09-15 18:06:59 +01:00
Vincent Coubard
9bc5adfb21
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-09-15 18:06:57 +01:00
Vincent Coubard
f0fbdbd22c
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-09-15 18:06:56 +01:00
Vincent Coubard
a86c4c38af
Fix scope of the serial variable.
2016-09-15 18:06:55 +01:00
Vincent Coubard
6bd43b1415
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-09-15 18:06:53 +01:00
Vincent Coubard
6c1a40f64b
Replace default_handlers value by a reference.
2016-09-15 18:06:52 +01:00
Vincent Coubard
b0bca4448c
Convert case_control to a POD.
2016-09-15 18:06:51 +01:00
Vincent Coubard
fdb105b492
Enhance compatibility between control_t and base_control_t:
...
* Add conversion operator in control_t to convert instances to base_control_t
2016-09-15 18:06:49 +01:00
Vincent Coubard
99add3e08f
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-09-15 18:06:48 +01:00
Vincent Coubard
a173382718
Move constant definitions of non POD object into cpp file.
...
It save space and fix the ODR violation.
2016-09-15 18:06:47 +01:00
Vincent Coubard
5a2db63932
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-09-15 18:06:45 +01:00
Vincent Coubard
a369122c84
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-09-15 18:06:44 +01:00
Olaf Hagendorf
01a29404c4
disco_f769ni adding ethernet init
...
the IPV4 feature was already enabled in an earlier commit but the mbed 5 ethernet initialisation was missing
2016-09-15 18:06:43 +01:00
ohagendorf
0241fbf2f1
disco_f769 some rework ... (part II)
...
as suggested by adustm
2016-09-15 18:06:41 +01:00
ohagendorf
7fb952c3de
disco_f769 some rework ...
...
as suggested by adustm
2016-09-15 18:06:40 +01:00
ohagendorf
5f9492b503
adding gcc_arm exporter definitions
2016-09-15 18:06:39 +01:00
ohagendorf
fa2ff868c0
adding to build_travis
2016-09-15 18:06:37 +01:00
ohagendorf
85c3774ca6
adding rtos lib
2016-09-15 18:06:36 +01:00
ohagendorf
a05e253df7
adding target
2016-09-15 18:06:35 +01:00
Mahadevan Mahesh
022a6ec320
KSDK: Updated version for the flexcan driver
...
- Add FlexCAN function pointer handler logic to save code size.
- CAN driver enter/exit Freeze mode issue
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-09-15 18:06:33 +01:00
Mahadevan Mahesh
3322e4a2af
KSDK: Updated version of the SAI driver to address code-size issues
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-09-15 18:06:32 +01:00
Christopher Haster
5dbc3968c5
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-09-15 18:06:31 +01:00
Christopher Haster
db15a26d04
lwip - Fixed handling of max sockets in socket_accept
2016-09-15 18:06:29 +01:00
Christopher Haster
01c56d4106
lwip - Added check for previously-bound socket
...
Avoids what turns into an infinite loop in lwip's internals
2016-09-15 18:06:28 +01:00
Toyomasa Watarai
c23f1c088c
Use pre_main symbol instead of software_init_hook
2016-09-15 18:06:27 +01:00
Russ Butler
163a93460c
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-09-15 18:06:25 +01:00
svastm
085bd4294a
Use lp_timer to count time in the deepsleep tests
...
Because microseconds timer can be disable during deepsleep
2016-09-15 18:06:24 +01:00
Russ Butler
d64d696862
Add test case for thread self termination
...
Test that thread self termination works.
2016-09-15 18:06:23 +01:00
Russ Butler
c5104fb0ed
Properly handle a thread which terminates itself
...
In Thread::terminate() release the join semaphore before terminating
the thread. This allows the join semaphore to be properly signaled in
the case where a thread is terminating itself.
2016-09-15 18:06:21 +01:00
Brian Daniels
8cb8ee983d
Correctly providing directories to build_apis
...
The shared `prepare_toolchain` and `scan_resources` functions in build_api
expect a list, not a string. This is different from the
toolchain.scan_resources function. Now the functions are being used
correctly within the `find_tests` function in test_api
2016-09-15 18:06:20 +01:00
Radhika
3389a3524a
Adding ON Semiconductor copyright notice.
2016-09-15 18:06:19 +01:00
maclobdell
abe05cc599
add PTEx pins as option for SPI - for SD card on Hexiwear. Amend to re-trigger CI.
2016-09-15 18:06:17 +01:00
Jussi Vatjus-Anttila
d7109300fb
Update pull_request_template.md
2016-09-15 18:06:16 +01:00
Jussi Vatjus-Anttila
8f30f26340
Update pull_request_template.md
2016-09-15 18:06:14 +01:00
Jussi Vatjus-Anttila
7e05502e44
Update issue_template.md
2016-09-15 18:06:13 +01:00
Jussi Vatjus-Anttila
d46d7bee24
small updates
2016-09-15 18:06:12 +01:00
Jussi Vatjus-Anttila
7356670d74
initial github issue and PR templates
2016-09-15 18:06:10 +01:00
Russ Butler
7ff0df7c78
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-09-15 18:06:09 +01:00
Jimmy Brisson
522c1789ef
return the number of failures from the script
2016-09-15 18:06:08 +01:00
Jimmy Brisson
72daa77e22
Separate the import and compile steps for better integration with Jenkins
2016-09-15 18:06:06 +01:00
Jimmy Brisson
2fd68ba552
Use mbed-os 5 example instead of the mbed 2 one
2016-09-15 18:06:05 +01:00
Jimmy Brisson
aa23e01a00
Update Docstring
2016-09-15 18:06:04 +01:00
Jimmy Brisson
3a5f541a23
Use IPV6 feature for filtering mesh, client, and sockets
2016-09-15 18:06:02 +01:00
Jimmy Brisson
ffe5aeb7b4
Allow filtering by target as well as by features
2016-09-15 18:06:01 +01:00
Jimmy Brisson
33f28e696e
Allow command-line filtering of toolchains
2016-09-15 18:06:00 +01:00
Jimmy Brisson
98e64bc4c7
Move to feature filter for target and toolchain detection; print passed tests
2016-09-15 18:05:58 +01:00
Jimmy Brisson
b7d352d5a6
Move example tests to their own folder
2016-09-15 18:05:57 +01:00
Jimmy Brisson
e95173279d
Use json for the example to target mapping and print failures
2016-09-15 18:05:56 +01:00