nkjnm

Dependencies:   MAX44000 nexpaq_mdk

Fork of LED_Demo by Maxim nexpaq

Committer:
nitsshukla
Date:
Fri Nov 04 12:06:04 2016 +0000
Revision:
7:3a65ef12ba31
Parent:
1:55a6170b404f
kghj;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
nexpaq 1:55a6170b404f 1 """
nexpaq 1:55a6170b404f 2 mbed SDK
nexpaq 1:55a6170b404f 3 Copyright (c) 2016 ARM Limited
nexpaq 1:55a6170b404f 4
nexpaq 1:55a6170b404f 5 Licensed under the Apache License, Version 2.0 (the "License");
nexpaq 1:55a6170b404f 6 you may not use this file except in compliance with the License.
nexpaq 1:55a6170b404f 7 You may obtain a copy of the License at
nexpaq 1:55a6170b404f 8
nexpaq 1:55a6170b404f 9 http://www.apache.org/licenses/LICENSE-2.0
nexpaq 1:55a6170b404f 10
nexpaq 1:55a6170b404f 11 Unless required by applicable law or agreed to in writing, software
nexpaq 1:55a6170b404f 12 distributed under the License is distributed on an "AS IS" BASIS,
nexpaq 1:55a6170b404f 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
nexpaq 1:55a6170b404f 14 See the License for the specific language governing permissions and
nexpaq 1:55a6170b404f 15 limitations under the License.
nexpaq 1:55a6170b404f 16 """
nexpaq 1:55a6170b404f 17
nexpaq 1:55a6170b404f 18 from os import getenv
nexpaq 1:55a6170b404f 19 from os.path import join, abspath, dirname, exists
nexpaq 1:55a6170b404f 20 import logging
nexpaq 1:55a6170b404f 21
nexpaq 1:55a6170b404f 22 ROOT = abspath(join(dirname(__file__), ".."))
nexpaq 1:55a6170b404f 23
nexpaq 1:55a6170b404f 24
nexpaq 1:55a6170b404f 25 ##############################################################################
nexpaq 1:55a6170b404f 26 # Toolchains and Build System Settings
nexpaq 1:55a6170b404f 27 ##############################################################################
nexpaq 1:55a6170b404f 28 BUILD_DIR = abspath(join(ROOT, ".build"))
nexpaq 1:55a6170b404f 29
nexpaq 1:55a6170b404f 30 # ARM Compiler 5
nexpaq 1:55a6170b404f 31 ARM_PATH = "C:/Keil_v5/ARM/ARMCC"
nexpaq 1:55a6170b404f 32
nexpaq 1:55a6170b404f 33 # GCC ARM
nexpaq 1:55a6170b404f 34 GCC_ARM_PATH = ""
nexpaq 1:55a6170b404f 35
nexpaq 1:55a6170b404f 36 # GCC CodeRed
nexpaq 1:55a6170b404f 37 GCC_CR_PATH = "C:/code_red/RedSuite_4.2.0_349/redsuite/Tools/bin"
nexpaq 1:55a6170b404f 38
nexpaq 1:55a6170b404f 39 # IAR
nexpaq 1:55a6170b404f 40 IAR_PATH = "C:/Program Files (x86)/IAR Systems/Embedded Workbench 7.3/arm"
nexpaq 1:55a6170b404f 41
nexpaq 1:55a6170b404f 42 # Goanna static analyser. Please overload it in mbed_settings.py
nexpaq 1:55a6170b404f 43 GOANNA_PATH = "c:/Program Files (x86)/RedLizards/Goanna Central 3.2.3/bin"
nexpaq 1:55a6170b404f 44
nexpaq 1:55a6170b404f 45 # cppcheck path (command) and output message format
nexpaq 1:55a6170b404f 46 CPPCHECK_CMD = ["cppcheck", "--enable=all"]
nexpaq 1:55a6170b404f 47 CPPCHECK_MSG_FORMAT = ["--template=[{severity}] {file}@{line}: {id}:{message}"]
nexpaq 1:55a6170b404f 48
nexpaq 1:55a6170b404f 49 BUILD_OPTIONS = []
nexpaq 1:55a6170b404f 50
nexpaq 1:55a6170b404f 51 # mbed.org username
nexpaq 1:55a6170b404f 52 MBED_ORG_USER = ""
nexpaq 1:55a6170b404f 53
nexpaq 1:55a6170b404f 54 CLI_COLOR_MAP = {
nexpaq 1:55a6170b404f 55 "warning": "yellow",
nexpaq 1:55a6170b404f 56 "error" : "red"
nexpaq 1:55a6170b404f 57 }
nexpaq 1:55a6170b404f 58
nexpaq 1:55a6170b404f 59 ##############################################################################
nexpaq 1:55a6170b404f 60 # User Settings (file)
nexpaq 1:55a6170b404f 61 ##############################################################################
nexpaq 1:55a6170b404f 62 try:
nexpaq 1:55a6170b404f 63 # Allow to overwrite the default settings without the need to edit the
nexpaq 1:55a6170b404f 64 # settings file stored in the repository
nexpaq 1:55a6170b404f 65 from mbed_settings import *
nexpaq 1:55a6170b404f 66 except ImportError:
nexpaq 1:55a6170b404f 67 pass
nexpaq 1:55a6170b404f 68
nexpaq 1:55a6170b404f 69
nexpaq 1:55a6170b404f 70 ##############################################################################
nexpaq 1:55a6170b404f 71 # User Settings (env vars)
nexpaq 1:55a6170b404f 72 ##############################################################################
nexpaq 1:55a6170b404f 73 _ENV_PATHS = ['ARM_PATH', 'GCC_ARM_PATH', 'GCC_CR_PATH', 'IAR_PATH']
nexpaq 1:55a6170b404f 74
nexpaq 1:55a6170b404f 75 for _n in _ENV_PATHS:
nexpaq 1:55a6170b404f 76 if getenv('MBED_'+_n):
nexpaq 1:55a6170b404f 77 if exists(getenv('MBED_'+_n)):
nexpaq 1:55a6170b404f 78 globals()[_n] = getenv('MBED_'+_n)
nexpaq 1:55a6170b404f 79 else:
nexpaq 1:55a6170b404f 80 print "WARNING: MBED_%s set as environment variable but doesn't exist" % _n
nexpaq 1:55a6170b404f 81
nexpaq 1:55a6170b404f 82
nexpaq 1:55a6170b404f 83 ##############################################################################
nexpaq 1:55a6170b404f 84 # Test System Settings
nexpaq 1:55a6170b404f 85 ##############################################################################
nexpaq 1:55a6170b404f 86 SERVER_PORT = 59432
nexpaq 1:55a6170b404f 87 SERVER_ADDRESS = "10.2.200.94"
nexpaq 1:55a6170b404f 88 LOCALHOST = "10.2.200.94"
nexpaq 1:55a6170b404f 89
nexpaq 1:55a6170b404f 90 MUTs = {
nexpaq 1:55a6170b404f 91 "1" : {"mcu": "LPC1768",
nexpaq 1:55a6170b404f 92 "port":"COM41", "disk":'E:\\',
nexpaq 1:55a6170b404f 93 "peripherals": ["TMP102", "digital_loop", "port_loop", "analog_loop", "SD"]
nexpaq 1:55a6170b404f 94 },
nexpaq 1:55a6170b404f 95 "2": {"mcu": "LPC11U24",
nexpaq 1:55a6170b404f 96 "port":"COM42", "disk":'F:\\',
nexpaq 1:55a6170b404f 97 "peripherals": ["TMP102", "digital_loop", "port_loop", "SD"]
nexpaq 1:55a6170b404f 98 },
nexpaq 1:55a6170b404f 99 "3" : {"mcu": "KL25Z",
nexpaq 1:55a6170b404f 100 "port":"COM43", "disk":'G:\\',
nexpaq 1:55a6170b404f 101 "peripherals": ["TMP102", "digital_loop", "port_loop", "analog_loop", "SD"]
nexpaq 1:55a6170b404f 102 },
nexpaq 1:55a6170b404f 103 }