only: smart chips: having pins mark as used helps with troubleshooting
This commit is contained in:
parent
2aff85aed9
commit
922defde35
|
@ -371,6 +371,7 @@ int Mc33810::chip_init()
|
|||
err_gpios:
|
||||
/* unmark pins */
|
||||
//gpio_pin_markUnused(cfg->spi_config.ssport, cfg->spi_config.sspad);
|
||||
#if SMART_CHIPS_UNMARK_ON_FAIL
|
||||
if (cfg->en.port) {
|
||||
/* disable and mark unused */
|
||||
palSetPort(cfg->en.port,
|
||||
|
@ -383,6 +384,7 @@ err_gpios:
|
|||
gpio_pin_markUnused(cfg->direct_io[n].port, cfg->direct_io[n].pad);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue