cpu/msp430fxyz: Fixed input sanitizing in GPIO_PIN

This commit is contained in:
Marian Buschsieweke 2018-06-26 21:16:23 +02:00
parent 1c47f9074c
commit 80e448083e
No known key found for this signature in database
GPG Key ID: 61F64C6599B1539F

View File

@ -45,7 +45,7 @@ typedef uint16_t gpio_t;
* @brief Mandatory function for defining a GPIO pins * @brief Mandatory function for defining a GPIO pins
* @{ * @{
*/ */
#define GPIO_PIN(x, y) ((gpio_t)(((x & 0xff) << 8) | (1 << (y & 0xff)))) #define GPIO_PIN(x, y) ((gpio_t)(((x & 0xff) << 8) | (1 << (y & 0x07))))
/** /**
* @brief No support for HW chip select... * @brief No support for HW chip select...