atopile / atopile

Design circuit boards with code! ✨ Get software-like design reuse 🚀, validation, version control and collaboration in hardware; starting with electronics ⚡️
https://atopile.io
MIT License
1.97k stars 112 forks source link

UART crossover connect #559

Open iopapamanoglou opened 1 week ago

iopapamanoglou commented 1 week ago

Feature Request

UART & others (eg SPI) are a bit confusing to connect. As client - server connect would need a crossover while just passing it through hierarchical not. It might be good to prevent mistakes here. We can disable ‘connect’ and replace with generic ‘connect_parallel’ & _series. Or make it specific with ‘connect_passthrough’ & ‘connect_crossover’. The crossover/series one would add a new ‘LinkCrossover’.

What are your thoughts on this @napowderly?

Code of Conduct

napowderly commented 4 days ago

I like the explicit 'LinkCrossover'

Another option is to add traits to the module interfaces of server/client and, at minimum, throw a warning if we suspect they have got it backwards, potentially allowing us to automatically flip only once.