Skip to content

Commit 3c186e6

Browse files
committed
0 parents  commit 3c186e6

File tree

4,452 files changed

+6386325
-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.

4,452 files changed

+6386325
-0
lines changed

.editorconfig

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[*]
2+
end_of_line = lf
3+
insert_final_newline = true
4+
indent_style = space
5+
indent_size = 2
6+
trim_trailing_whitespace = true
7+
8+
[*.sh]
9+
# like -i=2
10+
indent_style = space
11+
indent_size = 2
12+
13+
#shell_variant = posix # like -ln=posix
14+
#binary_next_line = true # like -bn
15+
switch_case_indent = true # like -ci
16+
space_redirects = true # like -sr
17+
#keep_padding = true # like -kp

.gitattributes

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Set the default behavior, in case people don't have core.autocrlf set.
2+
* text=auto
3+
4+
# Explicitly declare text files you want to always be normalized and converted
5+
# to native line endings on checkout.
6+
.astyleignore text eol=lf
7+
.astylerc text eol=lf
8+
.editorconfig text eol=lf
9+
.flake8 text eol=lf
10+
.gitattributes text eol=lf
11+
.gitignore text eol=lf
12+
13+
*.adoc text eol=lf
14+
*.c text eol=lf
15+
*.cmake text eol=lf
16+
*.cpp text eol=lf
17+
*.css text eol=lf
18+
*.dtsi text eol=lf
19+
*.gv text eol=lf
20+
*.h text eol=lf
21+
*.html text eol=lf
22+
*.in text eol=lf
23+
*.ino text eol=lf
24+
*.json text eol=lf
25+
*.ld text eol=lf
26+
*.md text eol=lf
27+
*.MD text eol=lf
28+
*.old text eol=lf
29+
*.patch text eol=lf
30+
*.pde text eol=lf
31+
*.properties text eol=lf
32+
*.py text eol=lf
33+
*.s text eol=lf
34+
*.S text eol=lf
35+
*.sh text eol=lf
36+
*.spec text eol=lf
37+
*.txt text eol=lf
38+
*.yml text eol=lf
39+
40+
# Denote all files that are truly binary and should not be modified.
41+
*.jpg binary
42+
*.pdf binary
43+
*.png binary
44+

.github/CODE_OF_CONDUCT.md

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at [email protected]. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org
74+
75+
For answers to common questions about this code of conduct, see
76+
https://www.contributor-covenant.org/faq

