[riot-notifications] [RIOT-OS/RIOT] SAUL: Extract name from saul_gpio_params (#11396)

Leandro Lanzieri notifications at github.com
Mon May 27 09:18:06 CEST 2019


> > There are two exceptions to that: GPIOs and ADCs. This difference breaks the pattern and makes it more difficult to treat all devices in a generic way.
> 
> GPIO's and ADCs are different as in an unnamed GPIO is quite useless, whereas an unnamed temperature sensor makes sense.
> 
> Anyhow, would it maybe make sense to move the name into saul_driver_t instead of the other way around?

We discussed this with @smlng and think that it makes sense that this type of metadata lives in the registry, as it is the way to get the devices, for instance, by name. I see it as a way to gather all the metadata from the devices for an easy query, separated from the functional part (i.e. the driver abstraction) that SAUL provides.

-- 
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/11396#issuecomment-496106510
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190527/7bcafbf1/attachment.html>


More information about the notifications mailing list