Skip to content

Commit 9684b36

Browse files
authored
Merge branch 'main' into add_check
2 parents 86c6f7b + b3b097b commit 9684b36

18 files changed

+420
-1665
lines changed

.github/lexicon.txt

-26
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,6 @@ coproc
317317
coprocessor
318318
coprocessors
319319
coreid
320-
coroutinehandle
321320
covfs
322321
cp
323322
cpacr
@@ -344,16 +343,10 @@ cpu
344343
cr
345344
crc
346345
crcb
347-
crcoroutine
348-
crdelay
349346
creadonlyarray
350347
creadwritearray
351348
createevent
352-
crend
353349
crgint
354-
croutine
355-
crqueue
356-
crstart
357350
crt
358351
crtv
359352
crxedchar
@@ -1517,14 +1510,11 @@ prvaddcurrenttasktodelayedlist
15171510
prvcheckinterfaces
15181511
prvchecktaskswaitingtermination
15191512
prvcopydatatoqueue
1520-
prvcoroutineflashtask
1521-
prvcoroutineflashworktask
15221513
prvdeletetcb
15231514
prvexitfunction
15241515
prvgettimens
15251516
prvheapinit
15261517
prvidletask
1527-
prvinitialisecoroutinelists
15281518
prvinitialisemutex
15291519
prvinitialisenewstreambuffer
15301520
prvinitialisenewtimer
@@ -1638,15 +1628,11 @@ pxblocktoinsert
16381628
pxcallbackfunction
16391629
pxcode
16401630
pxcontainer
1641-
pxcoroutinecode
1642-
pxcoroutinewoken
16431631
pxcrcb
16441632
pxcreatedtask
1645-
pxcurrentcoroutine
16461633
pxcurrenttcb
16471634
pxcurrenttcbconst
16481635
pxcurrenttimerlist
1649-
pxdelayedcoroutinelist
16501636
pxdelayedtasklist
16511637
pxend
16521638
pxendofstack
@@ -1681,7 +1667,6 @@ pxnextfreeblock
16811667
pxnexttcb
16821668
pxoriginalsp
16831669
pxoriginaltos
1684-
pxoverflowdelayedcoroutinelist
16851670
pxoverflowdelayedtasklist
16861671
pxowner
16871672
pxportinitialisestack
@@ -1691,7 +1676,6 @@ pxqueue
16911676
pxqueuebuffer
16921677
pxqueuesetcontainer
16931678
pxramstack
1694-
pxreadycoroutinelists
16951679
pxreadytaskslists
16961680
pxreceivecompletedcallback
16971681
pxregions
@@ -2463,7 +2447,6 @@ uxtopreadypriority
24632447
uxtopusedpriority
24642448
uxvariabletoincrement
24652449
uxwantedbytes
2466-
vacoroutine
24672450
vadifferenttask
24682451
vafunction
24692452
val
@@ -2492,7 +2475,6 @@ vbr
24922475
vbufferisr
24932476
vcallbackfunction
24942477
vclearinterruptmask
2495-
vcoroutineschedule
24962478
vddcore
24972479
vec
24982480
vectactive
@@ -2502,7 +2484,6 @@ ver
25022484
veventgroupclearbitscallback
25032485
veventgroupdelete
25042486
veventgroupsetbitscallback
2505-
vflashcoroutine
25062487
vfp
25072488
vfunction
25082489
vic
@@ -2565,14 +2546,12 @@ vqueuedelete
25652546
vqueueunregisterqueue
25662547
vr
25672548
vraiseprivilege
2568-
vreceivingcoroutine
25692549
vreg
25702550
vresetprivilege
25712551
vrestorecontextoffirsttask
25722552
vrpm
25732553
vsemaphorecreatebinary
25742554
vsemaphoredelete
2575-
vsendingcoroutine
25762555
vsetbacklightstate
25772556
vsoftwareinterruptentry
25782557
vstartfirsttask
@@ -2706,9 +2685,6 @@ xcommandtime
27062685
xcommsrxqueue
27072686
xconsttickcount
27082687
xcopyposition
2709-
xcoroutinecreate
2710-
xcoroutinepreviouslywoken
2711-
xcoroutinequeue
27122688
xcount
27132689
xcreatedeventgroup
27142690
xcrwokenbypost
@@ -2718,7 +2694,6 @@ xdd
27182694
xdddd
27192695
xdeadbeef
27202696
xdelay
2721-
xdelayedcoroutinelist
27222697
xdelayedtasklist
27232698
xdelaytime
27242699
xe
@@ -2865,7 +2840,6 @@ xpar
28652840
xparameters
28662841
xpendedcounts
28672842
xpendedticks
2868-
xpendingreadycoroutinelist
28692843
xpendingreadylist
28702844
xperiod
28712845
xportgetcoreid

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
exit 1
3636
fi
3737
formatting:
38-
runs-on: ubuntu-latest
38+
runs-on: ubuntu-20.04
3939
steps:
4040
- uses: actions/checkout@v2
4141
- name: Install Uncrustify

