Skip to content
This repository was archived by the owner on Apr 16, 2021. It is now read-only.

Commit 7b6b538

Browse files
committed
Update mbed to mbed-os-5.14.0-rc1-3-gd07f7e1362 (+ custom patches)
1 parent 3f69231 commit 7b6b538

File tree

1,439 files changed

+249266
-130685
lines changed

Some content is hidden

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

1,439 files changed

+249266
-130685
lines changed
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
/*
2+
* mbed Microcontroller Library
3+
* Copyright (c) 2006-2019 ARM Limited
4+
*
5+
* SPDX-License-Identifier: Apache-2.0
6+
*
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
*/
19+
20+
#define ETHERNET 1
21+
#define WIFI 2
22+
#define MESH 3
23+
#define CELLULAR 4
24+
25+
#if !defined(MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE)
26+
#error [NOT_SUPPORTED] No network interface found on this target.
27+
#endif
28+
29+
#if MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE == ETHERNET
30+
#define TEST_NETWORK_TYPE "Ethernet"
31+
#elif MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE == WIFI
32+
#define TEST_NETWORK_TYPE "WiFi"
33+
#elif MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE == MESH
34+
#define TEST_NETWORK_TYPE "Mesh"
35+
#elif MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE == CELLULAR
36+
#define TEST_NETWORK_TYPE "Cellular"
37+
#else
38+
#error [NOT_SUPPORTED] Either WiFi, Ethernet or Cellular network interface need to be enabled
39+
#endif
40+
41+
#define FS_FAT 1
42+
#define FS_LFS 2
43+
44+
#if COMPONENT_SPIF
45+
#define TEST_BLOCK_DEVICE_TYPE "SPIF"
46+
#elif COMPONENT_QSPIF
47+
#define TEST_BLOCK_DEVICE_TYPE "QSPIF"
48+
#elif COMPONENT_DATAFLASH
49+
#define TEST_BLOCK_DEVICE_TYPE "DATAFLASH"
50+
#elif COMPONENT_SD
51+
#define TEST_BLOCK_DEVICE_TYPE "SD"
52+
#define TEST_USE_FILESYSTEM FS_FAT
53+
#elif COMPONENT_FLASHIAP
54+
#define TEST_BLOCK_DEVICE_TYPE "FLASHIAP"
55+
#elif COMPONENT_SDIO
56+
#define TEST_BLOCK_DEVICE_TYPE "SDIO"
57+
#elif COMPONENT_NUSD
58+
#define TEST_BLOCK_DEVICE_TYPE "NUSD"
59+
#define TEST_USE_FILESYSTEM FS_FAT
60+
#else
61+
#define TEST_BLOCK_DEVICE_TYPE "UNKNOWN"
62+
#endif
63+
64+
#if !defined(TEST_USE_FILESYSTEM)
65+
#define TEST_USE_FILESYSTEM FS_LFS
66+
#endif
67+
68+
#if TEST_USE_FILESYSTEM == FS_FAT
69+
#define TEST_FILESYSTEM_TYPE "FAT"
70+
#elif TEST_USE_FILESYSTEM == FS_LFS
71+
#define TEST_FILESYSTEM_TYPE "LFS"
72+
#else
73+
#define TEST_FILESYSTEM_TYPE "UNKNOWN"
74+
#endif
75+
76+
#define TEST_MEMORY_SIZE_10K 10240
77+
#define TEST_MEMORY_SIZE_20K 20480
78+
#define TEST_MEMORY_SIZE_40K 40960
79+
#define TEST_MEMORY_SIZE_60K 61440
80+
#define TEST_MEMORY_SIZE_80K 81920
81+
#define TEST_MEMORY_SIZE_100K 102400
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* mbed Microcontroller Library
3+
* Copyright (c) 2006-2019 ARM Limited
4+
*
5+
* SPDX-License-Identifier: Apache-2.0
6+
*
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
*/
19+
20+
/*
21+
* Based on mbed-stress-test by Marcus Chang @ Arm Mbed - http://github.com/ARMmbed/mbed-stress-test
22+
*/
23+
24+
size_t download_test(NetworkInterface *interface, const unsigned char *data, size_t data_length, size_t buff_size, uint32_t thread_id = 0);
25+
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* mbed Microcontroller Library
3+
* Copyright (c) 2006-2018 ARM Limited
4+
*
5+
* SPDX-License-Identifier: Apache-2.0
6+
*
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
*/
19+
20+
/*
21+
* Based on mbed-stress-test by Marcus Chang @ Arm Mbed - http://github.com/ARMmbed/mbed-stress-test
22+
*/
23+
24+
void file_test_write(const char *file, size_t offset, const unsigned char *data, size_t data_length, size_t block_size);
25+
26+
void file_test_read(const char *file, size_t offset, const unsigned char *data, size_t data_length, size_t block_size);

0 commit comments

Comments
 (0)