From dc3baf5c152aef1395475e638e4517063924a0c1 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Sun, 14 Aug 2011 04:02:18 -0300 Subject: [PATCH] Moved usb-a-pcb.fpd from f32xbase/c2usb to kicad-libs (incoming) --- AUTHORS | 3 ++- modules/INFO | 3 +++ modules/Makefile | 3 ++- modules/usb-a-pcb.fpd | 58 +++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 65 insertions(+), 2 deletions(-) create mode 100644 modules/usb-a-pcb.fpd diff --git a/AUTHORS b/AUTHORS index 7c0b062..2f9b84d 100644 --- a/AUTHORS +++ b/AUTHORS @@ -27,4 +27,5 @@ Werner Almesberger modules/fiducial.fpd modules/qfn.fpd modules/qfp.fpd - moduled/usb_a_plug_smt.fpd + modules/usb-a-pcb.fpd + modules/usb_a_plug_smt.fpd diff --git a/modules/INFO b/modules/INFO index 129c3ca..16a1133 100644 --- a/modules/INFO +++ b/modules/INFO @@ -86,3 +86,6 @@ F: mini_usb_b # remains valid.) # F: usb_a_plug_smt + +# USB 2.0 from usb_20_040908, page 99 +F: usb-a-pcb diff --git a/modules/Makefile b/modules/Makefile index ba1f9c6..fb564be 100644 --- a/modules/Makefile +++ b/modules/Makefile @@ -1,4 +1,5 @@ -MODULES=8_10-card fiducial mini-usb pads qfn qfp stdpass usb_a_plug_smt +MODULES=8_10-card fiducial mini-usb pads qfn qfp stdpass \ + usb-a-pcb usb_a_plug_smt .SUFFIXES: .fpd .mod .PHONY: all clean diff --git a/modules/usb-a-pcb.fpd b/modules/usb-a-pcb.fpd new file mode 100644 index 0000000..5fd1b03 --- /dev/null +++ b/modules/usb-a-pcb.fpd @@ -0,0 +1,58 @@ +/* MACHINE-GENERATED ! */ + +frame contacts { + table + { n, x, y, h } + { 1, c1, yl, hl } + { 2, c2, ys, hs } + { 3, -c2, ys, hs } + { 4, -c1, yl, hl } + + table + { ys, yl } + { (b+bs)/2, (b+bl)/2 } + + table + { hs, hl } + { b-bs, b-bl } + + __0: vec @(x, y) + __1: vec .(s/2, h/2) + __2: vec __0(-s/2, -h/2) + pad "$n" . __1 +} + +frame outline { + set width = 5mil + + __0: vec @(w/2, d/2) + __1: vec @(-w/2, -d/2) + __2: vec @(w/2, -d/2) + line __1 . width + line . __0 width + __3: vec @(-w/2, d/2) + line __1 . width +} + +package "USB-A-PCB" +unit mm + +table + { w, d } + { 12mm, 11.75mm } + +table + { s, c1, c2, b, bl, bs } + { 1mm, 3.5mm, 1mm, 8.65mm, b-7.41mm, b-6.41mm } + +__0: vec @(0mm, -d/2) +frame contacts . +frame outline @ +measy outline.__1 >> outline.__3 1mm +measx outline.__3 >> outline.__0 1mm +measx __0 -> contacts.__0 -1mm +measx __0 >> contacts.__0 -2mm +measy outline.__2 -> contacts.__2 -1mm +measy outline.__2 >> contacts.__2 -2mm +measx contacts.__2 -> contacts.__1 -1mm +measy outline.__2 >> contacts.__1 -3mm