Hmmm Portugal evaded Spain domination in 1640 so just call it Portugal
Also by the end of that war appeared the threaty of vestaflia Which as we know created the concept of nation state as we know it . So why bring up this war if by the end of all it all is to bring about companies independence and self determination