3 Copyright (c) 2011-2013 ARM Limited
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
9 http://www.apache.org/licenses/LICENSE-2.0
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.
18 from os.path import join, abspath, dirname
21 ROOT = abspath(join(dirname(__file__), ".."))
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
27 ##############################################################################
28 # Build System Settings
29 ##############################################################################
30 BUILD_DIR = abspath(join(ROOT, "build"))
33 armcc = "standalone" # "keil", or "standalone", or "ds-5"
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")
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")
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")
53 ARM_CPPLIB = join(ARM_LIB, "cpplib")
54 MY_ARM_CLIB = join(ARM_PATH, "lib", "microlib")
60 GCC_CS_PATH = "C:/Program Files (x86)/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin"
63 GCC_CR_PATH = "C:/code_red/RedSuite_4.2.0_349/redsuite/Tools/bin"
66 IAR_PATH = "C:/Program Files (x86)/IAR Systems/Embedded Workbench 7.0/arm"
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"
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"
75 # cppcheck path (command) and output message format
76 CPPCHECK_CMD = ["cppcheck", "--enable=all"]
77 CPPCHECK_MSG_FORMAT = ["--template=[{severity}] {file}@{line}: {id}:{message}"]
84 ##############################################################################
85 # Test System Settings
86 ##############################################################################
88 SERVER_ADDRESS = "10.2.200.94"
89 LOCALHOST = "10.2.200.94"
92 "1" : {"mcu": "LPC1768",
93 "port":"COM41", "disk":'E:\\',
94 "peripherals": ["TMP102", "digital_loop", "port_loop", "analog_loop", "SD"]
96 "2": {"mcu": "LPC11U24",
97 "port":"COM42", "disk":'F:\\',
98 "peripherals": ["TMP102", "digital_loop", "port_loop", "SD"]
100 "3" : {"mcu": "KL25Z",
101 "port":"COM43", "disk":'G:\\',
102 "peripherals": ["TMP102", "digital_loop", "port_loop", "analog_loop", "SD"]
106 ##############################################################################
108 ##############################################################################
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 *
114 print '[WARNING] Using default settings. Define your settings in the file "workspace_tools/private_settings.py" or in "./mbed_settings.py"'