Skip to content

Commit

Permalink
cpu/msp430fxyz: Fixed input sanitizing in GPIO_PIN
Browse files Browse the repository at this point in the history
  • Loading branch information
maribu committed Jun 26, 2018
1 parent 1c47f90 commit 80e4480
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 80e4480

Please sign in to comment.