Fix ufqfpn48.5c to generate matching footprint
authorKeith Packard <keithp@keithp.com>
Sun, 11 Aug 2013 21:02:57 +0000 (23:02 +0200)
committerKeith Packard <keithp@keithp.com>
Sun, 11 Aug 2013 21:02:57 +0000 (23:02 +0200)
The .5c file was generating a different footprint, presumably due to
changes in the footprint.5c file

Signed-off-by: Keith Packard <keithp@keithp.com>
packages/Makefile
packages/footprint.5c
packages/ufqfpn48.5c
packages/ufqfpn48.fp [deleted file]

index 7e01bca79e0f9997b93a9758edd7a0e0b0369881..2c9a83ac7d1d30f0f6cc2f8c195659df47c648b8 100644 (file)
@@ -42,6 +42,7 @@ FOOTPRINTS= \
        ADXL78.fp \
        MOT1317.fp \
        mlp8-4x3.fp \
+       ufqfpn48.fp \
        saw.fp
 
 .5c.fp:
index 0cc39b3ffa04ce9d48036d19ef855c4338887428..0a080f3fa78bc98f9b0e7daaa9b0c8c42ef5938c 100644 (file)
@@ -115,7 +115,7 @@ namespace Footprint {
                        y2 = center_y + (height - width) / 2;
                }
 
-               real mask = thickness + process_clearance / 2;
+               real mask = thickness + clearance / 2;
 
                printf ("    Pad[");
                printf (" %6d %6d %6d %6d",
index ac1f0497b841697bbbd8d2a0cb5433d52ee11f7a..6f352b57f16293196e9dc38e501d5997887af8d8 100644 (file)
@@ -115,29 +115,29 @@ bool via_block(int x, int y) {
 }
 
 real via_hole = 15/1000 * 25.4;                /* 15 mil drill */
-real via_copper = 3.5/1000 * 25.4;     /* 7 mil anulus */
+real via_copper = 7/1000 * 25.4;       /* 7 mil anulus */
 
 for (int pad_y = 0; pad_y < pad_blocks; pad_y++) {
        for (int pad_x = 0; pad_x < pad_blocks; pad_x++)
                if (via_block(pad_x, pad_y)) {
                        pin_mm_clear_mask(block_x(pad_x), block_y(pad_y),
-                                         via_hole, via_copper * 2, pad_clearance, 0,
+                                         via_hole, via_hole + 2 * via_copper, pad_clearance, 0,
                                          "GND", "GND");
                        pad_mm_clear_mask_options(block_x(pad_x), block_y(pad_y),
                                                  block_width, block_height,
                                                  pad_clearance, 0,
-                                                 "GND", "GND","nopaste");
+                                                 "GND", "GND","square,nopaste");
                } else {
                        /* full square of metal */
                        pad_mm_clear_options(block_x(pad_x), block_y(pad_y),
                                             block_width, block_height,
                                             0,
-                                            "GND", "GND","nopaste");
+                                            "GND", "GND","square,nopaste");
                        /* 1/4 full of solder paste */
                        pad_mm_clear_options(block_x(pad_x), block_y(pad_y),
                                             block_width/2, block_height/2,
                                             0,
-                                            "GND", "GND","");
+                                            "GND", "GND","square");
                }
 }
 
