Skip to content

Commit 51d5550

Browse files
authored
Merge pull request #9805 from ARMmbed/release-candidate
Release candidate for mbed-os-5.11.5
2 parents bc132a6 + b83fb2b commit 51d5550

File tree

313 files changed

+13752
-5680
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

313 files changed

+13752
-5680
lines changed

.github/pull_request_template.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
### Description
22

3-
<!--
3+
<!--
44
Required
5-
Add here detailed changes summary, testing results, dependencies
5+
Add here detailed changes summary, testing results, dependencies
66
Good example: https://os.mbed.com/docs/mbed-os/latest/contributing/workflow.html (Pull request template)
77
-->
88

99

1010
### Pull request type
1111

12-
<!--
12+
<!--
1313
Required
1414
Please add only one X to one of the following types. Do not fill multiple types (split the pull request otherwise).
1515
Please note this is not a GitHub task list, indenting the boxes or changing the format to add a '.' or '*' in front
@@ -26,8 +26,15 @@
2626

2727
### Reviewers
2828

29-
<!--
29+
<!--
3030
Optional
3131
Request additional reviewers with @username
3232
-->
3333

34+
### Release Notes
35+
36+
<!--
37+
Optional
38+
In case of breaking changes, functionality changes or refactors, please add release notes here.
39+
For more information, please see [the contributing guidelines](https://os.mbed.com/docs/mbed-os/latest/contributing /workflow.html#pull-request-types).
40+
-->
File renamed without changes.

LICENSE.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Unless specifically indicated otherwise in a file, files are licensed under the Apache 2.0 license,
2+
as can be found in: LICENSE-apache-2.0.txt
3+
4+
Folders containing files under different permissive license than Apache 2.0 are listed below. Each folder should contain its own README file with license specified for its files. The original license text is included in those source files.
5+
6+
- [cmsis](./cmsis) - MIT, BSD-3-Clause
7+
- [components/802.15.4_RF/mcr20a-rf-driver](./components/802.15.4_RF/mcr20a-rf-driver) - BSD-3-Clause
8+
- [features/cryptocell/FEATURE_CRYPTOCELL310](./features/cryptocell/FEATURE_CRYPTOCELL310) - ARM Object Code and Header Files License
9+
- [features/FEATURE_BOOTLOADER](./features/FEATURE_BOOTLOADER) - PBL
10+
- [features/FEATURE_BLE/targets](./features/FEATURE_BLE/targets) - BSD-style, PBL, MIT-style
11+
- [features/lorawan](./features/lorawan) - Revised BSD
12+
- [features/lwipstack](./features/lwipstack) - BSD-style, MIT-style
13+
- [features/nanostack/sal-stack-nanostack](./features/nanostack/sal-stack-nanostack) - BSD-3-Clause
14+
- [features/storage](./features/storage) - BSD-style, MIT
15+
- [features/netsocket/emac-drivers](./features/netsocket/emac-drivers) - BSD-style
16+
- [features/frameworks/unity/unity](./features/frameworks/unity/unity) - MIT
17+
- [features/unsupported](./features/unsupported) - MIT-style, BSD-style
18+
- [rtos](./rtos) - MIT
19+
- [drivers](./drivers) - MIT
20+
- [TESTS/mbed_hal/trng/pithy](./TESTS/mbed_hal/trng/pithy) - BSD-3-Clause
21+
- [tools/data/rpc](./tools/data/rpc) - MIT
22+
- [targets](./targets) - PBL, BSD-style, MIT-style, Zlib-style, Public-domain

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ The [release notes](https://os.mbed.com/releases) detail the current release. Yo
2929

3030
## License and contributions
3131

32-
The software is provided under [Apache-2.0 license](LICENSE). Contributions to this project are accepted under the same license. Please see [contributing.md](CONTRIBUTING.md) for more info.
32+
The software is provided under the [Apache-2.0 license](LICENSE-apache-2.0.txt). Contributions to this project are accepted under the same license. Please see [contributing.md](CONTRIBUTING.md) for more information.
3333

34-
This project contains code from other projects. The original license text is included in those source files. They must comply with our [license guide](https://os.mbed.com/docs/latest/reference/license.html)
34+
This project contains code from other projects. The original license text is included in those source files. They must comply with our [license guide](https://os.mbed.com/docs/latest/reference/license.html).
35+
36+
Folders containing files under different permissive license than Apache 2.0 are listed in the [LICENSE](LICENSE) file.
3537

3638
## Getting started for developers
3739

TESTS/mbed_drivers/flashiap/main.cpp

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,17 @@
2929

3030
#include "mbed.h"
3131

32+
// Debug available
33+
#ifndef FLASHIAP_DEBUG
34+
#define FLASHIAP_DEBUG 0
35+
#endif
36+
37+
#if FLASHIAP_DEBUG
38+
#define DEBUG_PRINTF(...) printf(__VA_ARGS__)
39+
#else
40+
#define DEBUG_PRINTF(...)
41+
#endif
42+
3243
using namespace utest::v1;
3344

3445

@@ -37,6 +48,21 @@ void flashiap_init_test()
3748
FlashIAP flash_device;
3849
uint32_t ret = flash_device.init();
3950
TEST_ASSERT_EQUAL_INT32(0, ret);
51+
52+
uint32_t flash_start = flash_device.get_flash_start();
53+
uint32_t flash_size = flash_device.get_flash_size();
54+
utest_printf("Flash address: 0x%08x, size: %d\n", flash_start, flash_size);
55+
uint32_t address = flash_start;
56+
int num = 0;
57+
while (flash_size) {
58+
uint32_t sector_size = flash_device.get_sector_size(address);
59+
// Make sure all sectors sum up to the total flash size
60+
TEST_ASSERT(flash_size >= sector_size);
61+
DEBUG_PRINTF("\tsector %3d: address 0x%08x, size %8d\n", num++, address, sector_size);
62+
flash_size -= sector_size;
63+
address += sector_size;
64+
}
65+
4066
ret = flash_device.deinit();
4167
TEST_ASSERT_EQUAL_INT32(0, ret);
4268
}

TESTS/mbedmicro-mbed/attributes/attributes.c

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
/*
2+
* Copyright (c) 2016-2019 ARM Limited. All rights reserved.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the License); you may
7+
* not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an AS IS BASIS, WITHOUT
14+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
118
#include "mbed_toolchain.h"
219

320
#include <stdio.h>

TESTS/mbedmicro-mbed/attributes/weak.c

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
/*
2+
* Copyright (c) 2016-2019 ARM Limited. All rights reserved.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the License); you may
7+
* not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an AS IS BASIS, WITHOUT
14+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
118
#include "mbed_toolchain.h"
219

320
int testWeak1()

TESTS/mbedmicro-mbed/static_assert/test_c.c

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
/*
2+
* Copyright (c) 2015-2019 ARM Limited. All rights reserved.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the License); you may
7+
* not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an AS IS BASIS, WITHOUT
14+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
118
#include "mbed_assert.h"
219
#define THE_ANSWER 42
320

TESTS/mbedmicro-mbed/static_assert/test_cpp.cpp

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
/*
2+
* Copyright (c) 2016-2019 ARM Limited. All rights reserved.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the License); you may
7+
* not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an AS IS BASIS, WITHOUT
14+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
118
#include "mbed_assert.h"
219
#define THE_ANSWER 42
320

TESTS/netsocket/dns/asynchronous_dns_cancel.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ void ASYNCHRONOUS_DNS_CANCEL()
4242
count++;
4343
} else {
4444
// No memory to initiate DNS query, callback will not be called
45+
printf("Error: No memory to initiate DNS query for %s\n", dns_test_hosts[i]);
4546
data[i].result = NSAPI_ERROR_NO_MEMORY;
4647
data[i].value_set = true;
4748
}

0 commit comments

Comments
 (0)