nrf9160 dynamic pin configuration

Hi,


I am working with the nrf9160 and ncs2.7.  Is it possible to programmatically change how pins are defined?

For example, on startup 2 pins are for I2C (SCL and SDA) and then after some time those 2 pins can be changed to be GPIO and have an interrupt attached?

Can the i2c pins be swapped during runtime?

Say on startup it has

SCL -> p.1

SDA -> p.2

The firmware boots up, does some I2C comms, then wants to chage the configuration to

SCL -> p.20

SDA ->p.19

Input -> p.1 with interrupt

output -> p.2

Thanks

Related