Skip to content

Commit f6bcabb

Browse files
authored
Merge branch 'zephyrproject-rtos:main' into readme
2 parents cb943cd + 1f9f4c8 commit f6bcabb

File tree

43,754 files changed

+5044024
-0
lines changed

Some content is hidden

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

43,754 files changed

+5044024
-0
lines changed

.checkpatch.conf

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
--emacs
2+
--summary-file
3+
--show-types
4+
--max-line-length=100
5+
--min-conf-desc-length=1
6+
--typedefsfile=scripts/checkpatch/typedefsfile
7+
8+
--ignore PRINTK_WITHOUT_KERN_LEVEL
9+
--ignore SPLIT_STRING
10+
--ignore VOLATILE
11+
--ignore CONFIG_EXPERIMENTAL
12+
--ignore PREFER_KERNEL_TYPES
13+
--ignore PREFER_SECTION
14+
--ignore AVOID_EXTERNS
15+
--ignore NETWORKING_BLOCK_COMMENT_STYLE
16+
--ignore DATE_TIME
17+
--ignore MINMAX
18+
--ignore CONST_STRUCT
19+
--ignore FILE_PATH_CHANGES
20+
--ignore SPDX_LICENSE_TAG
21+
--ignore C99_COMMENT_TOLERANCE
22+
--ignore REPEATED_WORD
23+
--ignore UNDOCUMENTED_DT_STRING
24+
--ignore DT_SPLIT_BINDING_PATCH
25+
--ignore DT_SCHEMA_BINDING_PATCH
26+
--ignore TRAILING_SEMICOLON
27+
--ignore COMPLEX_MACRO
28+
--ignore MULTISTATEMENT_MACRO_USE_DO_WHILE
29+
--ignore ENOSYS
30+
--ignore IS_ENABLED_CONFIG
31+
--ignore EXPORT_SYMBOL

