Maxim mbed development library

Dependents:   sensomed

Committer:
switches
Date:
Tue Nov 08 18:27:11 2016 +0000
Revision:
0:0e018d759a2a
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
switches 0:0e018d759a2a 1 """
switches 0:0e018d759a2a 2 mbed SDK
switches 0:0e018d759a2a 3 Copyright (c) 2011-2013 ARM Limited
switches 0:0e018d759a2a 4
switches 0:0e018d759a2a 5 Licensed under the Apache License, Version 2.0 (the "License");
switches 0:0e018d759a2a 6 you may not use this file except in compliance with the License.
switches 0:0e018d759a2a 7 You may obtain a copy of the License at
switches 0:0e018d759a2a 8
switches 0:0e018d759a2a 9 http://www.apache.org/licenses/LICENSE-2.0
switches 0:0e018d759a2a 10
switches 0:0e018d759a2a 11 Unless required by applicable law or agreed to in writing, software
switches 0:0e018d759a2a 12 distributed under the License is distributed on an "AS IS" BASIS,
switches 0:0e018d759a2a 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
switches 0:0e018d759a2a 14 See the License for the specific language governing permissions and
switches 0:0e018d759a2a 15 limitations under the License.
switches 0:0e018d759a2a 16 """
switches 0:0e018d759a2a 17 from os.path import join
switches 0:0e018d759a2a 18 from os import getenv
switches 0:0e018d759a2a 19
switches 0:0e018d759a2a 20 # Conventions about the directory structure
switches 0:0e018d759a2a 21 from tools.settings import ROOT, BUILD_DIR
switches 0:0e018d759a2a 22
switches 0:0e018d759a2a 23 # Allow overriding some of the build parameters using environment variables
switches 0:0e018d759a2a 24 BUILD_DIR = getenv("MBED_BUILD_DIR") or BUILD_DIR
switches 0:0e018d759a2a 25
switches 0:0e018d759a2a 26 # Embedded Libraries Sources
switches 0:0e018d759a2a 27 LIB_DIR = join(ROOT, "features/unsupported")
switches 0:0e018d759a2a 28
switches 0:0e018d759a2a 29 TOOLS = join(ROOT, "tools")
switches 0:0e018d759a2a 30 TOOLS_DATA = join(TOOLS, "data")
switches 0:0e018d759a2a 31 TOOLS_BOOTLOADERS = join(TOOLS, "bootloaders")
switches 0:0e018d759a2a 32
switches 0:0e018d759a2a 33 # mbed libraries
switches 0:0e018d759a2a 34 MBED_HEADER = join(ROOT, "mbed.h")
switches 0:0e018d759a2a 35 MBED_DRIVERS = join(ROOT, "drivers")
switches 0:0e018d759a2a 36 MBED_PLATFORM = join(ROOT, "platform")
switches 0:0e018d759a2a 37 MBED_HAL = join(ROOT, "hal")
switches 0:0e018d759a2a 38
switches 0:0e018d759a2a 39 MBED_CMSIS_PATH = join(ROOT, "cmsis")
switches 0:0e018d759a2a 40 MBED_TARGETS_PATH = join(ROOT, "targets")
switches 0:0e018d759a2a 41
switches 0:0e018d759a2a 42 MBED_LIBRARIES = join(BUILD_DIR, "mbed")
switches 0:0e018d759a2a 43 MBED_LIBRARIES_DRIVERS = join(MBED_LIBRARIES, "drivers")
switches 0:0e018d759a2a 44 MBED_LIBRARIES_PLATFORM = join(MBED_LIBRARIES, "platform")
switches 0:0e018d759a2a 45 MBED_LIBRARIES_HAL = join(MBED_LIBRARIES, "hal")
switches 0:0e018d759a2a 46
switches 0:0e018d759a2a 47 MBED_CONFIG_FILE = join(ROOT, "platform/mbed_lib.json")
switches 0:0e018d759a2a 48
switches 0:0e018d759a2a 49 # Tests
switches 0:0e018d759a2a 50 TEST_DIR = join(LIB_DIR, "tests")
switches 0:0e018d759a2a 51 HOST_TESTS = join(ROOT, "tools", "host_tests")
switches 0:0e018d759a2a 52
switches 0:0e018d759a2a 53 # mbed RPC
switches 0:0e018d759a2a 54 MBED_RPC = join(LIB_DIR, "rpc")
switches 0:0e018d759a2a 55
switches 0:0e018d759a2a 56 RPC_LIBRARY = join(BUILD_DIR, "rpc")
switches 0:0e018d759a2a 57
switches 0:0e018d759a2a 58 # mbed RTOS
switches 0:0e018d759a2a 59 RTOS = join(ROOT, "rtos")
switches 0:0e018d759a2a 60 MBED_RTX = join(RTOS, "rtx")
switches 0:0e018d759a2a 61
switches 0:0e018d759a2a 62 RTOS_LIBRARIES = join(BUILD_DIR, "rtos")
switches 0:0e018d759a2a 63
switches 0:0e018d759a2a 64 # TCP/IP
switches 0:0e018d759a2a 65 NET = join(LIB_DIR, "net")
switches 0:0e018d759a2a 66
switches 0:0e018d759a2a 67 ETH_SOURCES = join(NET, "eth")
switches 0:0e018d759a2a 68 LWIP_SOURCES = join(NET, "lwip")
switches 0:0e018d759a2a 69 VODAFONE_SOURCES = join(NET, "VodafoneUSBModem")
switches 0:0e018d759a2a 70 CELLULAR_SOURCES = join(NET, "cellular", "CellularModem")
switches 0:0e018d759a2a 71 CELLULAR_USB_SOURCES = join(NET, "cellular", "CellularUSBModem")
switches 0:0e018d759a2a 72 UBLOX_SOURCES = join(NET, "cellular", "UbloxUSBModem")
switches 0:0e018d759a2a 73
switches 0:0e018d759a2a 74 NET_LIBRARIES = join(BUILD_DIR, "net")
switches 0:0e018d759a2a 75 ETH_LIBRARY = join(NET_LIBRARIES, "eth")
switches 0:0e018d759a2a 76 VODAFONE_LIBRARY = join(NET_LIBRARIES, "VodafoneUSBModem")
switches 0:0e018d759a2a 77 UBLOX_LIBRARY = join(NET_LIBRARIES, "UbloxUSBModem")
switches 0:0e018d759a2a 78
switches 0:0e018d759a2a 79 # FS
switches 0:0e018d759a2a 80 FS_PATH = join(LIB_DIR, "fs")
switches 0:0e018d759a2a 81 FAT_FS = join(FS_PATH, "fat")
switches 0:0e018d759a2a 82 SD_FS = join(FS_PATH, "sd")
switches 0:0e018d759a2a 83 FS_LIBRARY = join(BUILD_DIR, "fat")
switches 0:0e018d759a2a 84
switches 0:0e018d759a2a 85 # DSP
switches 0:0e018d759a2a 86 DSP = join(LIB_DIR, "dsp")
switches 0:0e018d759a2a 87 DSP_CMSIS = join(DSP, "cmsis_dsp")
switches 0:0e018d759a2a 88 DSP_ABSTRACTION = join(DSP, "dsp")
switches 0:0e018d759a2a 89 DSP_LIBRARIES = join(BUILD_DIR, "dsp")
switches 0:0e018d759a2a 90
switches 0:0e018d759a2a 91 # USB Device
switches 0:0e018d759a2a 92 USB = join(LIB_DIR, "USBDevice")
switches 0:0e018d759a2a 93 USB_LIBRARIES = join(BUILD_DIR, "usb")
switches 0:0e018d759a2a 94
switches 0:0e018d759a2a 95 # USB Host
switches 0:0e018d759a2a 96 USB_HOST = join(LIB_DIR, "USBHost")
switches 0:0e018d759a2a 97 USB_HOST_LIBRARIES = join(BUILD_DIR, "usb_host")
switches 0:0e018d759a2a 98
switches 0:0e018d759a2a 99 # Export
switches 0:0e018d759a2a 100 EXPORT_DIR = join(BUILD_DIR, "export")
switches 0:0e018d759a2a 101 EXPORT_WORKSPACE = join(EXPORT_DIR, "workspace")
switches 0:0e018d759a2a 102 EXPORT_TMP = join(EXPORT_DIR, ".temp")
switches 0:0e018d759a2a 103
switches 0:0e018d759a2a 104 # CppUtest library
switches 0:0e018d759a2a 105 CPPUTEST_DIR = join(ROOT, "..")
switches 0:0e018d759a2a 106 CPPUTEST_SRC = join(CPPUTEST_DIR, "cpputest", "src", "CppUTest")
switches 0:0e018d759a2a 107 CPPUTEST_INC = join(CPPUTEST_DIR, "cpputest", "include")
switches 0:0e018d759a2a 108 CPPUTEST_INC_EXT = join(CPPUTEST_DIR, "cpputest", "include", "CppUTest")
switches 0:0e018d759a2a 109 # Platform dependant code is here (for armcc compiler)
switches 0:0e018d759a2a 110 CPPUTEST_PLATFORM_SRC = join(CPPUTEST_DIR, "cpputest", "src", "Platforms",
switches 0:0e018d759a2a 111 "armcc")
switches 0:0e018d759a2a 112 CPPUTEST_PLATFORM_INC = join(CPPUTEST_DIR, "cpputest", "include", "Platforms",
switches 0:0e018d759a2a 113 "armcc")
switches 0:0e018d759a2a 114 # Function 'main' used to run all compiled UTs
switches 0:0e018d759a2a 115 CPPUTEST_TESTRUNNER_SCR = join(TEST_DIR, "utest", "testrunner")
switches 0:0e018d759a2a 116 CPPUTEST_TESTRUNNER_INC = join(TEST_DIR, "utest", "testrunner")
switches 0:0e018d759a2a 117
switches 0:0e018d759a2a 118 CPPUTEST_LIBRARY = join(BUILD_DIR, "cpputest")