Date:2010-09-01 02:43:22 (4 years 29 days ago)
Author:Werner Almesberger
Commit:8827771fbf816e7a834f689adb193d6f9722c5ce
Message:Inaugural commit: uSD card as a footprint, inspired by Rikard Lindstrom's work.

Files: modules/Makefile (1 diff)
modules/usd-card.fpd (1 diff)

Change Details

modules/Makefile
1MODULES=usd-card
2
3.SUFFIXES: .fpd .mod
4.PHONY: all clean
5
6all: $(MODULES:%=%.mod)
7
8clean:
9        rm -f *~*.fpd
10
11spotless: clean
12        rm -f $(MODULES:%=%.mod)
13
14.fpd.mod:
15        fped -k $< $@
modules/usd-card.fpd
1/* MACHINE-GENERATED ! */
2
3frame push {
4    set depth = 1.3mm
5
6    __0: vec @(-depth, 0mm)
7    __1: vec .(0mm, W)
8    line __0 . w
9}
10
11frame pads {
12    table
13        { e, x1, x2, y }
14        { 1.1mm, 3mm, 3.3mm, 0.9mm }
15
16    table
17        { n, x }
18        { 1, x1 }
19        { 2, x1 }
20        { 3, x1 }
21        { 4, x2 }
22        { 5, x1 }
23        { 6, x2 }
24        { 7, x1 }
25        { 8, x1 }
26
27    __0: vec @(0mm, -(n-1)*e)
28    __1: vec .(x, 0mm)
29    __2: vec .(0mm, -y)
30    pad "$n" __0 .
31}
32
33frame outline {
34    set w = 3mil
35
36    __0: vec @(0mm, W)
37    line @ . w
38    __1: vec __0(D1, 0mm)
39    line __0 . w
40    __2: vec .(D2, -D2)
41    line __1 . w
42    __3: vec .(D3, 0mm)
43    line __2 . w
44    __4: vec .(0mm, D2)
45    line __3 . w
46    __5: vec .(D4, 0mm)
47    line __4 . w
48    __6: vec .(D5, -D5)
49    line __5 . w
50    __7: vec @(L, 0mm)
51    line @ . w
52    __8: vec __7(0mm, W-D5)
53    line __6 . w
54    line __7 . w
55    frame push @
56}
57
58package "uSD-Card"
59unit mm
60
61table
62    { W, L }
63    { 11mm, 15mm }
64
65table
66    { D1, D2, D3, D4, D5 }
67    { 5.1mm, 0.8mm, 1.2mm, 1.4mm, 1.4mm }
68
69__0: vec @(0mm, -W/2)
70frame outline .
71__1: vec .(11mm, W-D5-0.5mm)
72frame pads .
73measy push.__0 >> push.__1 1mm
74measx outline.__0 >> outline.__1 1mm
75measx outline.__1 >> outline.__2 1mm
76measx outline.__2 >> outline.__3 D2+1mm
77measx outline.__4 >> outline.__5 1mm
78measx outline.__5 >> outline.__6 1mm
79measx outline.__6 >> outline.__8 D5+1mm
80measx push.__0 >> __0 -1mm
81measy outline.__8 << pads.__1 -2mm
82measy pads.__2 -> pads.__1 -2mm
83measy outline.__7 -> pads.__2 -1mm
84measy pads.__0 -> pads.__0 1mm
85measx pads.__0 -> pads.__2 -2.3mm
86measx __1 >> pads.__1 1mm
87measx __0 >> __1 5.5mm
88measy pads.__2 >> pads.__1 -3mm

Archive Download the corresponding diff file

Branches:
master



interactive