.clang-format

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
#
3+
# Note: The list of ForEachMacros can be obtained using:
4+
#
5+
# git grep -h '^#define [^[:space:]]*FOR_EACH[^[:space:]]*(' include/ \
6+
# | sed "s,^#define \([^[:space:]]*FOR_EACH[^[:space:]]*\)(.*$, - '\1'," \
7+
# | sort | uniq
8+
#
9+
# References:
10+
# - https://clang.llvm.org/docs/ClangFormatStyleOptions.html
11+
12+
---
13+
BasedOnStyle: LLVM
14+
AlignConsecutiveMacros: AcrossComments
15+
AllowShortBlocksOnASingleLine: Never
16+
AllowShortCaseLabelsOnASingleLine: false
17+
AllowShortEnumsOnASingleLine: false
18+
AllowShortFunctionsOnASingleLine: None
19+
AllowShortIfStatementsOnASingleLine: false
20+
AllowShortLoopsOnASingleLine: false
21+
AttributeMacros:
22+
- __aligned
23+
- __deprecated
24+
- __packed
25+
- __printf_like
26+
- __syscall
27+
- __syscall_always_inline
28+
- __subsystem
29+
BitFieldColonSpacing: After
30+
BreakBeforeBraces: Linux
31+
ColumnLimit: 100
32+
ConstructorInitializerIndentWidth: 8
33+
ContinuationIndentWidth: 8
34+
ForEachMacros:
35+
- 'ARRAY_FOR_EACH'
36+
- 'ARRAY_FOR_EACH_PTR'
37+
- 'FOR_EACH'
38+
- 'FOR_EACH_FIXED_ARG'
39+
- 'FOR_EACH_IDX'
40+
- 'FOR_EACH_IDX_FIXED_ARG'
41+
- 'FOR_EACH_NONEMPTY_TERM'
42+
- 'FOR_EACH_FIXED_ARG_NONEMPTY_TERM'
43+
- 'RB_FOR_EACH'
44+
- 'RB_FOR_EACH_CONTAINER'
45+
- 'SYS_DLIST_FOR_EACH_CONTAINER'
46+
- 'SYS_DLIST_FOR_EACH_CONTAINER_SAFE'
47+
- 'SYS_DLIST_FOR_EACH_NODE'
48+
- 'SYS_DLIST_FOR_EACH_NODE_SAFE'
49+
- 'SYS_SEM_LOCK'
50+
- 'SYS_SFLIST_FOR_EACH_CONTAINER'
51+
- 'SYS_SFLIST_FOR_EACH_CONTAINER_SAFE'
52+
- 'SYS_SFLIST_FOR_EACH_NODE'
53+
- 'SYS_SFLIST_FOR_EACH_NODE_SAFE'
54+
- 'SYS_SLIST_FOR_EACH_CONTAINER'
55+
- 'SYS_SLIST_FOR_EACH_CONTAINER_SAFE'
56+
- 'SYS_SLIST_FOR_EACH_NODE'
57+
- 'SYS_SLIST_FOR_EACH_NODE_SAFE'
58+
- '_WAIT_Q_FOR_EACH'
59+
- 'Z_FOR_EACH'
60+
- 'Z_FOR_EACH_ENGINE'
61+
- 'Z_FOR_EACH_EXEC'
62+
- 'Z_FOR_EACH_FIXED_ARG'
63+
- 'Z_FOR_EACH_FIXED_ARG_EXEC'
64+
- 'Z_FOR_EACH_IDX'
65+
- 'Z_FOR_EACH_IDX_EXEC'
66+
- 'Z_FOR_EACH_IDX_FIXED_ARG'
67+
- 'Z_FOR_EACH_IDX_FIXED_ARG_EXEC'
68+
- 'Z_GENLIST_FOR_EACH_CONTAINER'
69+
- 'Z_GENLIST_FOR_EACH_CONTAINER_SAFE'
70+
- 'Z_GENLIST_FOR_EACH_NODE'
71+
- 'Z_GENLIST_FOR_EACH_NODE_SAFE'
72+
- 'STRUCT_SECTION_FOREACH'
73+
- 'STRUCT_SECTION_FOREACH_ALTERNATE'
74+
- 'TYPE_SECTION_FOREACH'
75+
- 'K_SPINLOCK'
76+
- 'COAP_RESOURCE_FOREACH'
77+
- 'COAP_SERVICE_FOREACH'
78+
- 'COAP_SERVICE_FOREACH_RESOURCE'
79+
- 'HTTP_RESOURCE_FOREACH'
80+
- 'HTTP_SERVER_CONTENT_TYPE_FOREACH'
81+
- 'HTTP_SERVICE_FOREACH'
82+
- 'HTTP_SERVICE_FOREACH_RESOURCE'
83+
- 'I3C_BUS_FOR_EACH_I3CDEV'
84+
- 'I3C_BUS_FOR_EACH_I2CDEV'
85+
IfMacros:
86+
- 'CHECKIF'
87+
# Disabled for now, see bug https://github.com/zephyrproject-rtos/zephyr/issues/48520
88+
#IncludeBlocks: Regroup
89+
IncludeCategories:
90+
- Regex: '^".*\.h"$'
91+
Priority: 0
92+
- Regex: '^<(assert|complex|ctype|errno|fenv|float|inttypes|limits|locale|math|setjmp|signal|stdarg|stdbool|stddef|stdint|stdio|stdlib|string|tgmath|time|wchar|wctype)\.h>$'
93+
Priority: 1
94+
- Regex: '^\<zephyr/.*\.h\>$'
95+
Priority: 2
96+
- Regex: '.*'
97+
Priority: 3
98+
IndentCaseLabels: false
99+
IndentGotoLabels: false
100+
IndentWidth: 8
101+
InsertBraces: true
102+
SpaceBeforeInheritanceColon: False
103+
SpaceBeforeParens: ControlStatementsExceptControlMacros
104+
SortIncludes: Never
105+
UseTab: ForContinuationAndIndentation
106+
WhitespaceSensitiveMacros:
107+
- COND_CODE_0
108+
- COND_CODE_1
109+
- IF_DISABLED
110+
- IF_ENABLED
111+
- LISTIFY
112+
- STRINGIFY
113+
- Z_STRINGIFY
114+
- DT_FOREACH_PROP_ELEM_SEP

.codechecker.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
#
3+
# Copyright (c) 2024, Basalte bv
4+
5+
analyzer:
6+
# Start by disabling all
7+
- --disable-all
8+
9+
# Enable the sensitive profile
10+
- --enable=sensitive
11+
12+
# Disable unused cases
13+
- --disable=boost
14+
- --disable=mpi
15+
16+
# Many identifiers in zephyr start with _
17+
- --disable=clang-diagnostic-reserved-identifier
18+
- --disable=clang-diagnostic-reserved-macro-identifier
19+
20+
# Cleanup
21+
- --clean

.codecov.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
codecov:
2+
notify:
3+
require_ci_to_pass: yes
4+
5+
coverage:
6+
precision: 2
7+
round: down
8+
range: "70...100"
9+
10+
status:
11+
project: yes
12+
patch: yes
13+
changes: no
14+
15+
# ignore:
16+
# - "tests/**/*"
17+
# - "samples/**/*"
18+
# - "ext/hal/**/*"
19+
20+
parsers:
21+
gcov:
22+
branch_detection:
23+
conditional: yes
24+
loop: yes
25+
method: no
26+
macro: no
27+
28+
comment:
29+
layout: "reach, diff, flags, files, footer"
30+
behavior: default
31+
require_changes: no

