Skip to content

Commit 96191e2

Browse files
authored
Merge pull request #8663 from cmonr/rollup
Rollup PR: Docs + small fixes
2 parents c792d33 + 0a8f5e0 commit 96191e2

File tree

12 files changed

+42
-27
lines changed

12 files changed

+42
-27
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
Mbed OS is an open-source, device software platform for the Internet of Things. Contributions are an important part of the platform, and our goal is to make it as simple as possible to become a contributor.
44

5-
To encourage productive collaboration, as well as robust, consistent and maintainable code, we have a set ofguidelines for contributing toMbed OS. Please see: [contributing guidelines](https://os.mbed.com/docs/latest/reference/contributing.html).
5+
To encourage productive collaboration, as well as robust, consistent and maintainable code, we have a set of guidelines for [contributing to Mbed OS](https://os.mbed.com/docs/latest/reference/contributing.html).

README.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,20 @@
1919
Arm Mbed OS is an open source embedded operating system designed specifically for the "things" in the Internet of Things. It includes all the features you need to develop a connected product based on an Arm Cortex-M microcontroller, including security, connectivity, an RTOS and drivers for sensors and I/O devices.
2020

2121
Mbed OS provides a platform that includes:
22-
* Security foundations.
23-
* Cloud management services.
24-
* Drivers for sensors, I/O devices and connectivity.
22+
23+
- Security foundations.
24+
- Cloud management services.
25+
- Drivers for sensors, I/O devices and connectivity.
2526

2627
## Release notes
2728
The [release notes](https://os.mbed.com/releases) detail the current release. You can also find information about previous versions.
2829

30+
## License and contributions
31+
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.
33+
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+
2936
## Getting started for developers
3037

3138
We have a [developer website](https://os.mbed.com) for asking questions, engaging with others, finding information on boards and components, using an online IDE and compiler, reading the documentation and learning about what's new and what's coming next in Mbed OS.
@@ -36,6 +43,7 @@ We also have a [contributing and publishing guide](https://os.mbed.com/contribut
3643

3744
## Documentation
3845

39-
For more information about Mbed OS, please see [our published documentation](https://os.mbed.com/docs/latest). It includes published Doxygen for our APIs, step-by-step tutorials, porting information and background reference materials about our architecture and tools.
46+
For more information about Mbed OS, please see [our published documentation](https://os.mbed.com/docs/latest). It includes Doxygen for our APIs, step-by-step tutorials, porting information and background reference materials about our architecture and tools.
47+
48+
To contribute to this documentation, please see the [mbed-os-5-docs repository](https://github.com/ARMmbed/mbed-os-5-docs).
4049

41-
To contribute to this documentation, please see the [mbed-os-5-docs repo](https://github.com/ARMmbed/mbed-os-5-docs).

components/storage/blockdevice/COMPONENT_SD/SDBlockDevice.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,6 @@ int SDBlockDevice::_read(uint8_t *buffer, uint32_t length)
897897
// read until start byte (0xFE)
898898
if (false == _wait_token(SPI_START_BLOCK)) {
899899
debug_if(SD_DBG, "Read timeout\n");
900-
_deselect();
901900
return SD_BLOCK_DEVICE_ERROR_NO_RESPONSE;
902901
}
903902

features/nanostack/mbed-mesh-api/source/MeshInterfaceNanostack.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ void Nanostack::Interface::attach(
6969
}
7070

7171
Nanostack::Interface::Interface(NanostackPhy &phy) : interface_phy(phy), interface_id(-1), _device_id(-1),
72-
_connect_status(NSAPI_STATUS_DISCONNECTED), _blocking(true), _previous_connection_status(NSAPI_STATUS_DISCONNECTED)
72+
_connect_status(NSAPI_STATUS_DISCONNECTED), _previous_connection_status(NSAPI_STATUS_DISCONNECTED), _blocking(true)
7373
{
7474
mesh_system_init();
7575
}

features/nanostack/mbed-mesh-api/source/NanostackEMACInterface.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ nsapi_error_t Nanostack::add_ethernet_interface(EMAC &emac, bool default_if, Nan
200200

201201
nsapi_error_t err = interface->initialize();
202202
if (err) {
203+
delete interface;
203204
return err;
204205
}
205206

rtos/Kernel.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,26 +33,26 @@ namespace rtos {
3333
namespace Kernel {
3434

3535
/** Read the current RTOS kernel millisecond tick count.
36-
The tick count corresponds to the tick count used by the RTOS for timing
37-
purposes. It increments monotonically from 0 at boot, hence effectively
36+
The tick count corresponds to the tick count the RTOS uses for timing
37+
purposes. It increments monotonically from 0 at boot, so it effectively
3838
never wraps. If the underlying RTOS only provides a 32-bit tick count,
3939
this method expands it to 64 bits.
4040
@return RTOS kernel current tick count
41-
@note mbed OS always uses millisecond RTOS ticks, and this could only wrap
42-
after half a billion years
41+
@note Mbed OS always uses millisecond RTOS ticks, and this could only wrap
42+
after half a billion years.
4343
@note You cannot call this function from ISR context.
4444
*/
4545
uint64_t get_ms_count();
4646

47-
/** Attach a function to be called by the RTOS idle task
48-
@param fptr pointer to the function to be called
47+
/** Attach a function to be called by the RTOS idle task.
48+
@param fptr pointer to the function to be called
4949
5050
@note You may call this function from ISR context.
5151
*/
5252
void attach_idle_hook(void (*fptr)(void));
5353

54-
/** Attach a function to be called when a task is killed
55-
@param fptr pointer to the function to be called
54+
/** Attach a function to be called when a thread terminates.
55+
@param fptr pointer to the function to be called
5656
5757
@note You may call this function from ISR context.
5858
*/

tools/targets/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@
4949
"Cortex-M23": ["M23", "CORTEX_M", "LIKE_CORTEX_M23", "CORTEX"],
5050
"Cortex-M23-NS": ["M23", "M23_NS", "CORTEX_M", "LIKE_CORTEX_M23", "CORTEX"],
5151
"Cortex-M33": ["M33", "CORTEX_M", "LIKE_CORTEX_M33", "CORTEX"],
52-
"Cortex-M33-NS": ["M33", "M33_NS", "CORTEX_M", "LIKE_CORTEX_M33", "CORTEX"]
52+
"Cortex-M33-NS": ["M33", "M33_NS", "CORTEX_M", "LIKE_CORTEX_M33", "CORTEX"],
53+
"Cortex-M33F": ["M33", "CORTEX_M", "LIKE_CORTEX_M33", "CORTEX"],
54+
"Cortex-M33F-NS": ["M33", "M33_NS", "CORTEX_M", "LIKE_CORTEX_M33", "CORTEX"]
5355
}
5456

5557
CORE_ARCH = {
@@ -66,7 +68,9 @@
6668
"Cortex-M23": 8,
6769
"Cortex-M23-NS": 8,
6870
"Cortex-M33": 8,
71+
"Cortex-M33F": 8,
6972
"Cortex-M33-NS": 8,
73+
"Cortex-M33F-NS": 8,
7074
}
7175

7276
################################################################################

tools/test/toolchains/arm_support_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
ARMC5_CORES = ["Cortex-M0", "Cortex-M0+", "Cortex-M3", "Cortex-M4",
1818
"Cortex-M4F", "Cortex-M7", "Cortex-M7F", "Cortex-M7FD"]
1919
ARMC6_CORES = ARMC5_CORES + ["Cortex-M23", "Cortex-M23-NS",
20-
"Cortex-M33", "CortexM33-NS"]
20+
"Cortex-M33", "Cortex-M33-NS", "Cortex-M33F", "Cortex-M33F-NS"]
2121

2222
CORE_SUF_ALPHA = ["MDFNS02347-+"]
2323

tools/toolchains/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ class mbedToolchain:
7575
"Cortex-M23": ["__CORTEX_M23", "ARM_MATH_ARMV8MBL", "__CMSIS_RTOS", "__MBED_CMSIS_RTOS_CM"],
7676
"Cortex-M33-NS": ["__CORTEX_M33", "ARM_MATH_ARMV8MML", "DOMAIN_NS=1", "__CMSIS_RTOS", "__MBED_CMSIS_RTOS_CM"],
7777
"Cortex-M33": ["__CORTEX_M33", "ARM_MATH_ARMV8MML", "__CMSIS_RTOS", "__MBED_CMSIS_RTOS_CM"],
78-
"Cortex-M33F-NS": ["__CORTEX_M33", "ARM_MATH_ARMV8MML", "DOMAIN_NS=1", "__FPU_PRESENT", "__CMSIS_RTOS", "__MBED_CMSIS_RTOS_CM"],
79-
"Cortex-M33F": ["__CORTEX_M33", "ARM_MATH_ARMV8MML", "__FPU_PRESENT", "__CMSIS_RTOS", "__MBED_CMSIS_RTOS_CM"],
78+
"Cortex-M33F-NS": ["__CORTEX_M33", "ARM_MATH_ARMV8MML", "DOMAIN_NS=1", "__FPU_PRESENT=1U", "__CMSIS_RTOS", "__MBED_CMSIS_RTOS_CM"],
79+
"Cortex-M33F": ["__CORTEX_M33", "ARM_MATH_ARMV8MML", "__FPU_PRESENT=1U", "__CMSIS_RTOS", "__MBED_CMSIS_RTOS_CM"],
8080
}
8181

8282
MBED_CONFIG_FILE_NAME="mbed_config.h"

tools/toolchains/arm.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,8 @@ class ARMC6(ARM_STD):
363363
SHEBANG = "#! armclang -E --target=arm-arm-none-eabi -x c"
364364
SUPPORTED_CORES = ["Cortex-M0", "Cortex-M0+", "Cortex-M3", "Cortex-M4",
365365
"Cortex-M4F", "Cortex-M7", "Cortex-M7F", "Cortex-M7FD",
366-
"Cortex-M23", "Cortex-M23-NS", "Cortex-M33",
367-
"Cortex-M33-NS", "Cortex-A9"]
366+
"Cortex-M23", "Cortex-M23-NS", "Cortex-M33", "Cortex-M33F",
367+
"Cortex-M33-NS", "Cortex-M33F-NS", "Cortex-A9"]
368368
ARMCC_RANGE = (LooseVersion("6.10"), LooseVersion("7.0"))
369369

370370
@staticmethod
@@ -416,6 +416,9 @@ def __init__(self, target, *args, **kwargs):
416416
self.flags['common'].append("-mfloat-abi=softfp")
417417
elif target.core.startswith("Cortex-M23"):
418418
self.flags['common'].append("-march=armv8-m.base")
419+
elif target.core.startswith("Cortex-M33F"):
420+
self.flags['common'].append("-mfpu=fpv5-sp-d16")
421+
self.flags['common'].append("-mfloat-abi=softfp")
419422

420423
if target.core == "Cortex-M23" or target.core == "Cortex-M33":
421424
self.flags['cxx'].append("-mcmse")

0 commit comments

Comments
 (0)