Sorry for probably stupid question..
All the time in SDK we set need bits through the mask, for example
NRF_GPIOTE->CONFIG[idx] |= (pin << GPIOTE_CONFIG_PSEL_Pos) & GPIOTE_CONFIG_PSEL_Msk)
I can't understand why we don't just write such way:
NRF_GPIOTE->CONFIG[idx] |= (pin << GPIOTE_CONFIG_PSEL_Pos)
In what case
(pin << GPIOTE_CONFIG_PSEL_Pos) is not equals to
(pin << GPIOTE_CONFIG_PSEL_Pos) & GPIOTE_CONFIG_PSEL_Msk) ???