.github/ISSUE_TEMPLATE/bug_report.md

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Please, before reporting any issue**
11+
- Make sure you are using the latest Arduino_Core_STM32 version.
12+
https://github.com/stm32duino/Arduino_Core_STM32/releases/latest
13+
- Make sure the issue is not already reported/fixed on GitHub or discussed on the [stm32duino forum](http://stm32duino.com)
14+
- Submit a GitHub issue only for reporting a problem related to the [Arduino_Core_STM32](https://github.com/stm32duino/Arduino_Core_STM32).
15+
- **Avoid** to submit a GitHub issue for project troubleshooting.
16+
17+
Any questions/feedback/suggestions should be discussed on the [stm32duino forum](http://stm32duino.com):
18+
* questions on the [STM32 Core](http://stm32duino.com/viewforum.php?f=35)
19+
* bugs/enhancements on the [STM core: Bugs and enhancements](http://stm32duino.com/viewforum.php?f=38)
20+
21+
When reporting any issue, please try to provide all relevant information:
22+
23+
**Describe the bug**
24+
A clear and concise description of what the bug is.
25+
26+
**To Reproduce**
27+
Complete source code which can be used to reproduce the issue. Please try to be as generic as possible (no extra code, extra hardware,...)
28+
29+
Steps to reproduce the behavior:
30+
1. Plug
31+
2. Press USER_BTN
32+
3. See error
33+
34+
**Expected behavior**
35+
A clear and concise description of what you expected to happen.
36+
37+
**Screenshots**
38+
If applicable, add screenshots to help explain your problem.
39+
40+
**Desktop (please complete the following information):**
41+
- OS: [e.g. Windows]
42+
- Arduino IDE version: [e.g. 1.8.8]
43+
- STM32 core version: [e.g. 1.4.0]
44+
- Tools menu settings if not the default: [e.g. Newlib Standard, No Serial]
45+
- Upload method: [e.g. STLink]
46+
47+
**Board (please complete the following information):**
48+
- Name: [e.g. Nucleo F429ZI]
49+
- Hardware Revision: [e.g. Rev B]
50+
- Extra hardware used if any: [e.g. X-Nucleo IKS01A1]
51+
52+
**Additional context**
53+
Add any other context about the problem here.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: Feature request/improvement
3+
about: Suggest an idea or improvement for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request/improvement related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context, example or screenshots about the feature request here.
21+
22+
Any contribution is welcome, so do not hesitate to submit a PR.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: New variant request
3+
about: Request for a new board support
4+
title: "[New Variant]"
5+
labels: New variant
6+
assignees: ''
7+
8+
---
9+
10+
**Board description (please complete the following information):**
11+
- Name: [e.g. DISCOVERY F769NI]
12+
- Link to all relevant information:
13+
* Documentations
14+
* Schematics
15+
* Where this hardware can be purchased
16+
* ...
17+
18+
**Note that user can add a STM32 based board following this [wiki](https://github.com/stm32duino/wiki/wiki/Add-a-new-variant-(board))**
19+
20+
Any contribution is welcome, so do not hesitate to submit a PR.

.github/PULL_REQUEST_TEMPLATE.md

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
## Pull Request template
2+
3+
Please, Make sure that your PR is not a duplicate.
4+
Search among the [Pull request](https://github.com/stm32duino/Arduino_Core_STM32/pulls) before creating one.
5+
6+
IMPORTANT: Please review the [CONTRIBUTING.md](../CONTRIBUTING.md) file for detailed contributing guidelines.
7+
8+
Thanks for submitting a pull request.
9+
Please provide enough information so that others can review your pull request:
10+
11+
**Summary**
12+
13+
<!-- Summary of the PR -->
14+
15+
This PR fixes/implements the following **bugs/features**
16+
17+
* [ ] Bug 1
18+
* [ ] Bug 2
19+
* [ ] Feature 1
20+
* [ ] Feature 2
21+
* [ ] Breaking changes
22+
23+
<!-- You can skip this if you're fixing a typo or adding an app to the Showcase. -->
24+
25+
Explain the **motivation** for making this change. What existing problem does the pull request solve?
26+
27+
<!-- Example: When "Adding a function to do X", explain why it is necessary to have a way to do X. -->
28+
29+
**Validation**
30+
31+
* Ensure CI build is passed.
32+
* Demonstrate the code is solid. [e.g. Provide a sketch]
33+
34+
<!-- Make sure tests pass on both CI. -->
35+
36+
**Code formatting**
37+
38+
* Ensure AStyle check is passed thanks CI
39+
40+
<!-- See the simple style guide. -->
41+
42+
**Closing issues**
43+
44+
<!-- Put `closes #XXXX` in your comment to auto-close the issue that your PR fixes (if such). -->
45+
Fixes #xxx

.github/actions/pio-build/Dockerfile

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Container image that runs your code
2+
FROM ubuntu:latest
3+
4+
ENV LANG C.UTF-8
5+
ENV LC_ALL C.UTF-8
6+
7+
# Install prerequisites
8+
RUN apt-get --quiet=2 update && apt-get install --quiet=2 --assume-yes git python3 python3-pip wget
9+
10+
# Install PlatformIO
11+
RUN pip3 install --quiet --upgrade platformio
12+
CMD /bin/bash
13+
14+
# Copies your code file from your action repository to the filesystem path `/` of the container
15+
COPY entrypoint.sh /entrypoint.sh
16+
17+
# Code file to execute when the docker container starts up (`entrypoint.sh`)
18+
ENTRYPOINT ["/entrypoint.sh"]

.github/actions/pio-build/README.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# PlatformIO build action
2+
3+
This action build thanks PIO.
4+
5+
## Inputs
6+
7+
### `cmsis-version`
8+
9+
The CMSIS version to use. Default `"5.5.1"`.
10+
11+
## Example usage
12+
13+
```yaml
14+
uses: ./.github/actions/pio-build
15+
```

.github/actions/pio-build/action.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# action.yml
2+
name: 'PlatformIO Build'
3+
description: 'Compile using PlatformIO'
4+
inputs:
5+
cmsis-version:
6+
description: 'CMSIS package version to use'
7+
default: '5.5.1'
8+
runs:
9+
using: 'docker'
10+
image: 'Dockerfile'
11+
args:
12+
- ${{ inputs.cmsis-version }}
+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/bin/bash
2+
3+
readonly CMSIS_VERSION="$1"
4+
readonly CMSIS_ARCHIVE="CMSIS-${CMSIS_VERSION}.tar.bz2"
5+
6+
# Install the development version of ststm32 platform
7+
platformio platform install "https://github.com/platformio/platform-ststm32.git" || {
8+
exit 1
9+
}
10+
# Prepare framework for CI
11+
python3 -c "import json; import os; fp=open(os.path.expanduser('~/.platformio/platforms/ststm32/platform.json'), 'r+'); data=json.load(fp); data['packages']['framework-arduinoststm32']['version'] = '*'; fp.seek(0); fp.truncate(); json.dump(data, fp); fp.close()" || {
12+
exit 1
13+
}
14+
ln --symbolic "$GITHUB_WORKSPACE" "$HOME/.platformio/packages/framework-arduinoststm32" || {
15+
exit 1
16+
}
17+
# Download and unpack CMSIS package
18+
wget --no-verbose "https://github.com/stm32duino/ArduinoModule-CMSIS/releases/download/$CMSIS_VERSION/$CMSIS_ARCHIVE" || {
19+
exit 1
20+
}
21+
tar --extract --bzip2 --file="$CMSIS_ARCHIVE" || {
22+
exit 1
23+
}
24+
cd "$GITHUB_WORKSPACE/CI/build/" || {
25+
exit 1
26+
}
27+
python3 platformio-builder.py --board=blackpill_f103c8 --board=remram_v1
28+
29+
exit $?

0 commit comments

Comments
 (0)