Keyboard firmwares for Atmel AVR and Cortex-M
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

settings.py 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. """
  2. mbed SDK
  3. Copyright (c) 2011-2013 ARM Limited
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. """
  14. from os.path import join, abspath, dirname
  15. import logging
  16. ROOT = abspath(join(dirname(__file__), ".."))
  17. # These default settings have two purposes:
  18. # 1) Give a template for writing local "private_settings.py"
  19. # 2) Give default initialization fields for the "toolchains.py" constructors
  20. ##############################################################################
  21. # Build System Settings
  22. ##############################################################################
  23. BUILD_DIR = abspath(join(ROOT, "build"))
  24. # ARM
  25. armcc = "standalone" # "keil", or "standalone", or "ds-5"
  26. if armcc == "keil":
  27. ARM_PATH = "C:/Keil_4_54/ARM"
  28. ARM_BIN = join(ARM_PATH, "BIN40")
  29. ARM_INC = join(ARM_PATH, "RV31", "INC")
  30. ARM_LIB = join(ARM_PATH, "RV31", "LIB")
  31. elif armcc == "standalone":
  32. ARM_PATH = "C:/Program Files/ARM/armcc_4.1_791"
  33. ARM_BIN = join(ARM_PATH, "bin")
  34. ARM_INC = join(ARM_PATH, "include")
  35. ARM_LIB = join(ARM_PATH, "lib")
  36. elif armcc == "ds-5":
  37. ARM_PATH = "C:/Program Files (x86)/DS-5"
  38. ARM_BIN = join(ARM_PATH, "bin")
  39. ARM_INC = join(ARM_PATH, "include")
  40. ARM_LIB = join(ARM_PATH, "lib")
  41. ARM_CPPLIB = join(ARM_LIB, "cpplib")
  42. MY_ARM_CLIB = join(ARM_PATH, "lib", "microlib")
  43. # GCC ARM
  44. GCC_ARM_PATH = ""
  45. # GCC CodeSourcery
  46. GCC_CS_PATH = "C:/Program Files (x86)/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin"
  47. # GCC CodeRed
  48. GCC_CR_PATH = "C:/code_red/RedSuite_4.2.0_349/redsuite/Tools/bin"
  49. # IAR
  50. IAR_PATH = "C:/Program Files (x86)/IAR Systems/Embedded Workbench 7.0/arm"
  51. # GCC Code Warrior
  52. CW_GCC_PATH = "C:/Freescale/CW MCU v10.3/Cross_Tools/arm-none-eabi-gcc-4_6_2/bin"
  53. CW_EWL_PATH = "C:/Freescale/CW MCU v10.3/MCU/ARM_GCC_Support/ewl/lib"
  54. # Goanna static analyser. Please overload it in private_settings.py
  55. GOANNA_PATH = "c:/Program Files (x86)/RedLizards/Goanna Central 3.2.3/bin"
  56. # cppcheck path (command) and output message format
  57. CPPCHECK_CMD = ["cppcheck", "--enable=all"]
  58. CPPCHECK_MSG_FORMAT = ["--template=[{severity}] {file}@{line}: {id}:{message}"]
  59. BUILD_OPTIONS = []
  60. # mbed.org username
  61. MBED_ORG_USER = ""
  62. ##############################################################################
  63. # Test System Settings
  64. ##############################################################################
  65. SERVER_PORT = 59432
  66. SERVER_ADDRESS = "10.2.200.94"
  67. LOCALHOST = "10.2.200.94"
  68. MUTs = {
  69. "1" : {"mcu": "LPC1768",
  70. "port":"COM41", "disk":'E:\\',
  71. "peripherals": ["TMP102", "digital_loop", "port_loop", "analog_loop", "SD"]
  72. },
  73. "2": {"mcu": "LPC11U24",
  74. "port":"COM42", "disk":'F:\\',
  75. "peripherals": ["TMP102", "digital_loop", "port_loop", "SD"]
  76. },
  77. "3" : {"mcu": "KL25Z",
  78. "port":"COM43", "disk":'G:\\',
  79. "peripherals": ["TMP102", "digital_loop", "port_loop", "analog_loop", "SD"]
  80. },
  81. }
  82. ##############################################################################
  83. # Private Settings
  84. ##############################################################################
  85. try:
  86. # Allow to overwrite the default settings without the need to edit the
  87. # settings file stored in the repository
  88. from workspace_tools.private_settings import *
  89. except ImportError:
  90. print '[WARNING] Using default settings. Define your settings in the file "workspace_tools/private_settings.py" or in "./mbed_settings.py"'