@@ -191,11 +191,6 @@ def hex_escape(self):
191191 p .w ("i -" )
192192 elif p .name == "VCC" :
193193 p .w ("i +" )
194- else :
195- # p.copy().w("o f 0.5").ctext(p.name, scale = 0.4)
196- p .w ("o f .1" )
197- wire_ongrid (p )
198- p .wire ()
199194
200195
201196class SOT23_LDO (sot .SOT23 ):
@@ -316,10 +311,6 @@ def hex_escape(self):
316311 p .copy ().w ("o -" )
317312 elif nm == "VCC" :
318313 p .w ("o +" )
319- elif nm == "TX" :
320- wire_ongrid (p .w ("i" ))
321- else :
322- wire_ongrid (p .w ("o" ))
323314
324315class SMD_3225_4P (cu .Part ):
325316 family = "Y"
@@ -712,14 +703,14 @@ def hcap(p, val='100nF', width=None):
712703 if name in SERIAL_ROUTING :
713704 source , target = serial_by_gpio [name ]
714705 if name == "GPIO12" :
715- brd .hex_route (target , source )
706+ brd .hex_route (brd . pad_endpoint ( target ) , source )
716707 else :
717- brd .hex_route (source , target )
708+ brd .hex_route (source , brd . pad_endpoint ( target ) )
718709 if FLASH_ROUTING :
719710 print ("Starting flash route" )
720711 for source , target in flash_routes :
721712 assert source .layer == target .layer
722- brd .hex_route (source , target )
713+ brd .hex_route (target , brd . pad_endpoint ( source ) )
723714 if CLOCK_ROUTING :
724715 print ("Starting clock route" )
725716 source , target = clock_route
@@ -769,7 +760,6 @@ def note(p, nm):
769760 note (DC , "DC" )
770761
771762 u1 .s ("GPIO8" ).hex ("3f / f" ).wire ()
772- j3 .s ("TX" ).hex ("3f r f l 4f / f" ).wire ()
773763
774764 t0 = time .monotonic ()
775765 brd .hex_setup ()
@@ -784,14 +774,14 @@ def note(p, nm):
784774 brd .hex_route (brd .pad_endpoint (c9 .pads [1 ]), u1 .s ("VREG_VOUT" ))
785775
786776 if 1 :
787- brd .hex_route (u2 .s ("CS " ), u1 . s ("QSPI_SS_N" ))
788- brd .hex_route (u2 .s ("IO1 " ), u1 . s ("QSPI_SD1" ))
789- brd .hex_route (u2 .s ("IO2 " ), u1 . s ("QSPI_SD2" ))
790- brd .hex_route (u2 .s ("IO0 " ), u1 . s ("QSPI_SD0" ))
791- brd .hex_route (u2 .s ("CLK " ), u1 . s ("QSPI_SCLK" ))
792- brd .hex_route (u2 .s ("IO3 " ), u1 . s ("QSPI_SD3" ))
777+ brd .hex_route (u1 .s ("QSPI_SS_N " ), brd . pad_endpoint ( u2 . s ("CS" ) ))
778+ brd .hex_route (u1 .s ("QSPI_SD1 " ), brd . pad_endpoint ( u2 . s ("IO1" ) ))
779+ brd .hex_route (u1 .s ("QSPI_SD2 " ), brd . pad_endpoint ( u2 . s ("IO2" ) ))
780+ brd .hex_route (u1 .s ("QSPI_SD0 " ), brd . pad_endpoint ( u2 . s ("IO0" ) ))
781+ brd .hex_route (u1 .s ("QSPI_SCLK " ), brd . pad_endpoint ( u2 . s ("CLK" ) ))
782+ brd .hex_route (u1 .s ("QSPI_SD3 " ), brd . pad_endpoint ( u2 . s ("IO3" ) ))
793783 if 0 :
794- brd .hex_route (j2 .pads [1 ], u2 .s ("CS" ))
784+ brd .hex_route (j2 .pads [1 ], brd . pad_endpoint ( u2 .s ("CS" ) ))
795785
796786 brd .hex_route (j1 .s ("A7" ), brd .pad_endpoint (r2 .pads [0 ]))
797787 brd .hex_route (j1 .s ("B6" ), brd .pad_endpoint (r3 .pads [0 ]))
@@ -812,10 +802,10 @@ def note(p, nm):
812802 note (u1 .s ("GPIO8" ), "TX" )
813803
814804 if 1 :
815- brd .hex_route (u1 .s ("GPIO8" ), j3 .s ("TX" ))
816- brd .hex_route (u1 .s ("GPIO9" ), j3 .s ("RX" ))
817- brd .hex_route (u1 .s ("GPIO13" ), j3 .s ("RTS" ))
818- brd .hex_route (u1 . s ("GPIO12" ), j3 .s ("DTR " ))
805+ brd .hex_route (u1 .s ("GPIO8" ), brd . pad_endpoint ( j3 .s ("TX" ) ))
806+ brd .hex_route (u1 .s ("GPIO9" ), brd . pad_endpoint ( j3 .s ("RX" ) ))
807+ brd .hex_route (u1 .s ("GPIO13" ), brd . pad_endpoint ( j3 .s ("RTS" ) ))
808+ brd .hex_route (brd . pad_endpoint ( j3 . s ("DTR" )), u1 .s ("GPIO12 " ))
819809
820810 brd .hex_route (u1 .s ("XIN" ), brd .pad_endpoint (y1 .s ("CLK" )))
821811
0 commit comments