|
18 | 18 | import logging
|
19 | 19 |
|
20 | 20 | ROOT = abspath(join(dirname(__file__), ".."))
|
21 |
| -BUILD_DIR = abspath(join(ROOT, "..", "build")) |
22 | 21 |
|
23 | 22 | # These default settings have two purposes:
|
24 | 23 | # 1) Give a template for writing local "private_settings.py"
|
25 | 24 | # 2) Give default initialization fields for the "toolchains.py" constructors
|
26 | 25 |
|
27 |
| -SERVER_PORT = 59432 |
28 |
| -SERVER_ADDRESS = "10.2.200.94" |
29 |
| -LOCALHOST = "10.2.200.94" |
30 |
| - |
31 |
| -MUTs = { |
32 |
| - "1" : {"mcu": "LPC1768", |
33 |
| - "port":"COM41", "disk":'E:\\', |
34 |
| - "peripherals": ["TMP102", "digital_loop", "port_loop", "analog_loop", "SD"] |
35 |
| - }, |
36 |
| - "2": {"mcu": "LPC11U24", |
37 |
| - "port":"COM42", "disk":'F:\\', |
38 |
| - "peripherals": ["TMP102", "digital_loop", "port_loop", "SD"] |
39 |
| - }, |
40 |
| - "3" : {"mcu": "LPC2368", |
41 |
| - "port":"COM43", "disk":'G:\\', |
42 |
| - "peripherals": ["TMP102", "digital_loop", "port_loop", "analog_loop", "SD"] |
43 |
| - }, |
44 |
| - "4" : {"mcu": "KL25Z", |
45 |
| - "port":"COM44", "disk":'H:\\', |
46 |
| - "peripherals": ["TMP102", "digital_loop", "port_loop", "analog_loop", "SD"] |
47 |
| - }, |
48 |
| - "5" : {"mcu": "LPC1114", |
49 |
| - "port":"COM45", "disk":"I:\\", |
50 |
| - "peripherals": ["TMP102", "digital_loop", "port_loop", "analog_loop", "SD"] |
51 |
| - } |
52 |
| -} |
| 26 | +############################################################################## |
| 27 | +# Build System Settings |
| 28 | +############################################################################## |
| 29 | +BUILD_DIR = abspath(join(ROOT, "build")) |
53 | 30 |
|
54 | 31 | # ARM
|
55 | 32 | armcc = "standalone" # "keil", or "standalone", or "ds-5"
|
|
76 | 53 | MY_ARM_CLIB = join(ARM_PATH, "lib", "microlib")
|
77 | 54 |
|
78 | 55 | # GCC ARM
|
79 |
| -# GCC_ARM_PATH = "C:/arm-none-eabi-gcc-4_7/bin" |
80 |
| -GCC_ARM_PATH = "" |
| 56 | +GCC_ARM_PATH = "C:/arm-none-eabi-gcc-4_7/bin" |
81 | 57 |
|
82 | 58 | # GCC CodeSourcery
|
83 | 59 | GCC_CS_PATH = "C:/Program Files (x86)/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin"
|
|
94 | 70 |
|
95 | 71 | BUILD_OPTIONS = []
|
96 | 72 |
|
| 73 | +############################################################################## |
| 74 | +# Test System Settings |
| 75 | +############################################################################## |
| 76 | +SERVER_PORT = 59432 |
| 77 | +SERVER_ADDRESS = "10.2.200.94" |
| 78 | +LOCALHOST = "10.2.200.94" |
| 79 | + |
| 80 | +MUTs = { |
| 81 | + "1" : {"mcu": "LPC1768", |
| 82 | + "port":"COM41", "disk":'E:\\', |
| 83 | + "peripherals": ["TMP102", "digital_loop", "port_loop", "analog_loop", "SD"] |
| 84 | + }, |
| 85 | + "2": {"mcu": "LPC11U24", |
| 86 | + "port":"COM42", "disk":'F:\\', |
| 87 | + "peripherals": ["TMP102", "digital_loop", "port_loop", "SD"] |
| 88 | + }, |
| 89 | + "3" : {"mcu": "KL25Z", |
| 90 | + "port":"COM43", "disk":'G:\\', |
| 91 | + "peripherals": ["TMP102", "digital_loop", "port_loop", "analog_loop", "SD"] |
| 92 | + }, |
| 93 | +} |
| 94 | + |
| 95 | +############################################################################## |
| 96 | +# Private Settings |
| 97 | +############################################################################## |
97 | 98 | try:
|
98 | 99 | # Allow to overwrite the default settings without the need to edit the
|
99 | 100 | # settings file stored in the repository
|
100 | 101 | from workspace_tools.private_settings import *
|
101 |
| - logging.debug("Loaded user settings") |
102 | 102 | except ImportError:
|
103 |
| - logging.debug("[WARNING] Using default settings. Define you settings in the file private_settings.py") |
| 103 | + print '[WARNING] Using default settings. Define you settings in the file "workspace_tools/private_settings.py"' |
0 commit comments