|
1 | 1 | # Contributing to XMC for Arduino
|
2 | 2 | First important point: **All Contributions** are welcomed :open_hands:.
|
3 | 3 |
|
4 |
| -Please contribute and raise issues via the [github repository](https://github.com/Infineon/XMC-for-Arduino/tree/master) |
| 4 | +Please contribute and raise issues via the [github repository](https://github.com/Infineon/XMC-for-Arduino/tree/master). |
5 | 5 |
|
6 | 6 | ## Overview for Contributors
|
7 | 7 |
|
8 |
| -- Start your contribution by creating a [fork](https://github.com/Infineon/XMC-for-Arduino/fork) of this repository |
9 |
| -- It's recommended to create a separate branch for your contribution in your fork |
10 |
| -- Once your contribution is ready & tested, please create a [Pull Request](https://github.com/Infineon/XMC-for-Arduino/compare) to the master branch |
11 |
| -- Once we merged your changes to the master branch, they are automatically included in the next release |
| 8 | +- Start your contribution by creating a [fork](https://github.com/Infineon/XMC-for-Arduino/fork) of this repository. |
| 9 | +- It's recommended to create a separate branch for your contribution in your fork. |
| 10 | +- Once your contribution is ready & tested, please create a [Pull Request](https://github.com/Infineon/XMC-for-Arduino/compare) to the master branch. We have some automated tests, so make sure you've browsed our [CODE CONVENTION](CODE_CONVENTION.md) and [development instructions](https://xmc-arduino.readthedocs.io/en/latest/development-instructions.html) |
| 11 | +- Once we merged your changes to the master branch, they are automatically included in the next release. |
12 | 12 |
|
13 |
| -## Install the BSP under development (on Windows) |
14 |
| -Clone the repository in Arduino folder: |
15 |
| -- Open Arduino and install any version of this project as described [here](https://xmc-arduino.readthedocs.io/en/latest/installation-instructions.html). |
16 |
| -- Open the installation location in your Arduino program folder, e.g. |
17 |
| -`C:\Users\<username>\AppData\Local\Arduino15\packages\Infineon\hardware\xmc` |
18 |
| -- Open git bash, type command: |
19 |
| -`git clone <your-xmc-for-arduino-fork> <version>` |
20 |
| - |
21 |
| -This allows quick testing of local changes during development. |
22 |
| - |
23 |
| -[!TIP] |
24 |
| -If you encounter strange behavior with Arduino IDE during development, try cleaning up the cache: |
25 |
| -* Windows: `C:\User\"username"\AppData\Roaming\arduino-ide` |
26 |
| -* Linux: `~/.config/arduino-ide` |
27 |
| -* macOS: `~/Library/Application Support/arduino-ide/` |
28 |
| - |
29 |
| -## Automated Build Checks |
30 |
| - |
31 |
| -Currently a Github workflow is used for automatic compilation checking and releasing. Workflows are defined [here](https://github.com/Infineon/XMC-for-Arduino/tree/master/.github/workflows). |
32 |
| -Before opening a Pull Request for your contribution, please add a git tag in the format `Vx.y.z` (e.g. V3.3.0) to trigger the release process in your fork and pass the compilation tests. |
33 |
| - |
34 |
| -## Creating and Maintaining Third Party Libraries |
35 |
| -### Basics |
36 |
| -The Arduino IDE allows for external libraries to be added to support specific devices and functions which are not part of the core setup. For details on creating libraries see the |
37 |
| -[Arduino library specifications](https://arduino.github.io/arduino-cli/library-specification/). If you add additional libraries to this project, make sure to [document them](https://xmc-arduino.readthedocs.io/en/latest/builtin-libraries.html) accordingly. |
38 |
| - |
39 |
| -### XMC-for-Arduino Configuration |
40 |
| -To ensure that a library specific to one architecture or board type is only compiled when a supporting board is set up, this specification includes a setting for *architecture* in the *library.properties* file. |
41 |
| - |
42 |
| -When creating or maintaining third party or external libraries for XMC-for-Arduino please use this setting: |
43 |
| -~~~ |
44 |
| -architecture=xmc |
45 |
| -~~~ |
46 |
| - |
47 |
| -If your library also supports other boards and architectures, add those in as well. |
48 |
| - |
49 |
| -## Validation test |
50 |
| -To test the XMC4arduino, we used unity to test some of the features of the arduino core & builtin library. |
51 |
| - |
52 |
| -Tests are located in tests/arduino-core-tests and included as submodule in this project. Run `git submodule update --init --recursive` to update them. If you are nor familiar with submodules, check out: https://git-scm.com/book/en/v2/Git-Tools-Submodules |
53 |
| - |
54 |
| -## Code checks (WIP) |
55 |
| -Refer to libraries\CAN\Makefile.codecheck |
56 |
| -* Regarding formatting, we currently use [pre-commit](https://pre-commit.com/) to automatically run clang-formatting to format all c/c++ code. Please install this python package, and follow the quick start (the pre-commit configuration file is already there). You should be able to format your code automatically on git commit! |
| 13 | +## Development |
| 14 | +Please check [development instructions](https://xmc-arduino.readthedocs.io/en/latest/development-instructions.html) section in our documentation for more information on how to set up your development enviroment and start developing XMC4Arduino! |
0 commit comments