diff --git a/packages/ufqfpn48.fp b/packages/ufqfpn48.fp
deleted file mode 100644 (file)
index f88b704..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-# author: Keith Packard
-# email: keithp@keithp.com
-# dist-license: GPL 2
-# use-license: unlimited
-Element ["" "ufqfpn-48" "" "" 0 0 0 0 0 100 ""]
-(
-    ElementLine[ -13780 -13780 -12205 -13780 1000]
-    ElementLine[ -13780 -13780 -13780 -12205 1000]
-    ElementLine[  13780 -13780  12205 -13780 1000]
-    ElementLine[  13780 -13780  13780 -12205 1000]
-    ElementLine[ -13780  13780 -12205  13780 1000]
-    ElementLine[ -13780  13780 -13780  12205 1000]
-    ElementLine[  13780  13780  12205  13780 1000]
-    ElementLine[  13780  13780  13780  12205 1000]
-    ElementLine[ -12598 -12598 -12598 -12598 1000]
-    Pad[ -13780 -10827 -12795 -10827   1181   1000   1681 "1" "1" "square"]
-    Pad[ -10827  12795 -10827  13780   1181   1000   1681 "13" "13" "square"]
-    Pad[  12795  10827  13780  10827   1181   1000   1681 "25" "25" "square"]
-    Pad[  10827 -13780  10827 -12795   1181   1000   1681 "37" "37" "square"]
-    Pad[ -13780  -8858 -12795  -8858   1181   1000   1681 "2" "2" "square"]
-    Pad[  -8858  12795  -8858  13780   1181   1000   1681 "14" "14" "square"]
-    Pad[  12795   8858  13780   8858   1181   1000   1681 "26" "26" "square"]
-    Pad[   8858 -13780   8858 -12795   1181   1000   1681 "38" "38" "square"]
-    Pad[ -13780  -6890 -12795  -6890   1181   1000   1681 "3" "3" "square"]
-    Pad[  -6890  12795  -6890  13780   1181   1000   1681 "15" "15" "square"]
-    Pad[  12795   6890  13780   6890   1181   1000   1681 "27" "27" "square"]
-    Pad[   6890 -13780   6890 -12795   1181   1000   1681 "39" "39" "square"]
-    Pad[ -13780  -4921 -12795  -4921   1181   1000   1681 "4" "4" "square"]
-    Pad[  -4921  12795  -4921  13780   1181   1000   1681 "16" "16" "square"]
-    Pad[  12795   4921  13780   4921   1181   1000   1681 "28" "28" "square"]
-    Pad[   4921 -13780   4921 -12795   1181   1000   1681 "40" "40" "square"]
-    Pad[ -13780  -2953 -12795  -2953   1181   1000   1681 "5" "5" "square"]
-    Pad[  -2953  12795  -2953  13780   1181   1000   1681 "17" "17" "square"]
-    Pad[  12795   2953  13780   2953   1181   1000   1681 "29" "29" "square"]
-    Pad[   2953 -13780   2953 -12795   1181   1000   1681 "41" "41" "square"]
-    Pad[ -13780   -984 -12795   -984   1181   1000   1681 "6" "6" "square"]
-    Pad[   -984  12795   -984  13780   1181   1000   1681 "18" "18" "square"]
-    Pad[  12795    984  13780    984   1181   1000   1681 "30" "30" "square"]
-    Pad[    984 -13780    984 -12795   1181   1000   1681 "42" "42" "square"]
-    Pad[ -13780    984 -12795    984   1181   1000   1681 "7" "7" "square"]
-    Pad[    984  12795    984  13780   1181   1000   1681 "19" "19" "square"]
-    Pad[  12795   -984  13780   -984   1181   1000   1681 "31" "31" "square"]
-    Pad[   -984 -13780   -984 -12795   1181   1000   1681 "43" "43" "square"]
-    Pad[ -13780   2953 -12795   2953   1181   1000   1681 "8" "8" "square"]
-    Pad[   2953  12795   2953  13780   1181   1000   1681 "20" "20" "square"]
-    Pad[  12795  -2953  13780  -2953   1181   1000   1681 "32" "32" "square"]
-    Pad[  -2953 -13780  -2953 -12795   1181   1000   1681 "44" "44" "square"]
-    Pad[ -13780   4921 -12795   4921   1181   1000   1681 "9" "9" "square"]
-    Pad[   4921  12795   4921  13780   1181   1000   1681 "21" "21" "square"]
-    Pad[  12795  -4921  13780  -4921   1181   1000   1681 "33" "33" "square"]
-    Pad[  -4921 -13780  -4921 -12795   1181   1000   1681 "45" "45" "square"]
-    Pad[ -13780   6890 -12795   6890   1181   1000   1681 "10" "10" "square"]
-    Pad[   6890  12795   6890  13780   1181   1000   1681 "22" "22" "square"]
-    Pad[  12795  -6890  13780  -6890   1181   1000   1681 "34" "34" "square"]
-    Pad[  -6890 -13780  -6890 -12795   1181   1000   1681 "46" "46" "square"]
-    Pad[ -13780   8858 -12795   8858   1181   1000   1681 "11" "11" "square"]
-    Pad[   8858  12795   8858  13780   1181   1000   1681 "23" "23" "square"]
-    Pad[  12795  -8858  13780  -8858   1181   1000   1681 "35" "35" "square"]
-    Pad[  -8858 -13780  -8858 -12795   1181   1000   1681 "47" "47" "square"]
-    Pad[ -13780  10827 -12795  10827   1181   1000   1681 "12" "12" "square"]
-    Pad[  10827  12795  10827  13780   1181   1000   1681 "24" "24" "square"]
-    Pad[  12795 -10827  13780 -10827   1181   1000   1681 "36" "36" "square"]
-    Pad[ -10827 -13780 -10827 -12795   1181   1000   1681 "48" "48" "square"]
-    Pin[  -7349  -7349   2900   1000      0   1500 "GND" "GND" ""]
-    Pad[  -7349  -7349  -7349  -7349   7349   1000      0 "GND" "GND" "square,nopaste"]
-    Pad[      0  -7349      0  -7349   7349      0   7349 "GND" "GND" "square,nopaste"]
-    Pad[      0  -7349      0  -7349   3675      0   3675 "GND" "GND" "square"]
-    Pin[   7349  -7349   2900   1000      0   1500 "GND" "GND" ""]
-    Pad[   7349  -7349   7349  -7349   7349   1000      0 "GND" "GND" "square,nopaste"]
-    Pad[  -7349      0  -7349      0   7349      0   7349 "GND" "GND" "square,nopaste"]
-    Pad[  -7349      0  -7349      0   3675      0   3675 "GND" "GND" "square"]
-    Pad[      0      0      0      0   7349      0   7349 "GND" "GND" "square,nopaste"]
-    Pad[      0      0      0      0   3675      0   3675 "GND" "GND" "square"]
-    Pad[   7349      0   7349      0   7349      0   7349 "GND" "GND" "square,nopaste"]
-    Pad[   7349      0   7349      0   3675      0   3675 "GND" "GND" "square"]
-    Pin[  -7349   7349   2900   1000      0   1500 "GND" "GND" ""]
-    Pad[  -7349   7349  -7349   7349   7349   1000      0 "GND" "GND" "square,nopaste"]
-    Pad[      0   7349      0   7349   7349      0   7349 "GND" "GND" "square,nopaste"]
-    Pad[      0   7349      0   7349   3675      0   3675 "GND" "GND" "square"]
-    Pin[   7349   7349   2900   1000      0   1500 "GND" "GND" ""]
-    Pad[   7349   7349   7349   7349   7349   1000      0 "GND" "GND" "square,nopaste"]
-)