joey shelton / LED_Demo

Dependencies:   MAX44000 PWM_Tone_Library nexpaq_mdk

Fork of LED_Demo by Maxim nexpaq

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers paths.py Source File

paths.py

00001 """
00002 mbed SDK
00003 Copyright (c) 2011-2013 ARM Limited
00004 
00005 Licensed under the Apache License, Version 2.0 (the "License");
00006 you may not use this file except in compliance with the License.
00007 You may obtain a copy of the License at
00008 
00009     http://www.apache.org/licenses/LICENSE-2.0
00010 
00011 Unless required by applicable law or agreed to in writing, software
00012 distributed under the License is distributed on an "AS IS" BASIS,
00013 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014 See the License for the specific language governing permissions and
00015 limitations under the License.
00016 """
00017 from os.path import join
00018 from os import getenv
00019 
00020 # Conventions about the directory structure
00021 from tools.settings import ROOT, BUILD_DIR
00022 
00023 # Allow overriding some of the build parameters using environment variables
00024 BUILD_DIR = getenv("MBED_BUILD_DIR") or BUILD_DIR
00025 
00026 # Embedded Libraries Sources
00027 LIB_DIR = join(ROOT, "libraries")
00028 
00029 TOOLS = join(ROOT, "tools")
00030 TOOLS_DATA = join(TOOLS, "data")
00031 TOOLS_BOOTLOADERS = join(TOOLS, "bootloaders")
00032 
00033 # mbed libraries
00034 MBED_BASE = join(ROOT, "hal")
00035 
00036 MBED_API = join(MBED_BASE, "api")
00037 MBED_COMMON = join(MBED_BASE, "common")
00038 MBED_HAL = join(MBED_BASE, "hal")
00039 MBED_TARGETS_PATH = join(MBED_BASE, "targets")
00040 
00041 MBED_LIBRARIES = join(BUILD_DIR, "mbed")
00042 
00043 MBED_CONFIG_FILE = join(ROOT, "mbed_lib.json")
00044 
00045 # Tests
00046 TEST_DIR = join(LIB_DIR, "tests")
00047 HOST_TESTS = join(ROOT, "tools", "host_tests")
00048 
00049 # mbed RPC
00050 MBED_RPC = join(LIB_DIR, "rpc")
00051 
00052 RPC_LIBRARY = join(BUILD_DIR, "rpc")
00053 
00054 # mbed RTOS
00055 RTOS = join(ROOT, "rtos")
00056 MBED_RTX = join(RTOS, "rtx")
00057 RTOS_ABSTRACTION = join(RTOS, "rtos")
00058 
00059 RTOS_LIBRARIES = join(BUILD_DIR, "rtos")
00060 
00061 # TCP/IP
00062 NET = join(LIB_DIR, "net")
00063 
00064 ETH_SOURCES = join(NET, "eth")
00065 LWIP_SOURCES = join(NET, "lwip")
00066 VODAFONE_SOURCES = join(NET, "VodafoneUSBModem")
00067 CELLULAR_SOURCES = join(NET, "cellular", "CellularModem")
00068 CELLULAR_USB_SOURCES = join(NET, "cellular", "CellularUSBModem")
00069 UBLOX_SOURCES = join(NET, "cellular", "UbloxUSBModem")
00070 
00071 NET_LIBRARIES = join(BUILD_DIR, "net")
00072 ETH_LIBRARY = join(NET_LIBRARIES, "eth")
00073 VODAFONE_LIBRARY = join(NET_LIBRARIES, "VodafoneUSBModem")
00074 UBLOX_LIBRARY = join(NET_LIBRARIES, "UbloxUSBModem")
00075 
00076 # FS
00077 FS_PATH = join(LIB_DIR, "fs")
00078 FAT_FS = join(FS_PATH, "fat")
00079 SD_FS = join(FS_PATH, "sd")
00080 FS_LIBRARY = join(BUILD_DIR, "fat")
00081 
00082 # DSP
00083 DSP = join(LIB_DIR, "dsp")
00084 DSP_CMSIS = join(DSP, "cmsis_dsp")
00085 DSP_ABSTRACTION = join(DSP, "dsp")
00086 DSP_LIBRARIES = join(BUILD_DIR, "dsp")
00087 
00088 # USB Device
00089 USB = join(LIB_DIR, "USBDevice")
00090 USB_LIBRARIES = join(BUILD_DIR, "usb")
00091 
00092 # USB Host
00093 USB_HOST = join(LIB_DIR, "USBHost")
00094 USB_HOST_LIBRARIES = join(BUILD_DIR, "usb_host")
00095 
00096 # Export
00097 EXPORT_DIR = join(BUILD_DIR, "export")
00098 EXPORT_WORKSPACE = join(EXPORT_DIR, "workspace")
00099 EXPORT_TMP = join(EXPORT_DIR, ".temp")
00100 
00101 # CppUtest library
00102 CPPUTEST_DIR = join(ROOT, "..")
00103 CPPUTEST_SRC = join(CPPUTEST_DIR, "cpputest", "src", "CppUTest")
00104 CPPUTEST_INC = join(CPPUTEST_DIR, "cpputest", "include")
00105 CPPUTEST_INC_EXT = join(CPPUTEST_DIR, "cpputest", "include", "CppUTest")
00106 # Platform dependant code is here (for armcc compiler)
00107 CPPUTEST_PLATFORM_SRC = join(CPPUTEST_DIR, "cpputest", "src", "Platforms",
00108                              "armcc")
00109 CPPUTEST_PLATFORM_INC = join(CPPUTEST_DIR, "cpputest", "include", "Platforms",
00110                              "armcc")
00111 # Function 'main' used to run all compiled UTs
00112 CPPUTEST_TESTRUNNER_SCR = join(TEST_DIR, "utest", "testrunner")
00113 CPPUTEST_TESTRUNNER_INC = join(TEST_DIR, "utest", "testrunner")
00114 
00115 CPPUTEST_LIBRARY = join(BUILD_DIR, "cpputest")