1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

Merge pull request #9367 from maribu/mps430fxyz

cpu/msp430fxyz: Fixed input sanitizing in GPIO_PIN
This commit is contained in:
Peter Kietzmann 2018-06-26 21:50:41 +02:00 committed by GitHub
commit 7f8caf8995
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,7 +45,7 @@ typedef uint16_t gpio_t;
* @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...