Fix process-specific values in nickle-generated footprints
[hw/altusmetrum] / packages / s-pwson-n8.5c
index a0c8741c3267cb18bcf2d327ba55ffa147071fd0..c31cdb6d3b36aa16d19ae2cbb56a896e60c997cf 100644 (file)
@@ -18,8 +18,6 @@
 load "footprint.5c"
 import Footprint;
 
-Footprint::process_clearance = 0.07;
-
 real pad_expose = 0.1;
 real pad_width = 0.28;
 real pad_height = 0.50;
@@ -43,13 +41,10 @@ real num_pad = 4;   /* per side */
 element_start("s-pwson-n8");
 
 /* full center pad */
-pad_mm_clear_mask_options(0, 0, center_width, center_height, 0, center_height + mask, "9", "9", "square,nopaste");
+pad_mm_partial(0, 0, center_width, center_height, 0.63, "9");
 
-/* 63% paste coverage */
-real paste_coverage = 0.63;
-real paste_coverage_scale = sqrt(paste_coverage);
-pad_mm_clear_mask_options(0, 0, center_width * paste_coverage_scale,
-                         center_height * paste_coverage_scale, 0, center_height + mask, "9", "9", "square");
+via_mm(-0.9, 0, process_drill, process_ring, "GND");
+via_mm( 0.9, 0, process_drill, process_ring, "GND");
 
 real pad_y_off = pad_y_spacing / 2;
 
@@ -60,24 +55,21 @@ real pad_off(int n) {
 for (int pad = 0; pad < num_pad; pad++) {
        /* bottom side (1-4) */
 
-       pad_mm_clear_mask_options(pad_off(pad),
-                                 pad_y_off,
-                                 pad_width,
-                                 pad_height,
-                                 clearance * 2, pad_width + mask,
-                                 sprintf("%d", pad + 1),
-                                 sprintf("%d", pad + 1), "square");
+       pad_mm(pad_off(pad),
+              pad_y_off,
+              pad_width,
+              pad_height,
+              sprintf("%d", pad + 1),
+              sprintf("%d", pad + 1));
 
        /* top side (8-5) */
 
-       pad_mm_clear_mask_options(pad_off(pad),
-                                 -pad_y_off,
-                                 pad_width,
-                                 pad_height,
-                                 clearance * 2, pad_width + mask,
-                                 sprintf("%d", 8 - pad),
-                                 sprintf("%d", 8 - pad), "square");
-
+       pad_mm(pad_off(pad),
+              -pad_y_off,
+              pad_width,
+              pad_height,
+              sprintf("%d", 8 - pad),
+              sprintf("%d", 8 - pad));
 }
 
 rect(-package_width/2, -package_height/2, package_width, package_height);