On Wed, May 13, 2009 at 6:11 PM, David Brownell <davi...@pacbell.net> wrote: > On Wednesday 13 May 2009, Řyvind Harboe wrote: >> >> Not always, TAP_INVALID is really TAP_DONTCARE >> > >> > I was wondering about that. Someone should rename it >> > so it's no longer nonsense. >> >> The point > > Make that: "another" point. > > >> is to do away with "don't care", "default" and global variables. > > That can work. But INVALID != DONTCARE. All those calls > referencing TAP_INVALID read, to anyone not deeply familiar > with the code, like "do <something> with an illegal state".
TAP_INVALID can stay because it would truely be invalid to use it anywhere. You can't define an invalid end state under the new scheme, nor a default state, just a state that the TAP controller should move into after scanning. -- Øyvind Harboe Embedded software and hardware consulting services http://consulting.zylin.com _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development