Skip to content

Commit 4d26e2e

Browse files
committed
Tidy up default settings
1 parent 6744f47 commit 4d26e2e

File tree

2 files changed

+39
-33
lines changed

2 files changed

+39
-33
lines changed

.gitignore

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
# Private settings
44
private_settings.py
55

6+
# Default Build Directory
7+
build/
8+
9+
# Eclipse Project Files
10+
.cproject
11+
.project
12+
.pydevproject
13+
614
# C extensions
715
*.so
816

@@ -34,8 +42,6 @@ nosetests.xml
3442

3543
# Mr Developer
3644
.mr.developer.cfg
37-
.project
38-
.pydevproject
3945

4046
output.txt
4147
uVision Project/

workspace_tools/settings.py

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -18,38 +18,15 @@
1818
import logging
1919

2020
ROOT = abspath(join(dirname(__file__), ".."))
21-
BUILD_DIR = abspath(join(ROOT, "..", "build"))
2221

2322
# These default settings have two purposes:
2423
# 1) Give a template for writing local "private_settings.py"
2524
# 2) Give default initialization fields for the "toolchains.py" constructors
2625

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"))
5330

5431
# ARM
5532
armcc = "standalone" # "keil", or "standalone", or "ds-5"
@@ -76,8 +53,7 @@
7653
MY_ARM_CLIB = join(ARM_PATH, "lib", "microlib")
7754

7855
# 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"
8157

8258
# GCC CodeSourcery
8359
GCC_CS_PATH = "C:/Program Files (x86)/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin"
@@ -94,10 +70,34 @@
9470

9571
BUILD_OPTIONS = []
9672

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+
##############################################################################
9798
try:
9899
# Allow to overwrite the default settings without the need to edit the
99100
# settings file stored in the repository
100101
from workspace_tools.private_settings import *
101-
logging.debug("Loaded user settings")
102102
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

Comments
 (0)