You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
uint8_t swd_init(void)
{
//TODO - DAP_Setup puts GPIO pins in a hi-z state which can
// cause problems on re-init. This needs to be investigated
// and fixed.
DAP_Setup();
PORT_SWD_SETUP();
return 1;
}
This function is called several times, during the run, for instance as Target Reset mechanism.. maybe we could use simple flag that marks port already initialized so no need to reinitialize.. or use function that could optionally force port reinitialization? :-)
The text was updated successfully, but these errors were encountered:
I've had similar thoughts. Seems silly to completely reinit the port and everything multiple times, when all we want to do is ensure that the port was inited previously.
Also, take a look at #189. While not directly related, it's in the same init/shutdown functional area of swd_host.
This function is called several times, during the run, for instance as Target Reset mechanism.. maybe we could use simple flag that marks port already initialized so no need to reinitialize.. or use function that could optionally force port reinitialization? :-)
The text was updated successfully, but these errors were encountered: