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