Add RF components. Hook up microSD card.
[hw/telegps] / packages / ap.10g.5c
1 /*
2  * Copyright © 2012 Keith Packard <keithp@keithp.com>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; version 2 of the License.
7  *
8  * This program is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11  * General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License along
14  * with this program; if not, write to the Free Software Foundation, Inc.,
15  * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
16  */
17
18 load "footprint.5c"
19 import Footprint;
20
21 element_start("ap.10g");
22
23 real    edge_y = 5.85;
24
25 real    hole_spacing = 9.7;
26 real    hole_diameter = 1.5;
27 real    hole_x = hole_spacing/2;
28 real    hole_y = edge_y - 1.9;
29
30 real    v_pad_width = 1.25;
31 real    v_pad_height = 2.10;
32
33 real    v_pad_x = 11.26 / 2 - v_pad_width / 2;
34 real    v_pad_y = 3.65 - 1.25 - v_pad_height / 2;
35
36 real    h_pad_width = 2.10;
37 real    h_pad_height = 1.25;
38
39 real    h_pad_x = 9.1 / 2 - h_pad_width / 2;
40 real    h_pad_y = 0 + h_pad_height / 2;
41
42 real    feed_width = 2.1;
43 real    feed_height = 1.25;
44 real    feed_clear = 0.5;
45 real    feed_x = 0;
46 real    feed_y = feed_height / 2;
47
48 real    line_width = 1.29;
49 real    line_height = 3;
50 real    line_x = 0;
51 real    line_y = feed_y + line_height/2;
52 real    line_clear = feed_clear;
53
54 /* Center point is at the "top" of the feed pad */
55
56 /* Draw a line at the edge of the board for alignment */
57
58 real    mark_y = -edge_y + mils1002mm(line_thickness) / 2;
59                                                       
60 line(-hole_x, mark_y, hole_x, mark_y);
61
62 /* alignment holes */
63 pin_mm_clear(-hole_x, -hole_y, hole_diameter, .01, 0, "GND", "GND");
64 pin_mm_clear(hole_x, -hole_y, hole_diameter, .01, 0, "GND", "GND");
65
66 /* vertical pads */
67
68 pad_mm_clear(-v_pad_x, -v_pad_y, v_pad_width, v_pad_height, 0, "GND", "GND");
69 pad_mm_clear( v_pad_x, -v_pad_y, v_pad_width, v_pad_height, 0, "GND", "GND");
70
71 /* horizontal pads */
72
73 pad_mm_clear(-h_pad_x,  h_pad_y, h_pad_width, h_pad_height, 0, "GND", "GND");
74 pad_mm_clear( h_pad_x,  h_pad_y, h_pad_width, h_pad_height, 0, "GND", "GND");
75
76 /* feed pad */
77
78 pad_mm_clear (feed_x,  feed_y, feed_width, feed_height, feed_clear, "1", "1");
79
80 /* feed line */
81
82 pad_mm_clear (line_x,  line_y, line_width, line_height, line_clear, "1", "1");
83
84 element_end();