[riot-notifications] [RIOT] drivers/gpio: changed periph driver interface (#3095)

Kaspar Schleiser notifications at github.com
Mon Jun 1 14:06:58 CEST 2015


@haukepetersen One thing I stumbled over when implementing a driver against this:
gpio.h defines the values for the flags, e.g., GPIO_DIR_IN or GPIO_NOPULL. When writing my driver, I had to basically write conversion tables, converting GPIO_DIR_IN (0) to the value of the specific MCU.

Maybe we can make the defines in gpio.h optional, as in, ```#ifdef CPU_DEFINES_GPIO_DIR_T``` ...?


---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/3095#issuecomment-107417715
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20150601/b1203a8b/attachment.html>


More information about the notifications mailing list