Skip to content

Commit

Permalink
Merge pull request #9367 from maribu/mps430fxyz
Browse files Browse the repository at this point in the history
cpu/msp430fxyz: Fixed input sanitizing in GPIO_PIN
  • Loading branch information
PeterKietzmann authored Jun 26, 2018
2 parents 5c9fd94 + 80e4480 commit 7f8caf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpu/msp430fxyz/include/periph_cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -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...
Expand Down

0 comments on commit 7f8caf8

Please sign in to comment.