Skip to content

Commit 5ccb054

Browse files
committed
Import c-link sources
1 parent 4a1a2a5 commit 5ccb054

File tree

515 files changed

+57285
-354
lines changed

Some content is hidden

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

515 files changed

+57285
-354
lines changed

.clang-format

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
AlignAfterOpenBracket: AlwaysBreak
2+
AlignConsecutiveAssignments: true
3+
AlignConsecutiveMacros: true
4+
AllowAllArgumentsOnNextLine: false
5+
AllowAllParametersOfDeclarationOnNextLine: false
6+
AllowShortCaseLabelsOnASingleLine: false
7+
AllowShortFunctionsOnASingleLine: None
8+
AllowShortIfStatementsOnASingleLine: Never
9+
BinPackArguments: false
10+
BinPackParameters: false
11+
BreakBeforeBraces: Custom
12+
BraceWrapping:
13+
AfterCaseLabel: true
14+
AfterClass: true
15+
AfterControlStatement: true
16+
AfterEnum: true
17+
AfterFunction: true
18+
AfterNamespace: true
19+
AfterStruct: true
20+
AfterUnion: true
21+
BeforeCatch: true
22+
BeforeElse: true
23+
IndentBraces: false
24+
SplitEmptyFunction: true
25+
SplitEmptyRecord: true
26+
SplitEmptyNamespace: false
27+
AfterExternBlock: false
28+
ColumnLimit: 80
29+
ContinuationIndentWidth: 3
30+
IndentCaseLabels: false
31+
IndentWidth: 3
32+
PenaltyBreakAssignment: 10
33+
PenaltyBreakBeforeFirstCallParameter: 30
34+
PenaltyBreakComment: 10
35+
PenaltyBreakString: 1000
36+
PenaltyExcessCharacter: 15
37+
PenaltyReturnTypeOnItsOwnLine: 100000
38+
PointerAlignment: Middle
39+
SortIncludes: false
40+
SpaceAfterCStyleCast: false
41+
SpaceBeforeParens: NonEmptyParentheses
42+
UseTab: Never

.clang-tidy

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Clang-tidy overview found in https://clang.llvm.org/extra/clang-tidy/
2+
# For description of test cases, see https://clang.llvm.org/extra/clang-tidy/checks/list.html
3+
#
4+
# List generated with clang-tidy 10.0.0
5+
# Updated for use with clang-tidy 16
6+
#
7+
# Do not use in-line comments
8+
#
9+
# Note:
10+
# We use the compiler to detect uninitialized use, instead of "cppcoreguidelines-init-variables"
11+
---
12+
Checks: "abseil-*,
13+
android-*,
14+
boost-*,
15+
bugprone-*,
16+
-bugprone-easily-swappable-parameters,
17+
cert-*,
18+
clang-analyzer-*,
19+
clang-diagnostic-*,
20+
concurrency-*,
21+
-concurrency-mt-unsafe,
22+
cppcoreguidelines-*,
23+
-cppcoreguidelines-avoid-magic-numbers,
24+
-cppcoreguidelines-init-variables,
25+
darwin-*,
26+
fuchsia-*,
27+
google-*,
28+
hicpp-*,
29+
-hicpp-signed-bitwise,
30+
linuxkernel-*,
31+
llvm-*,
32+
misc-*,
33+
-misc-unused-parameters,
34+
modernize-*,
35+
-modernize-use-trailing-return-type,
36+
-modernize-macro-to-enum,
37+
mpi-*,
38+
objc-*,
39+
openmp-*,
40+
performance-*,
41+
portability-*,
42+
readability-*,
43+
-readability-identifier-length,
44+
-readability-magic-numbers,
45+
zircon-*"
46+
WarningsAsErrors: "*"
47+
HeaderFilterRegex: "^cl"
48+
AnalyzeTemporaryDtors: false
49+
FormatStyle: none
50+
User: user
51+
CheckOptions:
52+
- key: readability-function-cognitive-complexity.Threshold
53+
value: "150"
54+
- key: readability-function-size.StatementThreshold
55+
value: "1600"
56+
- key: hicpp-function-size.StatementThreshold
57+
value: "1600"
58+
- key: google-readability-function-size.StatementThreshold
59+
value: "1600"
60+
- key: bugprone-reserved-identifier.AllowedIdentifiers
61+
value: "_GNU_SOURCE"
62+
- key: cert-dcl37-c.AllowedIdentifiers
63+
value: "_GNU_SOURCE"
64+
- key: cert-dcl51-cpp.AllowedIdentifiers
65+
value: "_GNU_SOURCE"
66+
---

.gitattributes

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,23 @@
11
# Auto detect text files and perform LF normalization
22
* text=auto
33

4+
# Custom for Visual Studio
5+
*.cs diff=csharp
6+
7+
# Standard to msysgit
8+
*.doc diff=astextplain
9+
*.DOC diff=astextplain
10+
*.docx diff=astextplain
11+
*.DOCX diff=astextplain
12+
*.dot diff=astextplain
13+
*.DOT diff=astextplain
14+
*.pdf diff=astextplain
15+
*.PDF diff=astextplain
16+
*.rtf diff=astextplain
17+
*.RTF diff=astextplain
18+
419
# Do not perform LF normalization on bash scripts
520
*.service text eol=lf
621
*.raspberrypi text eol=lf
7-
bin/set_ip_address_netmask text eol=lf
8-
bin/set_cclink_leds text eol=lf
22+
src/ports/linux/set_ip_address_netmask text eol=lf
23+
src/ports/linux/set_cclink_leds text eol=lf

.github/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Evaluation version
2+
3+
This repository contains an evaluation version of **c-link**, a
4+
CC-Link IE Field Basic stack. It does not contain any ports and cannot
5+
be built without adding additional sources.
6+
7+
See the release pages for binary downloads for common targets.
8+
9+
This version of c-link can be used for evaluation purposes
10+
only. Contact sales@rt-labs.com if you intend to use this stack in a
11+
product or if you need assistance during evaluation. The commercial
12+
version of this stack is supplied with full sources.

.gitignore

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,60 @@
1+
build*/
2+
env/
3+
*~
4+
*#
5+
CMakeFiles/
6+
CMakeCache.txt
7+
install
8+
9+
.cproject
10+
.project
11+
.dir-locals.el
12+
13+
# Python files
14+
docs/.mypy_cache/
15+
docs/_generated/
16+
docs/__pycache__/
17+
*env*
18+
19+
# Object files
20+
*.o
21+
*.ko
22+
*.obj
23+
*.elf
24+
25+
# Precompiled Headers
26+
*.gch
27+
*.pch
28+
29+
# Libraries
30+
*.lib
31+
*.a
32+
*.la
33+
*.lo
34+
35+
# Shared objects (inc. Windows DLLs)
36+
*.dll
37+
*.so
38+
*.so.*
39+
*.dylib
40+
41+
# Executables
42+
*.exe
43+
*.out
44+
*.app
45+
*.i*86
46+
*.x86_64
47+
*.hex
48+
49+
# Profiling, fuzz testing
50+
*.profraw
51+
*.profdata
52+
*.html
53+
54+
# Editor files
55+
.vscode/
56+
.vs/
57+
158
# Sampleapp dummy LED files
259
sampleapp_led*.txt
360

@@ -6,3 +63,7 @@ sampleapp_led*.txt
663

764
# Persistent data storage
865
clm_data*.bin
66+
67+
# Packaged files
68+
*.zip
69+
*.bz2

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "cmake/tools"]
2+
path = cmake/tools
3+
url = https://github.com/rtlabs-com/cmake-tools

0 commit comments

Comments
 (0)