.github/workflows/kernel-checks.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on: [push, pull_request]
55
jobs:
66
kernel-checker:
77
name: FreeRTOS Kernel Header Checks
8-
runs-on: ubuntu-latest
8+
runs-on: ubuntu-20.04
99
steps:
1010
# Install python 3
1111
- name: Tool Setup

.github/workflows/unit-tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on: [push, pull_request]
33

44
jobs:
55
run:
6-
runs-on: ubuntu-latest
6+
runs-on: ubuntu-20.04
77
steps:
88
- name: Checkout Parent Repository
99
uses: actions/checkout@v2

CMakeLists.txt

+208-166
Large diffs are not rendered by default.

History.txt

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
Changes between FreeRTOS V10.4.6 and FreeRTOS V10.5.0 released September 16 2022
2-
31
Documentation and download available at https://www.FreeRTOS.org/
42

3+
Changes between FreeRTOS V10.5.0 and FreeRTOS V10.5.1 released November 16 2022
4+
+ Updated the kernel version in manifest and SBOM
5+
6+
Changes between FreeRTOS V10.4.6 and FreeRTOS V10.5.0 released September 16 2022
7+
58
+ ARMv7-M and ARMv8-M MPU ports: It was possible for a third party that
69
already independently gained the ability to execute injected code to
710
read from or write to arbitrary addresses by passing a negative argument

README.md

+54-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
## 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.
33

44
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.
55

@@ -8,7 +8,53 @@ Additionally, for FreeRTOS kernel feature information refer to the [Developer Do
88
### Getting help
99
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).
1010

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:
18+
19+
```cmake
20+
FetchContent_Declare( freertos_kernel
21+
GIT_REPOSITORY https://github.com/FreeRTOS/FreeRTOS-Kernel.git
22+
GIT_TAG master #Note: Best practice to use specific git-hash or tagged version
23+
)
24+
```
25+
26+
- Add a freertos_config library (typically an INTERFACE library) The following assumes the directory structure:
27+
- `include/FreeRTOSConfig.h`
28+
```cmake
29+
add_library(freertos_config INTERFACE)
30+
31+
target_include_directories(freertos_config SYSTEM
32+
INTERFACE
33+
include
34+
)
35+
36+
target_compile_definitions(freertos_config
37+
INTERFACE
38+
projCOVERAGE_TEST=0
39+
)
40+
```
41+
42+
- Configure the FreeRTOS-Kernel and make it available
43+
- this particular example supports a native and cross-compiled build option.
44+
45+
```cmake
46+
set( FREERTOS_HEAP "4" CACHE STRING "" FORCE)
47+
# Select the native compile PORT
48+
set( FREERTOS_PORT "GCC_POSIX" CACHE STRING "" FORCE)
49+
# Select the cross-compile PORT
50+
if (CMAKE_CROSSCOMPILING)
51+
set(FREERTOS_PORT "GCC_ARM_CA9" CACHE STRING "" FORCE)
52+
endif()
53+
54+
FetchContent_MakeAvailable(freertos_kernel)
55+
```
56+
57+
### Consuming stand-alone - Cloning this repository
1258

1359
To clone using HTTPS:
1460
```
@@ -20,20 +66,18 @@ git clone git@github.com:FreeRTOS/FreeRTOS-Kernel.git
2066
```
2167

2268
## Repository structure
23-
- 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.
2772

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.
2974
See the readme file in the ```./portable``` directory for more information.
3075

3176
- The ```./include``` directory contains the real time kernel header files.
3277

3378
### 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).
3580

3681
### 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*.
3883
Note that only the FreeRTOS Kernel source files are checked for proper spelling, the portable section is ignored.
39-

0 commit comments

Comments
 (0)