cpu/msp430fxyz: Fixed input sanitizing in GPIO_PIN
This commit is contained in:
parent
1c47f9074c
commit
80e448083e
@ -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…
x
Reference in New Issue
Block a user