You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+54-10
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
## Getting started
2
-
This repository contains FreeRTOS kernel source/header files and kernel ports only. This repository is referenced as a submodule in [FreeRTOS/FreeRTOS](https://github.com/FreeRTOS/FreeRTOS) repository, which contains pre-configured demo application projects under ```FreeRTOS/Demo``` directory.
2
+
This repository contains FreeRTOS kernel source/header files and kernel ports only. This repository is referenced as a submodule in [FreeRTOS/FreeRTOS](https://github.com/FreeRTOS/FreeRTOS) repository, which contains pre-configured demo application projects under ```FreeRTOS/Demo``` directory.
3
3
4
4
The easiest way to use FreeRTOS is to start with one of the pre-configured demo application projects. That way you will have the correct FreeRTOS source files included, and the correct include paths configured. Once a demo application is building and executing you can remove the demo application files, and start to add in your own application source files. See the [FreeRTOS Kernel Quick Start Guide](https://www.FreeRTOS.org/FreeRTOS-quick-start-guide.html) for detailed instructions and other useful links.
5
5
@@ -8,7 +8,53 @@ Additionally, for FreeRTOS kernel feature information refer to the [Developer Do
8
8
### Getting help
9
9
If you have any questions or need assistance troubleshooting your FreeRTOS project, we have an active community that can help on the [FreeRTOS Community Support Forum](https://forums.freertos.org).
10
10
11
-
## Cloning this repository
11
+
## To consume FreeRTOS-Kernel
12
+
13
+
### Consume with CMake
14
+
If using CMake, it is recommended to use this repository using FetchContent.
15
+
Add the following into your project's main or a subdirectory's `CMakeLists.txt`:
16
+
17
+
- Define the source and version/tag you want to use:
- The root of this repository contains the three files that are common to
24
-
every port - list.c, queue.c and tasks.c. The kernel is contained within these
25
-
three files. croutine.c implements the optional co-routine functionality - which
26
-
is normally only used on very memory limited systems.
69
+
- The root of this repository contains the three files that are common to
70
+
every port - list.c, queue.c and tasks.c. The kernel is contained within these
71
+
three files.
27
72
28
-
- The ```./portable``` directory contains the files that are specific to a particular microcontroller and/or compiler.
73
+
- The ```./portable``` directory contains the files that are specific to a particular microcontroller and/or compiler.
29
74
See the readme file in the ```./portable``` directory for more information.
30
75
31
76
- The ```./include``` directory contains the real time kernel header files.
32
77
33
78
### Code Formatting
34
-
FreeRTOS files are formatted using the "uncrustify" tool. The configuration file used by uncrustify can be found in the [FreeRTOS/FreeRTOS repository](https://github.com/FreeRTOS/FreeRTOS/blob/main/tools/uncrustify.cfg).
79
+
FreeRTOS files are formatted using the "uncrustify" tool. The configuration file used by uncrustify can be found in the [FreeRTOS/FreeRTOS repository](https://github.com/FreeRTOS/FreeRTOS/blob/main/tools/uncrustify.cfg).
35
80
36
81
### Spelling
37
-
*lexicon.txt* contains words that are not traditionally found in an English dictionary. It is used by the spellchecker to verify the various jargon, variable names, and other odd words used in the FreeRTOS code base. If your pull request fails to pass the spelling and you believe this is a mistake, then add the word to *lexicon.txt*.
82
+
*lexicon.txt* contains words that are not traditionally found in an English dictionary. It is used by the spellchecker to verify the various jargon, variable names, and other odd words used in the FreeRTOS code base. If your pull request fails to pass the spelling and you believe this is a mistake, then add the word to *lexicon.txt*.
38
83
Note that only the FreeRTOS Kernel source files are checked for proper spelling, the portable section is ignored.
0 commit comments