Development mbed library for MAX32630FTHR

Dependents:   blinky_max32630fthr

Committer:
switches
Date:
Fri Dec 16 16:27:57 2016 +0000
Revision:
3:1198227e6421
Parent:
0:5c4d7b2438d3
Changed ADC scale for MAX32625 platforms to 1.2V full scale to match MAX32630 platforms

Who changed what in which revision?

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