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) 2011-2013 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 from os.path import join
nexpaq 1:55a6170b404f 18 from os import getenv
nexpaq 1:55a6170b404f 19
nexpaq 1:55a6170b404f 20 # Conventions about the directory structure
nexpaq 1:55a6170b404f 21 from tools.settings import ROOT, BUILD_DIR
nexpaq 1:55a6170b404f 22
nexpaq 1:55a6170b404f 23 # Allow overriding some of the build parameters using environment variables
nexpaq 1:55a6170b404f 24 BUILD_DIR = getenv("MBED_BUILD_DIR") or BUILD_DIR
nexpaq 1:55a6170b404f 25
nexpaq 1:55a6170b404f 26 # Embedded Libraries Sources
nexpaq 1:55a6170b404f 27 LIB_DIR = join(ROOT, "libraries")
nexpaq 1:55a6170b404f 28
nexpaq 1:55a6170b404f 29 TOOLS = join(ROOT, "tools")
nexpaq 1:55a6170b404f 30 TOOLS_DATA = join(TOOLS, "data")
nexpaq 1:55a6170b404f 31 TOOLS_BOOTLOADERS = join(TOOLS, "bootloaders")
nexpaq 1:55a6170b404f 32
nexpaq 1:55a6170b404f 33 # mbed libraries
nexpaq 1:55a6170b404f 34 MBED_BASE = join(ROOT, "hal")
nexpaq 1:55a6170b404f 35
nexpaq 1:55a6170b404f 36 MBED_API = join(MBED_BASE, "api")
nexpaq 1:55a6170b404f 37 MBED_COMMON = join(MBED_BASE, "common")
nexpaq 1:55a6170b404f 38 MBED_HAL = join(MBED_BASE, "hal")
nexpaq 1:55a6170b404f 39 MBED_TARGETS_PATH = join(MBED_BASE, "targets")
nexpaq 1:55a6170b404f 40
nexpaq 1:55a6170b404f 41 MBED_LIBRARIES = join(BUILD_DIR, "mbed")
nexpaq 1:55a6170b404f 42
nexpaq 1:55a6170b404f 43 MBED_CONFIG_FILE = join(ROOT, "mbed_lib.json")
nexpaq 1:55a6170b404f 44
nexpaq 1:55a6170b404f 45 # Tests
nexpaq 1:55a6170b404f 46 TEST_DIR = join(LIB_DIR, "tests")
nexpaq 1:55a6170b404f 47 HOST_TESTS = join(ROOT, "tools", "host_tests")
nexpaq 1:55a6170b404f 48
nexpaq 1:55a6170b404f 49 # mbed RPC
nexpaq 1:55a6170b404f 50 MBED_RPC = join(LIB_DIR, "rpc")
nexpaq 1:55a6170b404f 51
nexpaq 1:55a6170b404f 52 RPC_LIBRARY = join(BUILD_DIR, "rpc")
nexpaq 1:55a6170b404f 53
nexpaq 1:55a6170b404f 54 # mbed RTOS
nexpaq 1:55a6170b404f 55 RTOS = join(ROOT, "rtos")
nexpaq 1:55a6170b404f 56 MBED_RTX = join(RTOS, "rtx")
nexpaq 1:55a6170b404f 57 RTOS_ABSTRACTION = join(RTOS, "rtos")
nexpaq 1:55a6170b404f 58
nexpaq 1:55a6170b404f 59 RTOS_LIBRARIES = join(BUILD_DIR, "rtos")
nexpaq 1:55a6170b404f 60
nexpaq 1:55a6170b404f 61 # TCP/IP
nexpaq 1:55a6170b404f 62 NET = join(LIB_DIR, "net")
nexpaq 1:55a6170b404f 63
nexpaq 1:55a6170b404f 64 ETH_SOURCES = join(NET, "eth")
nexpaq 1:55a6170b404f 65 LWIP_SOURCES = join(NET, "lwip")
nexpaq 1:55a6170b404f 66 VODAFONE_SOURCES = join(NET, "VodafoneUSBModem")
nexpaq 1:55a6170b404f 67 CELLULAR_SOURCES = join(NET, "cellular", "CellularModem")
nexpaq 1:55a6170b404f 68 CELLULAR_USB_SOURCES = join(NET, "cellular", "CellularUSBModem")
nexpaq 1:55a6170b404f 69 UBLOX_SOURCES = join(NET, "cellular", "UbloxUSBModem")
nexpaq 1:55a6170b404f 70
nexpaq 1:55a6170b404f 71 NET_LIBRARIES = join(BUILD_DIR, "net")
nexpaq 1:55a6170b404f 72 ETH_LIBRARY = join(NET_LIBRARIES, "eth")
nexpaq 1:55a6170b404f 73 VODAFONE_LIBRARY = join(NET_LIBRARIES, "VodafoneUSBModem")
nexpaq 1:55a6170b404f 74 UBLOX_LIBRARY = join(NET_LIBRARIES, "UbloxUSBModem")
nexpaq 1:55a6170b404f 75
nexpaq 1:55a6170b404f 76 # FS
nexpaq 1:55a6170b404f 77 FS_PATH = join(LIB_DIR, "fs")
nexpaq 1:55a6170b404f 78 FAT_FS = join(FS_PATH, "fat")
nexpaq 1:55a6170b404f 79 SD_FS = join(FS_PATH, "sd")
nexpaq 1:55a6170b404f 80 FS_LIBRARY = join(BUILD_DIR, "fat")
nexpaq 1:55a6170b404f 81
nexpaq 1:55a6170b404f 82 # DSP
nexpaq 1:55a6170b404f 83 DSP = join(LIB_DIR, "dsp")
nexpaq 1:55a6170b404f 84 DSP_CMSIS = join(DSP, "cmsis_dsp")
nexpaq 1:55a6170b404f 85 DSP_ABSTRACTION = join(DSP, "dsp")
nexpaq 1:55a6170b404f 86 DSP_LIBRARIES = join(BUILD_DIR, "dsp")
nexpaq 1:55a6170b404f 87
nexpaq 1:55a6170b404f 88 # USB Device
nexpaq 1:55a6170b404f 89 USB = join(LIB_DIR, "USBDevice")
nexpaq 1:55a6170b404f 90 USB_LIBRARIES = join(BUILD_DIR, "usb")
nexpaq 1:55a6170b404f 91
nexpaq 1:55a6170b404f 92 # USB Host
nexpaq 1:55a6170b404f 93 USB_HOST = join(LIB_DIR, "USBHost")
nexpaq 1:55a6170b404f 94 USB_HOST_LIBRARIES = join(BUILD_DIR, "usb_host")
nexpaq 1:55a6170b404f 95
nexpaq 1:55a6170b404f 96 # Export
nexpaq 1:55a6170b404f 97 EXPORT_DIR = join(BUILD_DIR, "export")
nexpaq 1:55a6170b404f 98 EXPORT_WORKSPACE = join(EXPORT_DIR, "workspace")
nexpaq 1:55a6170b404f 99 EXPORT_TMP = join(EXPORT_DIR, ".temp")
nexpaq 1:55a6170b404f 100
nexpaq 1:55a6170b404f 101 # CppUtest library
nexpaq 1:55a6170b404f 102 CPPUTEST_DIR = join(ROOT, "..")
nexpaq 1:55a6170b404f 103 CPPUTEST_SRC = join(CPPUTEST_DIR, "cpputest", "src", "CppUTest")
nexpaq 1:55a6170b404f 104 CPPUTEST_INC = join(CPPUTEST_DIR, "cpputest", "include")
nexpaq 1:55a6170b404f 105 CPPUTEST_INC_EXT = join(CPPUTEST_DIR, "cpputest", "include", "CppUTest")
nexpaq 1:55a6170b404f 106 # Platform dependant code is here (for armcc compiler)
nexpaq 1:55a6170b404f 107 CPPUTEST_PLATFORM_SRC = join(CPPUTEST_DIR, "cpputest", "src", "Platforms",
nexpaq 1:55a6170b404f 108 "armcc")
nexpaq 1:55a6170b404f 109 CPPUTEST_PLATFORM_INC = join(CPPUTEST_DIR, "cpputest", "include", "Platforms",
nexpaq 1:55a6170b404f 110 "armcc")
nexpaq 1:55a6170b404f 111 # Function 'main' used to run all compiled UTs
nexpaq 1:55a6170b404f 112 CPPUTEST_TESTRUNNER_SCR = join(TEST_DIR, "utest", "testrunner")
nexpaq 1:55a6170b404f 113 CPPUTEST_TESTRUNNER_INC = join(TEST_DIR, "utest", "testrunner")
nexpaq 1:55a6170b404f 114
nexpaq 1:55a6170b404f 115 CPPUTEST_LIBRARY = join(BUILD_DIR, "cpputest")