[riot-notifications] [RIOT-OS/RIOT] sys/auto_init: Allow to auto-initalize sensors and actuators independ of SAUL (#11871)

Marian Buschsieweke notifications at github.com
Sat Jul 20 12:26:16 CEST 2019

maribu commented on this pull request.

> @@ -1,3 +1,15 @@
+ifneq (,$(filter auto_init_actuators_%,$(USEMODULE)))

The `auto_init_sensors` module will only provide the function `void auto_init_sensors(void)`, which in absense of submodules is empty. The individual submodules have to pull in the parent `auto_init_sensors` module, as the individual auto init stuff is called from there. (Same approach for actuators.)

So when `auto_init_sensors_sht1x` is used and  no other submodule of `auto_init_sensors`, it should only auto init SHT1x.

It seems to make sense that I adopt another sensor and two actuators to the API (as separate PR for each device) to allow proper testing. But I'd rather wait a bit until the general direction has been agreed upon, in order to avoid rebasing over and over again :-)

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190720/f25641e3/attachment.htm>

More information about the notifications mailing list