2 * Copyright © 2014 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.
21 real package_width = 12.0;
22 real package_height = 12.0;
23 real package_thick = 2.4;
25 real power_width = 1.0;
26 real power_height = 7.41;
27 real data_width = 1.0;
28 real data_height = 6.41;
34 element_start("usb_onboard");
36 rect(-package_width/2, 0, package_width, package_height);
38 line(-package_width/2, pad_y, package_width/2, pad_y);
40 pad_mm(-power_x, pad_y - power_height/2, power_width, power_height, "VBUS", "1");
42 pad_mm(-data_x, pad_y - data_height/2, data_width, data_height, "DM", "2");
44 pad_mm( data_x, pad_y - data_height/2, data_width, data_height, "DP", "3");
46 pad_mm( power_x, pad_y - power_height/2, power_width, power_height, "GND", "4");