.editorconfig

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
# EditorConfig: https://editorconfig.org/
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# All (Defaults)
7+
[*]
8+
charset = utf-8
9+
end_of_line = lf
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true
12+
max_line_length = 100
13+
14+
# Assembly
15+
[*.S]
16+
indent_style = tab
17+
indent_size = 8
18+
19+
# C
20+
[*.{c,h}]
21+
indent_style = tab
22+
indent_size = 8
23+
24+
# C++
25+
[*.{cpp,hpp}]
26+
indent_style = tab
27+
indent_size = 8
28+
29+
# Linker Script
30+
[*.ld]
31+
indent_style = tab
32+
indent_size = 8
33+
34+
# Python
35+
[*.py]
36+
indent_style = space
37+
indent_size = 4
38+
39+
# Perl
40+
[*.pl]
41+
indent_style = tab
42+
indent_size = 8
43+
44+
# reStructuredText
45+
[*.rst]
46+
indent_style = space
47+
indent_size = 3
48+
49+
# YAML
50+
[*.{yml,yaml}]
51+
indent_style = space
52+
indent_size = 2
53+
54+
# Shell Script
55+
[*.sh]
56+
indent_style = space
57+
indent_size = 4
58+
59+
# Windows Command Script
60+
[*.cmd]
61+
end_of_line = crlf
62+
indent_style = tab
63+
indent_size = 8
64+
65+
# Valgrind Suppression File
66+
[*.supp]
67+
indent_style = space
68+
indent_size = 3
69+
70+
# CMake
71+
[{CMakeLists.txt,*.cmake}]
72+
indent_style = space
73+
indent_size = 2
74+
75+
# Makefile
76+
[Makefile]
77+
indent_style = tab
78+
indent_size = 8
79+
80+
# Device tree
81+
[*.{dts,dtsi,overlay}]
82+
indent_style = tab
83+
indent_size = 8
84+
85+
# Git commit messages
86+
[COMMIT_EDITMSG]
87+
max_line_length = 75
88+
89+
# Kconfig
90+
[Kconfig*]
91+
indent_style = tab
92+
indent_size = 8

.gitattributes

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# used to remove files from deployment using `git archive`
2+
# git files
3+
.gitattributes export-ignore
4+
.gitignore export-ignore
5+
.mailmap export-ignore
6+
7+
# Tell git to not diff certain files
8+
*.svg -diff
9+
10+
# Tell linguist that generated test pattern files should not be included in the
11+
# language statistics.
12+
*.pat linguist-generated
13+
*.svg linguist-generated
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve Zephyr
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
<!--
10+
**Notes**
11+
Github Discussions (https://github.com/zephyrproject-rtos/zephyr/discussions)
12+
are available to first verify that the issue is a genuine Zephyr bug and not a
13+
consequence of Zephyr services misuse.
14+
15+
This issue list is only for bugs in the main Zephyr code base
16+
(https://github.com/zephyrproject-rtos/zephyr/). If the bug is for a project
17+
fork (such as NCS) specific feature, please open an issue in the fork project
18+
instead.
19+
-->
20+
21+
**Describe the bug**
22+
<!--
23+
A clear and concise description of what the bug is.
24+
25+
Please also mention any information which could help others to understand
26+
the problem you're facing:
27+
- What target platform are you using?
28+
- What have you tried to diagnose or workaround this issue?
29+
- Is this a regression? If yes, have you been able to "git bisect" it to a
30+
specific commit?
31+
- ...
32+
-->
33+
34+
**To Reproduce**
35+
<!--
36+
Steps to reproduce the behavior:
37+
1. mkdir build; cd build
38+
2. cmake -DBOARD=board\_xyz
39+
3. make
40+
4. See error
41+
-->
42+
43+
**Expected behavior**
44+
<!--
45+
A clear and concise description of what you expected to happen.
46+
-->
47+
48+
**Impact**
49+
<!--
50+
What impact does this issue have on your progress (e.g., annoyance, showstopper)
51+
-->
52+
53+
**Logs and console output**
54+
<!--
55+
If applicable, add console logs or other types of debug information
56+
e.g Wireshark capture or Logic analyzer capture (upload in zip archive).
57+
copy-and-paste text and put a code fence (\`\`\`) before and after, to help
58+
explain the issue. (if unable to obtain text log, add a screenshot)
59+
-->
60+
61+
**Environment (please complete the following information):**
62+
63+
- OS: (e.g. Linux, MacOS, Windows)
64+
- Toolchain (e.g Zephyr SDK, ...)
65+
- Commit SHA or Version used
66+
67+
**Additional context**
68+
<!--
69+
Add any other context that could be relevant to your issue, such as pin setting,
70+
target configuration, ...
71+
-->

0 commit comments

Comments
 (0)