2 * Copyright © 2015 Keith Packard <keithp@keithp.com>
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.
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.
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.
18 /* TO-252/DPAK footprint from ST */
24 real gnd_height = 6.1;
27 real pad_height = 2.8;
28 real pad_space = 4.572;
30 real total_height = 10.7;
31 real gnd_y = pad_height / 2 + gnd_height / 2 - total_height;
34 real pkg_height = 6.1;
35 real pkg_center_y = 1.5/2 - 2.8 - pkg_height/2;
37 element_start("TO252");
39 pad_mm(-pad_space/2, 0,
40 pad_width, pad_height,
44 gnd_width, gnd_height,
47 pad_mm(pad_space/2, 0,
48 pad_width, pad_height,
51 rect(-pkg_width / 2, pkg_center_y - pkg_height/2, pkg_width, pkg_height);