Send commitlog mailing list submissions to
        commitlog@lists.openmoko.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.openmoko.org/mailman/listinfo/commitlog
or, via email, send a message with subject or body 'help' to
        commitlog-requ...@lists.openmoko.org

You can reach the person managing the list at
        commitlog-ow...@lists.openmoko.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of commitlog digest..."
Today's Topics:

   1. r5553 - trunk/gta02-core/docs/ecn (da...@docs.openmoko.org)
   2. r5554 - trunk/eda/fped (wer...@docs.openmoko.org)
   3. r5555 - in trunk/gta02-core: . modules (wer...@docs.openmoko.org)
--- Begin Message ---
Author: daveb
Date: 2009-08-27 11:30:59 +0200 (Thu, 27 Aug 2009)
New Revision: 5553

Modified:
   trunk/gta02-core/docs/ecn/ecn0016.txt
Log:
review accel removal changes


Modified: trunk/gta02-core/docs/ecn/ecn0016.txt
===================================================================
--- trunk/gta02-core/docs/ecn/ecn0016.txt       2009-08-27 09:01:24 UTC (rev 
5552)
+++ trunk/gta02-core/docs/ecn/ecn0016.txt       2009-08-27 09:30:59 UTC (rev 
5553)
@@ -27,3 +27,4 @@
 
 
 Commit: SVN 5546 (nACCEL_CS removal)
+Review: Dave Ball <openm...@daveball.org.uk>, rev5552 




--- End Message ---
--- Begin Message ---
Author: werner
Date: 2009-08-27 11:45:57 +0200 (Thu, 27 Aug 2009)
New Revision: 5554

Modified:
   trunk/eda/fped/README
   trunk/eda/fped/dump.c
   trunk/eda/fped/fpd.y
   trunk/eda/fped/kicad.c
   trunk/eda/fped/obj.h
   trunk/eda/fped/postscript.c
Log:
- added pad type (for non-solder and solder-paste-only pads) to FPD language
  (GUI is still missing)



Modified: trunk/eda/fped/README
===================================================================
--- trunk/eda/fped/README       2009-08-27 09:30:59 UTC (rev 5553)
+++ trunk/eda/fped/README       2009-08-27 09:45:57 UTC (rev 5554)
@@ -208,7 +208,7 @@
 
 Pads are similar to rectangles, but they also have a name.
 
-pad "<name>" <point-a> <point-b>
+pad "<name>" <point-a> <point-b> [<type>]
 
 Variables can be expanded in a pad's name by prefixing their name with
 a dollar sign. The ${name} syntax is also available.
@@ -218,7 +218,17 @@
 vec @(1mm, 1mm)
 pad "1" @ .
 
+Pads normally affect the surface copper layer, the solder mask layer,
+and the solder paste layer. This can be modified with the optional
+type argument:
 
+Type           Layers
+---------      -------------------------------------
+(default)      copper, solder mask, and solder paste
+bare           copper and solder mask
+paste          solder paste
+
+
 Rounded pads
 - - - - - -
 
@@ -226,7 +236,7 @@
 semi-circle at each of the smaller sides of the enclosing rectangle.
 If enclosed in a square, rounded pads form a circle.
 
-rpad "<name>" <point-a> <point-b>
+rpad "<name>" <point-a> <point-b> [<type>]
 
 
 Measurements

Modified: trunk/eda/fped/dump.c
===================================================================
--- trunk/eda/fped/dump.c       2009-08-27 09:30:59 UTC (rev 5553)
+++ trunk/eda/fped/dump.c       2009-08-27 09:45:57 UTC (rev 5554)
@@ -318,8 +318,22 @@
                break;
        case ot_pad:
                s1 = obj_base_name(obj->u.pad.other, prev);
-               s = stralloc_printf("%spad \"%s\" %s %s",
-                   obj->u.pad.rounded ? "r" : "", obj->u.pad.name, base, s1);
+               switch (obj->u.pad.type) {
+               case pt_normal:
+                       s2 = "";
+                       break;
+               case pt_bare:
+                       s2 = " bare";
+                       break;
+               case pt_paste:
+                       s2 = " paste";
+                       break;
+               default:
+                       abort();
+               }
+               s = stralloc_printf("%spad \"%s\" %s %s%s",
+                   obj->u.pad.rounded ? "r" : "",
+                   obj->u.pad.name, base, s1, s2);
                free(s1);
                break;
        case ot_arc:

Modified: trunk/eda/fped/fpd.y
===================================================================
--- trunk/eda/fped/fpd.y        2009-08-27 09:30:59 UTC (rev 5553)
+++ trunk/eda/fped/fpd.y        2009-08-27 09:45:57 UTC (rev 5554)
@@ -13,6 +13,7 @@
 
 
 #include <stdlib.h>
