Skip to content

Release candidate for mbed-os-5.5.5 #4889

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 49 commits into from
Aug 14, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
d79014f
STM32: Analogin - define handle in object not as a global
LMESTM Jun 19, 2017
fc6cbe9
STM32: analogin: adc struct member not needed anymore
LMESTM Jun 19, 2017
aa8c555
STM32: F2: adc; struct member not needed
LMESTM Jul 6, 2017
ef777a4
STM32: L0: adc struct member does not exist anymore
LMESTM Jul 17, 2017
ab78cfc
STM32: ADC: Fix PinMap_ADC_Internal
LMESTM Jul 20, 2017
5e686d7
Update BLE, fix sleep and open-drain LEDs in MAX326xx
jessexm Jun 14, 2017
ab8819f
NUCLEO_F756ZG/mbedTLS : add hw acceleration for SHA1
adustm Mar 16, 2017
b371bf4
Remove MBEDTLS_SHA1_C
adustm May 22, 2017
428fce0
Renamed so that we have one configuration for all STM32F439 targets.
Jul 12, 2017
149305f
Added HW acceleration for ODIN-W2
Jul 12, 2017
5d7e290
NUCLEO_F756ZG/mbedTLS: sha256 hw acceleration
adustm Mar 17, 2017
2610717
test: add hal ticker test (us + lp tickers)
0xc0170 Jul 3, 2017
0fc7e19
RTOS: Queue: Improve API docs
bulislaw Jul 12, 2017
7d65a39
Tests: RTOS: Queue: Rework and extend tests
bulislaw Jul 12, 2017
0d0f9bf
Add bootloader support for the UBLOX_C030 platforms.
RobMeades Jun 30, 2017
a15f931
Move flash_api.c to STM32F4 level + add flash_data.h for STM32F412 de…
adustm Aug 3, 2017
508d91a
Add bootloader support
adustm Aug 3, 2017
a321d0d
Move DEVICE_FLASH define to avoid compilation issues for non FLASH de…
adustm Aug 4, 2017
72587fe
STM32F437: remove flash api implementation
0xc0170 Aug 7, 2017
3efdbc0
STM32F4: fix for 2nd back sector
0xc0170 Aug 8, 2017
9bfe68c
K64F: Update the DSPI SDK driver to support the new API to change DUM…
mmahadevan108 Jul 24, 2017
b84f5d1
NUCLEO_F756ZG/mbedtls : MD5 hw activation
adustm Mar 16, 2017
58a1c69
Move MBEDTLS_MD5_C define from mbedtls_device.h to targets.json
adustm Apr 3, 2017
0060d8b
Remove unnecessary functions in md5_alt.h file
adustm Apr 3, 2017
166a130
Remove unused variables in mbedtls_md5_context + remove unnecessary i…
adustm Apr 18, 2017
2d83ea6
Handle 64bytes per 64 bytes + remove unused includes files
adustm May 4, 2017
77ac355
Fix use case with size = 0 (md5_selftest #1)
adustm May 15, 2017
5d6f132
Improve md5 buffer storing concept
adustm May 18, 2017
11c7906
Replace 64 by a define
adustm May 18, 2017
d4d7dad
Move MBEDTLS_MD5_C from mbetdls_device.h to targets.json
adustm Apr 13, 2017
c4085f5
Remove MBEDTLS_MD5_C
adustm May 22, 2017
9b59f00
Handle context swap + Modify macro name ST_MD5_BLOCK_SIZE
adustm Jun 2, 2017
9e8c8d6
Add a check 'non busy' status of the HW before save restore procedures
adustm Jun 8, 2017
b77d905
STM32F4: remove md5 from the mbedtls config file
0xc0170 Jul 3, 2017
10c5138
STM mbedtls: clear algo value for md5/sha1 and sha256
0xc0170 Aug 2, 2017
5bc33af
Updating mbed-coap to version 4.0.8
Jul 31, 2017
be72993
fix unresolved linker msg: __wrap_
JojoS62 Jul 27, 2017
a77182e
verify libname before stripping
JojoS62 Jul 27, 2017
6904f84
Remove unused Python imports
Jul 28, 2017
6b0fa85
Rename Eclipse .launch file according to project name
Jul 28, 2017
b9eb0da
Fix CDT debugger settings on Linux - remove .exe suffix
Jul 28, 2017
a937ccb
mbed exporter: Add IAR support for various NXP platforms
mmahadevan108 Jul 31, 2017
1125294
STM32F4_HAL_MMC erase command check is wrong. == has higher precedenc…
janjongboom Aug 3, 2017
79ff008
SAM_CortexM0P HAL accesses uninitialized memory
janjongboom Aug 3, 2017
f0e5e8c
DISCO_L475VG_IOT01A: Add support of USBHost
bcostm Aug 4, 2017
5f768c3
Added copyright header to all tests
geky Aug 7, 2017
9212a85
mbed OS 5.5.3, including the changes needed to enable 640k. Includes …
jacobjohnson-ON Jul 25, 2017
4d836ea
Changed 36510 -> NCS36510 in targets.json
jacobjohnson-ON Jul 26, 2017
4e1ec4a
Updated MBED versionning block for patch release
adbridge Aug 11, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions TESTS/events/queue/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/* mbed Microcontroller Library
* Copyright (c) 2017 ARM Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "mbed_events.h"
#include "mbed.h"
#include "rtos.h"
Expand Down
15 changes: 15 additions & 0 deletions TESTS/events/timing/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/* mbed Microcontroller Library
* Copyright (c) 2017 ARM Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "mbed_events.h"
#include "mbed.h"
#include "rtos.h"
Expand Down
17 changes: 16 additions & 1 deletion TESTS/integration/basic/main.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
/* mbed Microcontroller Library
* Copyright (c) 2017 ARM Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "test_env.h"

int main() {
GREENTEA_SETUP(15, "default_auto");
GREENTEA_TESTSUITE_RESULT(true);
}
}
15 changes: 15 additions & 0 deletions TESTS/mbed_functional/callback/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/* mbed Microcontroller Library
* Copyright (c) 2017 ARM Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "mbed.h"
#include "greentea-client/test_env.h"
#include "unity.h"
Expand Down
15 changes: 15 additions & 0 deletions TESTS/mbed_functional/callback_big/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/* mbed Microcontroller Library
* Copyright (c) 2017 ARM Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "mbed.h"
#include "greentea-client/test_env.h"
#include "unity.h"
Expand Down
15 changes: 15 additions & 0 deletions TESTS/mbed_functional/callback_small/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/* mbed Microcontroller Library
* Copyright (c) 2017 ARM Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "mbed.h"
#include "greentea-client/test_env.h"
#include "unity.h"
Expand Down
15 changes: 15 additions & 0 deletions TESTS/mbed_functional/functionpointer/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/* mbed Microcontroller Library
* Copyright (c) 2017 ARM Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "mbed.h"
#include "greentea-client/test_env.h"
#include "unity.h"
Expand Down
110 changes: 110 additions & 0 deletions TESTS/mbed_hal/lp_us_tickers/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
/* mbed Microcontroller Library
* Copyright (c) 2017 ARM Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "utest/utest.h"
#include "unity/unity.h"
#include "greentea-client/test_env.h"

#include "mbed.h"
#include "us_ticker_api.h"
#include "ticker_api.h"

using namespace utest::v1;

namespace {
volatile bool complete;
const ticker_interface_t* intf;
}

/* Ticker init should be run just once, thus read should always return a value that
* increases (no reset).
*/
void test_ticker_init(void)
{
intf->init();
uint32_t previous = intf->read();

intf->init();
uint32_t current = intf->read();
TEST_ASSERT_TRUE_MESSAGE(previous <= current, "init() changed the counter");

previous = intf->read();
intf->init();
current = intf->read();
TEST_ASSERT_TRUE_MESSAGE(previous <= current, "init() changed the counter");
}

/* Read multiple times, each returned time should be bigger than the previous one
* Counter up.
*/
void test_ticker_read(void)
{
// this test assumes that to wrap around we would need to run >60 minutes
// therefore wrapping should not happen - previous <= current
const uint32_t test_loop = 15000;
uint32_t previous = intf->read();
uint32_t current;
for (uint32_t i = 0UL; i < test_loop; i++) {
current = intf->read();
TEST_ASSERT_TRUE_MESSAGE(previous <= current, "us ticker counter wrapped around");
}
}

/* Implement simple read while loop to check if time is increasing (counter up)
*/
void test_ticker_read_loop()
{
uint32_t future_time = intf->read() + 10000UL;
while (intf->read() < future_time);
TEST_ASSERT_TRUE_MESSAGE(future_time <= intf->read(), "Future time is in the past");
}

utest::v1::status_t us_ticker_setup(const Case *const source, const size_t index_of_case)
{
intf = get_us_ticker_data()->interface;
return greentea_case_setup_handler(source, index_of_case);
}

#if DEVICE_LOWPOWERTIMER
utest::v1::status_t lp_ticker_setup(const Case *const source, const size_t index_of_case)
{
intf = get_lp_ticker_data()->interface;
return greentea_case_setup_handler(source, index_of_case);
}
#endif

Case cases[] = {
Case("us ticker HAL - Init", us_ticker_setup, test_ticker_init),
Case("us ticker HAL - Read", us_ticker_setup, test_ticker_read),
Case("us ticker HAL - Read in the loop", us_ticker_setup, test_ticker_read_loop),
#if DEVICE_LOWPOWERTIMER
Case("lp ticker HAL - Init", lp_ticker_setup, test_ticker_init),
Case("lp ticker HAL - Read", lp_ticker_setup, test_ticker_read),
Case("lp ticker HAL - Read in the loop", lp_ticker_setup, test_ticker_read_loop),
#endif
};

utest::v1::status_t greentea_test_setup(const size_t number_of_cases)
{
GREENTEA_SETUP(20, "default_auto");
return greentea_test_setup_handler(number_of_cases);
}

Specification specification(greentea_test_setup, cases, greentea_test_teardown_handler);

int main()
{
Harness::run(specification);
}
15 changes: 15 additions & 0 deletions TESTS/mbedmicro-mbed/attributes/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/* mbed Microcontroller Library
* Copyright (c) 2017 ARM Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <stdio.h>
#include <stdint.h>

Expand Down
15 changes: 15 additions & 0 deletions TESTS/mbedmicro-mbed/call_before_main/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/* mbed Microcontroller Library
* Copyright (c) 2017 ARM Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "greentea-client/test_env.h"

namespace {
Expand Down
15 changes: 15 additions & 0 deletions TESTS/mbedmicro-mbed/cpp/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/* mbed Microcontroller Library
* Copyright (c) 2017 ARM Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "greentea-client/test_env.h"

#define PATTERN_CHECK_VALUE 0xF0F0ADAD
Expand Down
15 changes: 15 additions & 0 deletions TESTS/mbedmicro-mbed/div/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/* mbed Microcontroller Library
* Copyright (c) 2017 ARM Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <utility> // std::pair
#include "mbed.h"
#include "greentea-client/test_env.h"
Expand Down
15 changes: 15 additions & 0 deletions TESTS/mbedmicro-mbed/static_assert/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/* mbed Microcontroller Library
* Copyright (c) 2017 ARM Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <stdio.h>
#include <stdint.h>

Expand Down
15 changes: 15 additions & 0 deletions TESTS/mbedmicro-rtos-mbed/isr/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/* mbed Microcontroller Library
* Copyright (c) 2017 ARM Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "mbed.h"
#include "greentea-client/test_env.h"
#include "rtos.h"
Expand Down
15 changes: 15 additions & 0 deletions TESTS/mbedmicro-rtos-mbed/mail/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/* mbed Microcontroller Library
* Copyright (c) 2017 ARM Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "mbed.h"
#include "greentea-client/test_env.h"
#include "rtos.h"
Expand Down
Loading