nrfx_gpiote: remove channel dealloc from nrfx_gpiote_init
GPIOTE channels allocated outside of the context of the driver are no longer implicitly deallocated during driver initialization. Signed-off-by: Nikodem Kastelik <nikodem.kastelik@nordicsemi.no>
This commit is contained in:
parent
46b65a5a6e
commit
6667950c23
|
@ -258,7 +258,11 @@ nrfx_err_t nrfx_gpiote_init(uint8_t interrupt_priority)
|
|||
|
||||
for (i = 0; i < (GPIOTE_CH_NUM + NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS); i++)
|
||||
{
|
||||
channel_free(i);
|
||||
m_cb.handlers[i] = UNALLOCATED_HANDLER_ADDRESS;
|
||||
if (i >= GPIOTE_CH_NUM)
|
||||
{
|
||||
m_cb.port_handlers_pins[i - GPIOTE_CH_NUM] = (int8_t)PIN_NOT_USED;
|
||||
}
|
||||
}
|
||||
|
||||
memset(m_cb.configured_pins, 0, sizeof(m_cb.configured_pins));
|
||||
|
|
Loading…
Reference in New Issue