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

Kaspar Schleiser notifications at github.com
Sun Jun 14 00:50:02 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 */
> +};

+1 for using vendor names.

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


More information about the notifications mailing list