Skip to content

Commit 435c44a

Browse files
authored
Merge pull request #1 from chinglee-iot/misra-SMP-rebase20221130
Resolve conflict for merging
2 parents 4600c94 + 029ce2a commit 435c44a

File tree

235 files changed

+15665
-1531
lines changed

Some content is hidden

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

235 files changed

+15665
-1531
lines changed

.github/actions/url_verifier.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,14 @@ function test {
2828

2929
for UNIQ_URL in ${!dict[@]} # loop urls
3030
do
31-
CURL_RES=$(curl -si --user-agent "$(USER_AGENT)" ${UNIQ_URL} 2>/dev/null| head -n 1 | cut -f 2 -d ' ')
31+
CURL_RES=$(curl -si --user-agent "${USER_AGENT}" ${UNIQ_URL} 2>/dev/null| head -n 1 | cut -f 2 -d ' ')
3232
RES=$?
3333

34+
echo "================================="
35+
echo "Checking URL: ${UNIQ_URL}"
36+
3437
if [ "${CURL_RES}" == '' -o "${CURL_RES}" != '200' ]
3538
then
36-
echo "URL is: ${UNIQ_URL}"
37-
echo "File names: ${dict[$UNIQ_URL]}"
3839
if [ "${CURL_RES}" == '' ] # curl returned an error
3940
then
4041
CURL_RES=$RES
@@ -47,8 +48,10 @@ function test {
4748
else
4849
echo WARNING: Result is: "${CURL_RES}"
4950
fi
50-
echo "================================="
51+
else
52+
echo SUCCESS: Result is: "${CURL_RES}"
5153
fi
54+
echo "================================="
5255
done
5356

5457
if [ "${SCRIPT_RET}" -eq 0 ]

.github/lexicon.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,6 +1054,7 @@ mclk
10541054
mconfigintcoresw
10551055
mcr
10561056
mcu
1057+
md
10571058
mddr
10581059
mder
10591060
mdh
@@ -1336,6 +1337,7 @@ phy
13361337
phya
13371338
pic
13381339
picnt
1340+
picolibc
13391341
pien
13401342
piir
13411343
pimr
@@ -1463,13 +1465,24 @@ ppdc
14631465
ppio
14641466
ppitc
14651467
ppmc
1468+
ppucmessagebufferstoragearea
1469+
ppucqueuestorage
1470+
ppucstreambufferstoragearea
14661471
ppudr
14671472
ppuer
14681473
ppusr
1474+
ppuxstackbuffer
14691475
ppvdestination
14701476
ppwm
1477+
ppxeventgroupbuffer
14711478
ppxidletaskstackbuffer
14721479
ppxidletasktcbbuffer
1480+
ppxsemaphorebuffer
1481+
ppxstaticmessagebuffer
1482+
ppxstaticqueue
1483+
ppxstaticstreambuffer
1484+
ppxtaskbuffer
1485+
ppxtimerbuffer
14731486
ppxtimertaskstackbuffer
14741487
ppxtimertasktcbbuffer
14751488
pr
@@ -2325,6 +2338,8 @@ ulstoppedtimercompensation
23252338
ultablebase
23262339
ultaskgetidleruntimecounter
23272340
ultaskgetidleruntimepercent
2341+
ultaskgetruntimecounter
2342+
ultaskgetruntimepercent
23282343
ultaskhasfpucontext
23292344
ultasknotifystateclear
23302345
ultasknotifytake
@@ -2465,6 +2480,7 @@ vaninterruptserviceroutine
24652480
vanisr
24662481
vanothertask
24672482
vapplicationcleartimerinterrupt
2483+
vapplicationdaemontaskstartuphook
24682484
vapplicationexceptionregisterdump
24692485
vapplicationfpusafeirqhandler
24702486
vapplicationgetidletaskmemory
@@ -2739,6 +2755,7 @@ xeventgroupcreatestatic
27392755
xeventgroupdelete
27402756
xeventgroupgetbits
27412757
xeventgroupgetbitsfromisr
2758+
xeventgroupgetstaticbuffer
27422759
xeventgroupsetbits
27432760
xeventgroupsetbitsfromisr
27442761
xeventgroupsync
@@ -2817,6 +2834,7 @@ xmessage
28172834
xmessagebuffer
28182835
xmessagebuffercreate
28192836
xmessagebuffercreatestatic
2837+
xmessagebuffergetstaticbuffers
28202838
xmessagebufferisempty
28212839
xmessagebufferisfull
28222840
xmessagebuffernextlengthbytes
@@ -2888,6 +2906,7 @@ xqueuecreatestatic
28882906
xqueuegenericsend
28892907
xqueuegenericsendfromisr
28902908
xqueuegetmutexholder
2909+
xqueuegetstaticbuffers
28912910
xqueuegivefromisr
28922911
xqueuegivemutexrecursive
28932912
xqueueorsemaphore
@@ -2942,6 +2961,7 @@ xsemaphorecreaterecursivemutex
29422961
xsemaphorecreaterecursivemutexstatic
29432962
xsemaphoregetmutexholder
29442963
xsemaphoregetmutexholderfromisr
2964+
xsemaphoregetstaticbuffer
29452965
xsemaphoregive
29462966
xsemaphoregivefromisr
29472967
xsemaphoregivemutexrecursive
@@ -2966,6 +2986,7 @@ xstreambuffer
29662986
xstreambufferbytesavailable
29672987
xstreambuffercreate
29682988
xstreambuffercreatestatic
2989+
xstreambuffergetstaticbuffers
29692990
xstreambufferisempty
29702991
xstreambufferisfull
29712992
xstreambuffernextmessagelengthbytes
@@ -3005,6 +3026,7 @@ xtaskgetcurrenttaskhandle
30053026
xtaskgethandle
30063027
xtaskgetidletaskhandle
30073028
xtaskgetschedulerstate
3029+
xtaskgetstaticbuffers
30083030
xtaskgettickcount
30093031
xtaskgettickcountfromisr
30103032
xtaskhandle
@@ -3074,6 +3096,7 @@ xtimergenericcommand
30743096
xtimergetexpirytime
30753097
xtimergetperiod
30763098
xtimergetreloadmode
3099+
xtimergetstaticbuffer
30773100
xtimergettimerdaemontaskhandle
30783101
xtimeristimeractive
30793102
xtimerlistitem

.github/pull_request_template.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ Test Steps
88
-----------
99
<!-- Describe the steps to reproduce. -->
1010

11+
Checklist:
12+
----------
13+
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
14+
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
15+
- [ ] I have tested my changes. No regression in existing tests.
16+
- [ ] I have modified and/or added unit-tests to cover the code changes in this Pull Request.
17+
1118
Related Issue
1219
-----------
1320
<!-- If any, please provide issue ID. -->

.github/workflows/kernel-checks.yml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ jobs:
2828
- name: Checkout Pull Request
2929
uses: actions/checkout@v2
3030
with:
31-
ref: ${{ github.event.pull_request.head.sha }}
3231
path: inspect
3332

3433
# Collect all affected files
@@ -45,28 +44,3 @@ jobs:
4544
cd inspect
4645
.github/scripts/kernel_checker.py --json ${HOME}/files_modified.json ${HOME}/files_added.json ${HOME}/files_renamed.json
4746
exit $?
48-
build-checker:
49-
name: FreeRTOS Posix Build Check
50-
runs-on: ubuntu-latest
51-
steps:
52-
- name: Checkout the parent repository
53-
uses: actions/checkout@v2
54-
with:
55-
ref: main
56-
repository: FreeRTOS/FreeRTOS
57-
submodules: 'recursive'
58-
fetch-depth: 1
59-
path: ./workspace
60-
- name: Checkout the current repository
61-
uses: actions/checkout@v2
62-
with:
63-
path: ./workspace/FreeRTOS/Source
64-
- name: Posix Build Checker
65-
run: |
66-
bash workspace/.github/scripts/posix_build_checker.sh workspace
67-
- name: Install lib pcap dev
68-
run: |
69-
sudo apt-get install libpcap-dev
70-
- name: Posix Network Build Checker
71-
run: |
72-
bash workspace/.github/scripts/posix_network_build_checker.sh workspace

.github/workflows/kernel-demos.yml

Lines changed: 181 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,181 @@
1+
name: FreeRTOS-Kernel Demos
2+
on: [push, pull_request]
3+
4+
jobs:
5+
WIN32-MSVC:
6+
name: WIN32 MSVC
7+
runs-on: windows-latest
8+
steps:
9+
- name: Checkout the FreeRTOS/FreeRTOS Repository
10+
uses: actions/checkout@v2
11+
with:
12+
ref: main
13+
repository: FreeRTOS/FreeRTOS
14+
submodules: 'recursive'
15+
fetch-depth: 1
16+
17+
# Checkout user pull request changes
18+
- name: Checkout Pull Request
19+
uses: actions/checkout@v2
20+
with:
21+
path: ./FreeRTOS/Source
22+
23+
- name: Add msbuild to PATH
24+
uses: microsoft/[email protected]
25+
26+
- name: Build WIN32-MSVC Demo
27+
working-directory: FreeRTOS/Demo/WIN32-MSVC
28+
run: msbuild WIN32.sln -t:rebuild
29+
30+
- name: Build WIN32-MSVC-Static-Allocation-Only Demo
31+
working-directory: FreeRTOS/Demo/WIN32-MSVC-Static-Allocation-Only
32+
run: msbuild WIN32.sln -t:rebuild
33+
34+
WIN32-MingW:
35+
name: WIN32 MingW
36+
runs-on: windows-latest
37+
steps:
38+
- name: Checkout the FreeRTOS/FreeRTOS Repository
39+
uses: actions/checkout@v2
40+
with:
41+
ref: main
42+
repository: FreeRTOS/FreeRTOS
43+
submodules: 'recursive'
44+
fetch-depth: 1
45+
46+
# Checkout user pull request changes
47+
- name: Checkout Pull Request
48+
uses: actions/checkout@v2
49+
with:
50+
path: ./FreeRTOS/Source
51+
52+
- name: Build WIN32-MingW Demo
53+
working-directory: FreeRTOS/Demo/WIN32-MingW
54+
run: |
55+
gcc --version
56+
make --version
57+
make
58+
59+
POSIX-GCC:
60+
name: Native GCC
61+
runs-on: ubuntu-latest
62+
steps:
63+
- name: Checkout the FreeRTOS/FreeRTOS Repository
64+
uses: actions/checkout@v2
65+
with:
66+
ref: main
67+
repository: FreeRTOS/FreeRTOS
68+
submodules: 'recursive'
69+
fetch-depth: 1
70+
71+
# Checkout user pull request changes
72+
- name: Checkout Pull Request
73+
uses: actions/checkout@v2
74+
with:
75+
path: ./FreeRTOS/Source
76+
77+
- name: Install GCC
78+
shell: bash
79+
run: |
80+
sudo apt-get -y update
81+
sudo apt-get -y install build-essential
82+
83+
- name: Build Posix_GCC Demo
84+
shell: bash
85+
working-directory: FreeRTOS/Demo/Posix_GCC
86+
run: make -j
87+
88+
MSP430-GCC:
89+
name: GNU MSP430 Toolchain
90+
runs-on: ubuntu-latest
91+
steps:
92+
- name: Checkout the FreeRTOS/FreeRTOS Repository
93+
uses: actions/checkout@v2
94+
with:
95+
ref: main
96+
repository: FreeRTOS/FreeRTOS
97+
submodules: 'recursive'
98+
fetch-depth: 1
99+
100+
# Checkout user pull request changes
101+
- name: Checkout Pull Request
102+
uses: actions/checkout@v2
103+
with:
104+
path: ./FreeRTOS/Source
105+
106+
- name: Install MSP430 Toolchain
107+
shell: bash
108+
run: |
109+
sudo apt-get -y update
110+
sudo apt-get -y install gcc-msp430 build-essential
111+
112+
- name: Build msp430_GCC Demo
113+
shell: bash
114+
working-directory: FreeRTOS/Demo/msp430_GCC
115+
run: make -j
116+
117+
ARM-GCC:
118+
name: GNU ARM Toolchain
119+
runs-on: ubuntu-latest
120+
steps:
121+
- name: Checkout the FreeRTOS/FreeRTOS Repository
122+
uses: actions/checkout@v2
123+
with:
124+
ref: main
125+
repository: FreeRTOS/FreeRTOS
126+
submodules: 'recursive'
127+
fetch-depth: 1
128+
129+
# Checkout user pull request changes
130+
- name: Checkout Pull Request
131+
uses: actions/checkout@v2
132+
with:
133+
path: ./FreeRTOS/Source
134+
135+
- name: Install GNU ARM Toolchain
136+
shell: bash
137+
run: |
138+
sudo apt-get -y update
139+
sudo apt-get -y install gcc-arm-none-eabi build-essential cmake git ninja-build python3-minimal
140+
141+
- name: Build CORTEX_MPU_M3_MPS2_QEMU_GCC Demo
142+
shell: bash
143+
working-directory: FreeRTOS/Demo/CORTEX_MPU_M3_MPS2_QEMU_GCC
144+
run: make -j
145+
146+
- name: Build CORTEX_LM3S102_GCC Demo
147+
shell: bash
148+
working-directory: FreeRTOS/Demo/CORTEX_LM3S102_GCC
149+
run: make -j
150+
151+
- name: Build CORTEX_M3_MPS2_QEMU_GCC Demo
152+
shell: bash
153+
working-directory: FreeRTOS/Demo/CORTEX_M3_MPS2_QEMU_GCC
154+
run: |
155+
make clean
156+
make -j
157+
158+
- name: Build CORTEX_M3_MPS2_QEMU_GCC Demo
159+
shell: bash
160+
working-directory: FreeRTOS/Demo/CORTEX_M3_MPS2_QEMU_GCC
161+
run: |
162+
make clean
163+
make FULL_DEMO=1 -j
164+
165+
- name: Build CORTEX_LM3S811_GCC Demo
166+
shell: bash
167+
working-directory: FreeRTOS/Demo/CORTEX_LM3S811_GCC
168+
run: make -j
169+
170+
- name: Build CORTEX_M0+_RP2040 Demos
171+
shell: bash
172+
working-directory: FreeRTOS/Demo/ThirdParty/Community-Supported/CORTEX_M0+_RP2040
173+
run: |
174+
git clone https://github.com/raspberrypi/pico-sdk.git
175+
cmake -B build -DPICO_SDK_PATH=pico-sdk -GNinja
176+
ninja -C build --verbose
177+
178+
- name: Build CORTEX_MPS2_QEMU_IAR_GCC Demo
179+
shell: bash
180+
working-directory: FreeRTOS/Demo/CORTEX_MPS2_QEMU_IAR_GCC
181+
run: make -C build/gcc -j

.github/workflows/unit-tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ jobs:
1212
repository: FreeRTOS/FreeRTOS
1313
submodules: 'recursive'
1414
fetch-depth: 1
15-
- name: Clone This Repo
15+
16+
# Checkout user pull request changes
17+
- name: Checkout Pull Request
1618
uses: actions/checkout@v2
1719
with:
1820
path: ./FreeRTOS/Source

0 commit comments

Comments
 (0)