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

Sebastian notifications at github.com
Sat Jun 13 01:54:01 CEST 2015


> +/**
> + * @brief   Define a CPU specific GPIO pin generator macro
> + */
> +#define GPIO(x, y)          ((GPIOA_BASE + (x << 10)) | y)
> +
> +/**
> + * @brief   Available ports on the STM32F3 family
> + */
> +enum {
> +    PORT_A = 0,             /**< port A */
> +    PORT_B = 1,             /**< port B */
> +    PORT_C = 2,             /**< port C */
> +    PORT_D = 3,             /**< port D */
> +    PORT_E = 4,             /**< port E */
> +    PORT_F = 5,             /**< port F */
> +};

How about sticking with one naming scheme? PA, PB, ... like the other implementations.

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


More information about the notifications mailing list