Fix pin to mask conversion macro for 64-bit masks

This commit is contained in:
George Oikonomou 2018-09-30 13:03:50 +01:00
parent f91ef005bc
commit 3e9d79ca8c
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ void gpio_hal_event_handler(gpio_hal_pin_mask_t pins);
* \param pin The pin
* \return The corresponding mask
*/
#define gpio_hal_pin_to_mask(pin) (1 << (pin))
#define gpio_hal_pin_to_mask(pin) ((gpio_hal_pin_mask_t)1 << (pin))
/** @} */
/*---------------------------------------------------------------------------*/
/**