KiCad PCB EDA Suite
Loading...
Searching...
No Matches
board_design_settings_defaults.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright (C) 2009-2019 Jean-Pierre Charras, jp.charras at wanadoo.fr
5 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <https://www.gnu.org/licenses/>.
19 */
20
21#pragma once
22
23#include <eda_units.h>
24
25#define DEFAULT_SILK_LINE_WIDTH 0.1
26#define DEFAULT_COPPER_LINE_WIDTH 0.2
27#define DEFAULT_EDGE_WIDTH 0.05
28#define DEFAULT_COURTYARD_WIDTH 0.05
29#define DEFAULT_LINE_WIDTH 0.10
30
31#define DEFAULT_SILK_TEXT_SIZE 1.0
32#define DEFAULT_COPPER_TEXT_SIZE 1.5
33#define DEFAULT_TEXT_SIZE 1.0
34
35#define DEFAULT_SILK_TEXT_WIDTH 0.1
36#define DEFAULT_COPPER_TEXT_WIDTH 0.30
37#define DEFAULT_TEXT_WIDTH 0.15
38
39#define DEFAULT_DIMENSION_ARROW_LENGTH 50 // mils, for legacy purposes
40#define DEFAULT_DIMENSION_EXTENSION_OFFSET 0.5
41
42// Largest microvia stack pitch, in mm. Bounds the hop position arithmetic.
43#define MAX_MICROVIA_STACK_PITCH_MM 25.0
44
45// Board thickness, mainly for 3D view:
46#define DEFAULT_BOARD_THICKNESS_MM 1.6
47
48#define DEFAULT_PCB_EDGE_THICKNESS 0.15
49
50// soldermask to pad clearance. The default is 0 because usually board houses
51// create a clearance depending on their fab process: mask material, color, price, etc.
52#define DEFAULT_SOLDERMASK_EXPANSION 0.0
53
54#define DEFAULT_SOLDERMASK_TO_COPPER_CLEARANCE 0.0
55
56#define DEFAULT_SOLDERMASK_MIN_WIDTH 0.0
57
58#define DEFAULT_SOLDERPASTE_CLEARANCE 0.0
59#define DEFAULT_SOLDERPASTE_RATIO 0.0
60
61#define DEFAULT_CUSTOMTRACKWIDTH 0.2
62#define DEFAULT_CUSTOMDPAIRWIDTH 0.125
63#define DEFAULT_CUSTOMDPAIRGAP 0.18
64#define DEFAULT_CUSTOMDPAIRVIAGAP 0.18
65
66#define DEFAULT_MEANDER_SPACING 0.6
67#define DEFAULT_DP_MEANDER_SPACING 1.0
68
69#define DEFAULT_MINCLEARANCE 0.0 // overall min clearance
70#define DEFAULT_MINCONNECTION 0.0 // overall min connection width
71#define DEFAULT_TRACKMINWIDTH 0.2 // track width min value (mm)
72#define DEFAULT_VIASMINSIZE 0.5 // vias (not micro vias) min diameter
73#define DEFAULT_MINTHROUGHDRILL 0.3 // through holes (not micro vias) min drill diameter
74#define DEFAULT_MICROVIASMINSIZE 0.2 // micro vias (not vias) min diameter
75#define DEFAULT_MICROVIASMINDRILL 0.1 // micro vias (not vias) min drill diameter
76#define DEFAULT_HOLETOHOLEMIN 0.25 // minimum web thickness between two drilled holes
77#define DEFAULT_HOLECLEARANCE 0.25 // copper-to-hole clearance (from IPC level A)
78
79#define DEFAULT_COPPEREDGECLEARANCE 0.5 // clearance between copper items and edge cuts
80#define LEGACY_COPPEREDGECLEARANCE -0.01 // A flag to indicate the legacy method (based
81 // on edge cut line thicknesses) should be used.
82#define DEFAULT_SILKCLEARANCE 0.0
83#define DEFAULT_MINGROOVEWIDTH 0.0
84
85#define DEFAULT_MINRESOLVEDSPOKES 2 // Fewer resolved spokes indicates a starved thermal
86
87#define MINIMUM_ERROR_SIZE_MM 0.001 // For arc approximation
88#define MAXIMUM_ERROR_SIZE_MM 0.1 // For arc approximation
89
90#define MAXIMUM_CLEARANCE pcbIUScale.mmToIU( 500 ) // to prevent int-overflows
91
92// Min/max values used in dialogs to validate settings
93#define MINIMUM_LINE_WIDTH_MM 0.005 // minimal line width entered in a dialog
94#define MAXIMUM_LINE_WIDTH_MM 100.0 // max line width entered in a dialog
95
96// Default pad properties
97#define DEFAULT_PAD_THT_WIDTH_MM 2.54
98#define DEFAULT_PAD_THT_HEIGHT_MM 1.27
99#define DEFAULT_PAD_DRILL_DIAMETER_MM 0.8
100#define DEFAULT_PAD_SMD_WIDTH_MM 2.0
101#define DEFAULT_PAD_SMD_HEIGHT_MM 1.0
102#define DEFAULT_PAD_APERTURE_HEIGHT_MM 1.0
103#define DEFAULT_PAD_APERTURE_WIDTH_MM 1.0
104#define DEFAULT_PAD_NPTH_DIAMETER_MM 1.0