Update "missing" (automake) script to a later version
[geda-pcb/pcjc2.git] / lib / amphenol.inc
blobb88ed39eda0a43f2c94bffbfd16247fee9b4a33a
1 # -*- m4 -*-
3 #                            COPYRIGHT
5 #   PCB, interactive printed circuit board design
6 #   Copyright (C) 2003, 2004 Dan McMahill
8 #   This program is free software; you can redistribute it and/or modify
9 #   it under the terms of the GNU General Public License as published by
10 #   the Free Software Foundation; either version 2 of the License, or
11 #   (at your option) any later version.
12
13 #   This program is distributed in the hope that it will be useful,
14 #   but WITHOUT ANY WARRANTY; without even the implied warranty of
15 #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 #   GNU General Public License for more details.
17
18 #   You should have received a copy of the GNU General Public License
19 #   along with this program; if not, write to the Free Software
20 #   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21
22
23 # Amphenol Connectors
26 # ARFX1229 SMA Connector
27 # 5.08 mm (200 mil) outer pin spacing
28 # 1.70 mm (67 mil, #51 drill) hole sizes
30 define(`PKG_AMPHENOL_ARFX1229',
31         `define(`PAD_SIZE', `100')
32         define(`HOLE_SIZE', `67')
33         define(`CPAD_SIZE', `100')
34         define(`CHOLE_SIZE', `67')
35         define(`PAD_SPACE', `200')
36         define(`CENTER', `eval(PAD_SPACE/2)')
37         define(`SILK', `70')
38         define(`XMIN', `eval(-1*SILK)')
39         define(`XMAX', `eval(PAD_SPACE+SILK)')
40         define(`YMIN', `eval(-1*SILK)')
41         define(`YMAX', `eval(PAD_SPACE+SILK)')
42 Element(0x00 "$1" "`$2'" "$3" eval(XMIN+20) eval(YMAX+20) 0 100 0x00)
45         Pin(CENTER     CENTER     CPAD_SIZE  CHOLE_SIZE  "1" 0x01)
46         Pin(0          0          PAD_SIZE   HOLE_SIZE   "2" 0x01)
47         Pin(0          PAD_SPACE  PAD_SIZE   HOLE_SIZE   "3" 0x01)
48         Pin(PAD_SPACE  0          PAD_SIZE   HOLE_SIZE   "4" 0x01)
49         Pin(PAD_SPACE  PAD_SPACE  PAD_SIZE   HOLE_SIZE   "5" 0x01)
51         # silk screen
52         # ends
53         ElementLine(XMIN YMIN XMIN YMAX 10)
54         ElementLine(XMAX YMAX XMAX YMIN 10)
55         ElementLine(XMIN YMIN XMAX YMIN 10)
56         ElementLine(XMAX YMAX XMIN YMAX 10)
57         Mark(CENTER CENTER)
58 )')
60 # XXX once we get some sort of annotation layer in PCB, the right
61 # angle connectors should have an annotation showing where the connector
62 # really goes to.  Same for a keep out layer.
63 define(`PKG_AMPHENOL_ARFX1230',`PKG_AMPHENOL_ARFX1229(`$1', `$2', `$3')')
64 define(`PKG_AMPHENOL_ARFX1231',`PKG_AMPHENOL_ARFX1229(`$1', `$2', `$3')')
65 define(`PKG_AMPHENOL_ARFX1232',`PKG_AMPHENOL_ARFX1229(`$1', `$2', `$3')')