-
Notifications
You must be signed in to change notification settings - Fork 19
Added usage and overview. #75
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
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| # Use CMSIS-Compiler {#usage} | ||
|
|
||
| The following steps are required to install the **ARM::CMSIS-Compiler** pack and to use the software components that | ||
| are shipped with the CMSIS-Pack. | ||
|
|
||
| > **Note** | ||
| > | ||
| > The installation and usage instructions are assuming you are using a | ||
| > [CMSIS-Toolbox](https://open-cmsis-pack.github.io/cmsis-toolbox/) based environment. | ||
|
|
||
| ## Pack installation | ||
|
|
||
| Add the **ARM::CMSIS-Compiler** pack to your installation: | ||
|
|
||
| ```sh | ||
| cpackget add ARM::CMSIS-Compiler | ||
| ``` | ||
|
|
||
| Alternatively, you can download the latest version from the | ||
| [CMSIS-Compiler](https://www.keil.arm.com/packs/cmsis-compiler-arm/versions/) page. | ||
|
|
||
| ## Component selection and usage | ||
|
|
||
| 1. In your IDE, open the | ||
| [Manage software components](https://mdk-packs.github.io/vscode-cmsis-solution-docs/create_app.html#software-components) | ||
| dialog. | ||
| 2. If you cannot see the **CMSIS-Compiler** component, select to display **All installed packs**. | ||
| 3. You must select the component **CMSIS-Compiler::CORE** and at least one additional **API**. | ||
|
|
||
|  | ||
|
|
||
| > **Note** | ||
| > | ||
| > Refer to the sections [Low-level I/O](./rt_io.md) and | ||
| > [Multithreading Support Retarget](./rt_os.md) for more information about the retargeting options. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| # Overview | ||
|
|
||
| **CMSIS-Compiler** provides software components that simplify retargeting of standard C run-time library functions. | ||
|
|
||
| Application code frequently uses standard C library functions, such as `fopen`, `fwrite`, `printf()`, `scanf()` and | ||
| others to perform input/output operations. These functions may as well be used in a multithreaded environment. | ||
|
|
||
| The structure of these functions in the standard C run-time library together with the retarget interfaces is: | ||
|
|
||
|  | ||
|
|
||
| Standard C library functions are platform independent and can be easily ported, while the low-level interfaces needs to | ||
| be tailored to the chosen platform. Generally low-level I/O functions serve to interact with the file system and a | ||
| serial interface, i.e. terminal. Multithreading support is available for applications that run on top of an RTOS kernel. | ||
|
|
||
| CMSIS-Compiler enables platform specific retargeting by providing software components that break down into the following interfaces: | ||
|
|
||
| - **File interface** that enables reading and writing files | ||
| - **STDIN interface** that enables standard input stream redirection | ||
| - **STDOUT interface** that enables standard output stream redirection | ||
| - **STDERR interface** that enables standard error stream redirection | ||
| - **OS interface** that enables multithread safety using an arbitrary RTOS | ||
|
|
||
| Using CMSIS-Compiler developers can retarget standard I/O streams and file operations to specific platform and enable | ||
| thread safe operations using RTOS interface. | ||
|
|
||
| ## Links | ||
|
|
||
| - [Documentation](https://arm-software.github.io/CMSIS-Compiler/latest/index.html) | ||
| - [Issues](https://github.com/ARM-software/CMSIS-Compiler/issues) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.