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:
commit
7f8caf8995
@ -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...
|
||||
|
Loading…
Reference in New Issue
Block a user