Skip to content

Commit 4f4ca11

Browse files
authored
Merge pull request #3 from stm32duino/master
Update
2 parents f2ef8f2 + d3ba7fe commit 4f4ca11

File tree

4,343 files changed

+6301436
-4940833
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,343 files changed

+6301436
-4940833
lines changed

Diff for: .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

Diff for: .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+

Diff for: .github/ISSUE_TEMPLATE/bug_report.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ assignees: ''
1515
- **Avoid** to submit a GitHub issue for project troubleshooting.
1616

1717
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=48)
19-
* bugs/enhancements on the [STM core: Bugs and enhancements](http://stm32duino.com/viewforum.php?f=49)
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)
2020

2121
When reporting any issue, please try to provide all relevant information:
2222

Diff for: .github/PULL_REQUEST_TEMPLATE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Please, Make sure that your PR is not a duplicate.
44
Search among the [Pull request](https://github.com/stm32duino/Arduino_Core_STM32/pulls) before creating one.
55

6-
IMPORTANT: Please review the [CONTRIBUTING.md](CONTRIBUTING.md) file for detailed contributing guidelines.
6+
IMPORTANT: Please review the [CONTRIBUTING.md](../CONTRIBUTING.md) file for detailed contributing guidelines.
77

88
Thanks for submitting a pull request.
99
Please provide enough information so that others can review your pull request:

Diff for: .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"]

Diff for: .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+
```

Diff for: .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 }}

Diff for: .github/actions/pio-build/entrypoint.sh

+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 $?

Diff for: .github/workflows/Continuous-Integration.yml

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: STM32 Core Continuous Integration
2+
on:
3+
push:
4+
branches:
5+
- master
6+
paths-ignore:
7+
- '*.json'
8+
- '**.md'
9+
- keywords.txt
10+
- CI/**
11+
- '!CI/build/arduino-cli.py'
12+
- '!CI/build/platformio-builder.py'
13+
- tools/**
14+
pull_request:
15+
paths-ignore:
16+
- '*.json'
17+
- '**.md'
18+
- keywords.txt
19+
- CI/**
20+
- '!CI/build/arduino-cli.py'
21+
- '!CI/build/platformio-builder.py'
22+
- tools/**
23+
jobs:
24+
astyle_check:
25+
runs-on: ubuntu-latest
26+
name: AStyle check
27+
steps:
28+
# First of all, clone the repo using the checkout action.
29+
- name: Checkout
30+
uses: actions/checkout@master
31+
32+
- name: Astyle check
33+
id: Astyle
34+
uses: stm32duino/actions/astyle-check@master
35+
with:
36+
astyle-definition: 'CI/astyle/.astylerc'
37+
ignore-path-list: 'CI/astyle/.astyleignore'
38+
39+
# Use the output from the `Astyle` step
40+
- name: Astyle Errors
41+
if: failure()
42+
run: |
43+
cat ${{ steps.Astyle.outputs.astyle-result }}
44+
exit 1
45+
core_build:
46+
runs-on: ubuntu-latest
47+
name: Core compilation
48+
steps:
49+
# First of all, clone the repo using the checkout action.
50+
- name: Checkout
51+
uses: actions/checkout@master
52+
53+
- name: Compilation
54+
id: Compile
55+
uses: stm32duino/actions/compile-examples@master
56+
57+
# Use the output from the `Compile` step
58+
- name: Compilation Errors
59+
if: failure()
60+
run: |
61+
cat ${{ steps.Compile.outputs.compile-result }}
62+
exit 1
63+
pio_build:
64+
runs-on: ubuntu-latest
65+
name: PlatformIO test
66+
steps:
67+
# First of all, clone the repo using the checkout action.
68+
- name: Checkout
69+
uses: actions/checkout@master
70+
71+
- name: PlatformIO
72+
id: Compile
73+
uses: ./.github/actions/pio-build

Diff for: .gitignore

+34-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,37 @@
1-
*.orig
2-
*.swp
3-
.DS_Store
1+
# Specific
42
astyle.out
53
boards.local.txt
64
platform.local.txt
7-
*.code-workspace
8-
.vscode
5+
path_config.json
6+
update_config.json
7+
8+
# Backup
9+
*.bak
10+
*.gho
11+
*.ori
12+
*.swp
13+
*.tmp
14+
15+
# macOS
16+
# General
17+
.DS_Store
18+
.AppleDouble
19+
.LSOverride
20+
21+
# Patch
22+
*.orig
23+
*.rej
24+
25+
# Python
26+
# Byte-compiled / optimized / DLL files
27+
__pycache__/
28+
*.py[cod]
29+
*$py.class
30+
31+
# VisualStudioCode
32+
.vscode/*
33+
!.vscode/settings.json
34+
!.vscode/tasks.json
35+
!.vscode/launch.json
36+
!.vscode/extensions.json
37+
*.code-workspace

Diff for: .travis.yml

-70
This file was deleted.

0 commit comments

Comments
 (0)