+#include <string.h>
 
 #include "util.h"
 #include "error.h"
@@ -146,6 +147,7 @@
        struct value *value;
        struct vec *vec;
        struct obj *obj;
+       enum pad_type pt;
        enum meas_type mt;
        struct {
                int inverted;
@@ -172,6 +174,7 @@
 %type  <obj>   obj meas
 %type  <expr>  expr opt_expr add_expr mult_expr unary_expr primary_expr
 %type  <str>   opt_string
+%type  <pt>    pad_type
 %type  <mt>    meas_type
 %type  <mo>    meas_op
 
@@ -441,21 +444,23 @@
        ;
 
 obj:
-       TOK_PAD STRING base base
+       TOK_PAD STRING base base pad_type
                {
                        $$ = new_obj(ot_pad);
                        $$->base = $3;
                        $$->u.pad.name = $2;
                        $$->u.pad.other = $4;
                        $$->u.pad.rounded = 0;
+                       $$->u.pad.type = $5;
                }
-       | TOK_RPAD STRING base base
+       | TOK_RPAD STRING base base pad_type
                {
                        $$ = new_obj(ot_pad);
                        $$->base = $3;
                        $$->u.pad.name = $2;
                        $$->u.pad.other = $4;
                        $$->u.pad.rounded = 1;
+                       $$->u.pad.type = $5;
                }
        | TOK_RECT base base opt_expr
                {
@@ -506,6 +511,18 @@
                }
        ;
 
+pad_type:
+       ID
+               {
+                       if (!strcmp($1, "bare"))
+                               $$ = pt_bare;
+                       else if (!strcmp($1, "paste"))
+                               $$ = pt_paste;
+                       else
+                               $$ = pt_normal;
+               }
+       ;
+
 measurements:
        | measurements meas
                {

Modified: trunk/eda/fped/kicad.c
===================================================================
--- trunk/eda/fped/kicad.c      2009-08-27 09:30:59 UTC (rev 5553)
+++ trunk/eda/fped/kicad.c      2009-08-27 09:45:57 UTC (rev 5554)
@@ -56,6 +56,7 @@
 {
        struct coord min, max;
        unit_type tmp;
+       int layers;
 
        min.x = units_to_kicad(inst->base.x);
        min.y = units_to_kicad(inst->base.y);
@@ -85,10 +86,21 @@
        /*
         * Attributes: pad type, N, layer mask
         */
-       fprintf(file, "At SMD N %8.8X\n",
-           (1 << layer_top) |
-           (1 << layer_paste_top) |
-           (1 << layer_mask_top));
+       layers = 0;
+       switch (inst->obj->u.pad.type) {
+       case pt_normal:
+               layers = 1 << layer_paste_top;
+               /* fall through */
+       case pt_bare:
+               layers |= (1 << layer_top) | (1 << layer_mask_top);
+               break;
+       case pt_paste:
+               layers = 1 << layer_paste_top;
+               break;
+       default:
+               abort();
+       }
+       fprintf(file, "At SMD N %8.8X\n", layers);
 
        /*
         * Position: Xpos, Ypos

Modified: trunk/eda/fped/obj.h
===================================================================
--- trunk/eda/fped/obj.h        2009-08-27 09:30:59 UTC (rev 5553)
+++ trunk/eda/fped/obj.h        2009-08-27 09:45:57 UTC (rev 5554)
@@ -139,6 +139,12 @@
        ot_meas,
 };
 
+enum pad_type {
+       pt_normal,      /* copper and solder mask */
+       pt_bare,        /* only copper (and finish) */
+       pt_paste,       /* only solder paste */
+};
+
 struct frame_ref {
        struct frame *ref;
        int lineno;
@@ -153,6 +159,7 @@
        char *name;
        struct vec *other; /* NULL if frame origin */
        int rounded;
+       enum pad_type type;
 };
 
 struct arc {

Modified: trunk/eda/fped/postscript.c
===================================================================
--- trunk/eda/fped/postscript.c 2009-08-27 09:30:59 UTC (rev 5553)
+++ trunk/eda/fped/postscript.c 2009-08-27 09:45:57 UTC (rev 5554)
@@ -172,7 +172,21 @@
            inst->u.pad.name, PS_FONT_OUTLINE);
 }
 
+static const char *hatch(enum pad_type type)
+{
+       switch (type) {
+       case pt_normal:
+               return "crosspath";
+       case pt_bare:
+               return "hatchpath";
+       case pt_paste:
+               return "backhatchpath";
+       default:
+               abort();
+       }
+}
 
+
 static void ps_pad(FILE *file, const struct inst *inst, int show_name)
 {
        struct coord a = inst->base;
@@ -183,7 +197,8 @@
        fprintf(file, "  %d %d lineto\n", b.x, a.y);
        fprintf(file, "  %d %d lineto\n", b.x, b.y);
        fprintf(file, "  %d %d lineto\n", a.x, b.y);
-       fprintf(file, "  closepath gsave crosspath grestore stroke\n");
+       fprintf(file, "  closepath gsave %s grestore stroke\n",
+           hatch(inst->obj->u.pad.type));
 
        if (show_name)
                ps_pad_name(file, inst);
@@ -213,7 +228,8 @@
                fprintf(file, "  %d %d lineto\n", a.x+r, b.y);
                fprintf(file, "  %d %d %d 90 270 arc\n", a.x+r, a.y+r, r);
        }
-       fprintf(file, "  closepath gsave hatchpath grestore stroke\n");
+       fprintf(file, "  closepath gsave %s grestore stroke\n",
+           hatch(inst->obj->u.pad.type));
 
        if (show_name)
                ps_pad_name(file, inst);




--- End Message ---
--- Begin Message ---
Author: werner
Date: 2009-08-27 11:46:44 +0200 (Thu, 27 Aug 2009)
New Revision: 5555

Added:
   trunk/gta02-core/modules/tst.fpd
Modified:
   trunk/gta02-core/AUTHORS
   trunk/gta02-core/modules/INFO
   trunk/gta02-core/modules/STATUS
   trunk/gta02-core/modules/mkloe
Log:
Added "tst" footprint (test point, 1.2 mm diameter)



Modified: trunk/gta02-core/AUTHORS
===================================================================
--- trunk/gta02-core/AUTHORS    2009-08-27 09:45:57 UTC (rev 5554)
+++ trunk/gta02-core/AUTHORS    2009-08-27 09:46:44 UTC (rev 5555)
@@ -87,4 +87,5 @@
   modules/bga96-8x12-0mm8.fpd
   modules/ge865.fpd
   modules/stdpass.fpd
+  modules/tst.fpd
   modules/wm3236aq.fpd

Modified: trunk/gta02-core/modules/INFO
===================================================================
--- trunk/gta02-core/modules/INFO       2009-08-27 09:45:57 UTC (rev 5554)
+++ trunk/gta02-core/modules/INFO       2009-08-27 09:46:44 UTC (rev 5555)
@@ -33,6 +33,9 @@
 # To do:
 # - define keep out area
 
+# Test point (1.2 mm diameter)
+F: tst
+
 # WM3236AQ, very non-standard 48QFN
 F: wm3236aq
 # WM3236AQ_R0E_datasheet_Preliminary_0630_2007.pdf (no-public)

Modified: trunk/gta02-core/modules/STATUS
===================================================================
--- trunk/gta02-core/modules/STATUS     2009-08-27 09:45:57 UTC (rev 5554)
+++ trunk/gta02-core/modules/STATUS     2009-08-27 09:46:44 UTC (rev 5555)
@@ -4,4 +4,5 @@
 bga96-8x12-0mm8                        Werner
 ge865                          Werner
 stdpass                                Werner  EXPERIMENTAL - DO NOT USE YET
+tst                            Werner
 wm3236aq                       Werner  EXPERIMENTAL - DO NOT USE YET

Modified: trunk/gta02-core/modules/mkloe
===================================================================
--- trunk/gta02-core/modules/mkloe      2009-08-27 09:45:57 UTC (rev 5554)
+++ trunk/gta02-core/modules/mkloe      2009-08-27 09:46:44 UTC (rev 5555)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Make a Library of Everything
 
-MODS="332fbga-p05 bga96-8x12-0mm8 ge865 stdpass wm3236aq"
+MODS="332fbga-p05 bga96-8x12-0mm8 ge865 stdpass tst wm3236aq"
 
 LIB=gta02-core.mod
 

Added: trunk/gta02-core/modules/tst.fpd
===================================================================
--- trunk/gta02-core/modules/tst.fpd                            (rev 0)
+++ trunk/gta02-core/modules/tst.fpd    2009-08-27 09:46:44 UTC (rev 5555)
@@ -0,0 +1,9 @@
+/* MACHINE-GENERATED ! */
+
+package "_"
+unit mm
+set d = 1.2mm
+
+__0: vec @(-d/2, -d/2)
+__1: vec @(d/2, d/2)
+rpad "1" __0 . bare




--- End Message ---
_______________________________________________
commitlog mailing list
commitlog@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/commitlog

Reply via email to