[riot-notifications] [RIOT] cpu/msp430: added periph GPIO driver implementation (#3760)

Hauke Petersen notifications at github.com
Thu Sep 3 14:27:04 CEST 2015


> +    GPIO_BOTH    = 0xab         /**< not supported -> random value*/
> +} gpio_flank_t;
> +/** @} */
> +
> +/**
> + * @brief   Available ports on MSP430 platforms
> + */
> +enum {
> +    P0 = 0,                 /**< PORT 0 */
> +    P1 = 1,                 /**< PORT 1 */
> +    P2 = 2,                 /**< PORT 2 */
> +    P3 = 3,                 /**< PORT 3 */
> +    P4 = 4,                 /**< PORT 4 */
> +    P5 = 5,                 /**< PORT 5 */
> +    P6 = 6,                 /**< PORT 6 */
> +};

Although for these CPUs a simple `GPIO(0,3)` might work, I would still leave this in so we are consisted throughout all CPUs (where others have something like `PORT_A` or `PA` defined here...)

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


More information about the notifications mailing list