]> git.gir.st - tmk_keyboard.git/blob - tmk_core/tool/mbed/mbed-sdk/workspace_tools/settings.py
Change .gitignore for ChibiOS
[tmk_keyboard.git] / tmk_core / tool / mbed / mbed-sdk / workspace_tools / settings.py
1 """
2 mbed SDK
3 Copyright (c) 2011-2013 ARM Limited
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16 """
17
18 from os.path import join, abspath, dirname
19 import logging
20
21 ROOT = abspath(join(dirname(__file__), ".."))
22
23 # These default settings have two purposes:
24 # 1) Give a template for writing local "private_settings.py"
25 # 2) Give default initialization fields for the "toolchains.py" constructors
26
27 ##############################################################################
28 # Build System Settings
29 ##############################################################################
30 BUILD_DIR = abspath(join(ROOT, "build"))
31
32 # ARM
33 armcc = "standalone" # "keil", or "standalone", or "ds-5"
34
35 if armcc == "keil":
36 ARM_PATH = "C:/Keil_4_54/ARM"
37 ARM_BIN = join(ARM_PATH, "BIN40")
38 ARM_INC = join(ARM_PATH, "RV31", "INC")
39 ARM_LIB = join(ARM_PATH, "RV31", "LIB")
40
41 elif armcc == "standalone":
42 ARM_PATH = "C:/Program Files/ARM/armcc_4.1_791"
43 ARM_BIN = join(ARM_PATH, "bin")
44 ARM_INC = join(ARM_PATH, "include")
45 ARM_LIB = join(ARM_PATH, "lib")
46
47 elif armcc == "ds-5":
48 ARM_PATH = "C:/Program Files (x86)/DS-5"
49 ARM_BIN = join(ARM_PATH, "bin")
50 ARM_INC = join(ARM_PATH, "include")
51 ARM_LIB = join(ARM_PATH, "lib")
52
53 ARM_CPPLIB = join(ARM_LIB, "cpplib")
54 MY_ARM_CLIB = join(ARM_PATH, "lib", "microlib")
55
56 # GCC ARM
57 GCC_ARM_PATH = ""
58
59 # GCC CodeSourcery
60 GCC_CS_PATH = "C:/Program Files (x86)/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin"
61
62 # GCC CodeRed
63 GCC_CR_PATH = "C:/code_red/RedSuite_4.2.0_349/redsuite/Tools/bin"
64
65 # IAR
66 IAR_PATH = "C:/Program Files (x86)/IAR Systems/Embedded Workbench 7.0/arm"
67
68 # GCC Code Warrior
69 CW_GCC_PATH = "C:/Freescale/CW MCU v10.3/Cross_Tools/arm-none-eabi-gcc-4_6_2/bin"
70 CW_EWL_PATH = "C:/Freescale/CW MCU v10.3/MCU/ARM_GCC_Support/ewl/lib"
71
72 # Goanna static analyser. Please overload it in private_settings.py
73 GOANNA_PATH = "c:/Program Files (x86)/RedLizards/Goanna Central 3.2.3/bin"
74
75 # cppcheck path (command) and output message format
76 CPPCHECK_CMD = ["cppcheck", "--enable=all"]
77 CPPCHECK_MSG_FORMAT = ["--template=[{severity}] {file}@{line}: {id}:{message}"]
78
79 BUILD_OPTIONS = []
80
81 # mbed.org username
82 MBED_ORG_USER = ""
83
84 ##############################################################################
85 # Test System Settings
86 ##############################################################################
87 SERVER_PORT = 59432
88 SERVER_ADDRESS = "10.2.200.94"
89 LOCALHOST = "10.2.200.94"
90
91 MUTs = {
92 "1" : {"mcu": "LPC1768",
93 "port":"COM41", "disk":'E:\\',
94 "peripherals": ["TMP102", "digital_loop", "port_loop", "analog_loop", "SD"]
95 },
96 "2": {"mcu": "LPC11U24",
97 "port":"COM42", "disk":'F:\\',
98 "peripherals": ["TMP102", "digital_loop", "port_loop", "SD"]
99 },
100 "3" : {"mcu": "KL25Z",
101 "port":"COM43", "disk":'G:\\',
102 "peripherals": ["TMP102", "digital_loop", "port_loop", "analog_loop", "SD"]
103 },
104 }
105
106 ##############################################################################
107 # Private Settings
108 ##############################################################################
109 try:
110 # Allow to overwrite the default settings without the need to edit the
111 # settings file stored in the repository
112 from workspace_tools.private_settings import *
113 except ImportError:
114 print '[WARNING] Using default settings. Define your settings in the file "workspace_tools/private_settings.py" or in "./mbed_settings.py"'
Imprint / Impressum