[riot-notifications] [RIOT-OS/RIOT] periph/gpio: enable API usage for expanders (#9690)

Gunar Schorcht notifications at github.com
Wed Jan 9 13:28:08 CET 2019


> Do they have to be initialized?

Maybe I missed something. AS I understood, the GPIO_PIN macro should lead to the struct 
```
typedef struct {
   gpio_ext_t *driver;
   union {
     unsigned pin;
     gpio_cpu_t cpu_pin;
 } gpio_t;
```
that is used for the API functions `gpio_init` a.s.o. For CPU pins, `driver` has to be `NULL` and `cpu_pin` has to be assigned properly.  For expander pins, the driver has point to the expander device and `pin` has to be assign properly to. 

-- 
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/issues/9690#issuecomment-452679665
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190109/af3d1f48/attachment.html>


More information about the notifications mailing list