Reconfigure GPIO in runtime

Hi,

We have some GPIO pins where we want to change their configuration during runtime. We want to switch them between input pull down and output. Is this possible?

When we try it we get no errors, except that we can get no load on the output pins (as measured by a voltmeter).

Thanks a lot.

Parents
  • Hi Olof

    You are using NCS/zephyr right? 

    Currently there is no elegant solution for doing this, there is a PR in progress in upstream Zephyr but I don't expect that we will see it before august at earliest. 

    I do however suspect you can take a look at what a co-worker did in this case where he did some changes to pins in runtime. 

    Regards

    Runar

Reply
  • Hi Olof

    You are using NCS/zephyr right? 

    Currently there is no elegant solution for doing this, there is a PR in progress in upstream Zephyr but I don't expect that we will see it before august at earliest. 

    I do however suspect you can take a look at what a co-worker did in this case where he did some changes to pins in runtime. 

    Regards

    Runar

Children
No Data
Related