[riot-notifications] [RIOT-OS/RIOT] Package Arduino-SDI-12 (#16587)

J. David Ibáñez notifications at github.com
Fri Jun 25 17:05:17 CEST 2021


<!--
The RIOT community cares a lot about code quality.
Therefore, before describing what your contribution is about, we would like
you to make sure that your modifications are compliant with the RIOT
coding conventions, see https://github.com/RIOT-OS/RIOT/wiki/Coding-conventions.
-->

### Contribution description

Package the Arduino-SDI-12 library, see https://github.com/EnviroDIY/Arduino-SDI-12

SDI-12 is a serial communications protocol used by many sensors.

<!--
Put here the description of your contribution:
- describe which part(s) of RIOT is (are) involved
- if it's a bug fix, describe the bug that it solves and how it is solved
- you can also give more information to reviewers about how to test your changes
-->


### Testing procedure

Testing that the test program builds:

```
BOARD=arduino-mega2560 make -C tests/pkg_arduino_sdi_12/
```

This is a test I've done using ATmega2560 board and the Decagon CTD-10 sensor:

```
$ BOARD=arduino-mega2560 make -C tests/pkg_arduino_sdi_12/ all flash term
[...]
2021-06-22 11:14:04,436 # Connect to serial port /dev/ttyACM0
Welcome to pyterm!
Type '/exit' to exit.
2021-06-22 11:14:05,442 # This is RIOT! (Version: 2021.07-devel-459-gb840b0-sdi12)
2021-06-22 11:14:05,442 # 

2021-06-22 11:14:05,445 # main(): This is RIOT! (Version: 2021.07-devel-459-gb840b0-sdi12)
2021-06-22 11:14:06,296 # 013DECAGON CTD-103991059303507
2021-06-22 11:14:09,678 # 013DECAGON CTD-103991059303507
2021-06-22 11:14:13,057 # 013DECAGON CTD-103991059303507
2021-06-22 11:14:13,468 # Exiting Pyterm
```


<!--
Details steps to test your contribution:
- which test/example to compile for which board and is there a 'test' command
- how to know that it was not working/available in master
- the expected success test output
-->


### Issues/PRs references

This PR supersedes PR #16490 

<!--
Examples: Fixes #1234. See also #5678. Depends on PR #9876.

Please use keywords (e.g., fixes, resolve) with the links to the issues you
resolved, this way they will be automatically closed when your pull request
is merged. See https://help.github.com/articles/closing-issues-using-keywords/.
-->

You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/16587

-- Commit Summary --

  * Package Arduino-SDI-12
  * arduino-atmega: define F_CPU, required by pkg/arduino_sdi_12
  * Arduino: add vendor files required by SDI-12 pkg
  * Arduino(atmega): add digitalPinTo* macros
  * Arduino(atmega): add interrupts/noInterrupts macro

-- File Changes --

    M boards/common/arduino-atmega/include/arduino_board.h (26)
    M boards/common/arduino-atmega/include/arduino_pinmap.h (27)
    M pkg/Kconfig (1)
    A pkg/arduino_sdi_12/Kconfig (4)
    A pkg/arduino_sdi_12/Makefile (9)
    A pkg/arduino_sdi_12/Makefile.dep (2)
    A pkg/arduino_sdi_12/Makefile.include (3)
    A pkg/arduino_sdi_12/doc.txt (6)
    M sys/arduino/Makefile (3)
    M sys/arduino/Makefile.include (1)
    A sys/arduino/vendor/Makefile (3)
    A sys/arduino/vendor/Print.cpp (266)
    A sys/arduino/vendor/Stream.cpp (318)
    A sys/arduino/vendor/include/Print.h (93)
    A sys/arduino/vendor/include/Printable.h (40)
    A sys/arduino/vendor/include/Stream.h (129)
    A sys/arduino/vendor/include/WString.h (229)
    A tests/pkg_arduino_sdi_12/Makefile (5)
    A tests/pkg_arduino_sdi_12/main.cpp (43)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/16587.patch
https://github.com/RIOT-OS/RIOT/pull/16587.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16587
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210625/a77bb609/attachment-0001.htm>


More information about the notifications mailing list