Persist gpio configuration

All about Sub-20 Multi Interface USB Adapter USB to I2C, SPI, GPIO, RS232, RS485, Ir, LCD

Moderator: serg

Post Reply
EvgenyMuryshkin
Posts: 4
Joined: Tue Jan 14, 2014 9:11 pm

Persist gpio configuration

Post by EvgenyMuryshkin »

Hi,

Is it possible to burn gpio configuration in controller so i don't have to initialize it every time board goes over power cicle?

Thank you.
Evgeny.

xol
Site Admin
Posts: 241
Joined: Sat Aug 29, 2009 8:04 am

Re: Persist gpio configuration

Post by xol »

Hi.
Yes it can be done but it is not implemented in API yet. The reason is that this feature is potentially dangerous as GPIO persistently configured as OUTPUT can be connected by mistake to OUTPUT or GND on some target and cause to short. If you have a number of target types you can forget the configuration made on specific SUB-20 board and get board or target damaged in this case.

EvgenyMuryshkin
Posts: 4
Joined: Tue Jan 14, 2014 9:11 pm

Re: Persist gpio configuration

Post by EvgenyMuryshkin »

Ok, that is not a big deal, i can configure them every time I run tests.

Thank you.

Post Reply