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