takashi kadono
/
Nucleo_446
Color Oled(SSD1331) connect to STMicroelectronics Nucleo-F466
mbed-os/tools/paths.py@3:f3764f852aa8, 2018-10-11 (annotated)
- Committer:
- kadonotakashi
- Date:
- Thu Oct 11 02:27:46 2018 +0000
- Revision:
- 3:f3764f852aa8
- Parent:
- 0:8fdf9a60065b
Nucreo 446 + SSD1331 test version;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kadonotakashi | 0:8fdf9a60065b | 1 | """ |
kadonotakashi | 0:8fdf9a60065b | 2 | mbed SDK |
kadonotakashi | 0:8fdf9a60065b | 3 | Copyright (c) 2011-2013 ARM Limited |
kadonotakashi | 0:8fdf9a60065b | 4 | |
kadonotakashi | 0:8fdf9a60065b | 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
kadonotakashi | 0:8fdf9a60065b | 6 | you may not use this file except in compliance with the License. |
kadonotakashi | 0:8fdf9a60065b | 7 | You may obtain a copy of the License at |
kadonotakashi | 0:8fdf9a60065b | 8 | |
kadonotakashi | 0:8fdf9a60065b | 9 | http://www.apache.org/licenses/LICENSE-2.0 |
kadonotakashi | 0:8fdf9a60065b | 10 | |
kadonotakashi | 0:8fdf9a60065b | 11 | Unless required by applicable law or agreed to in writing, software |
kadonotakashi | 0:8fdf9a60065b | 12 | distributed under the License is distributed on an "AS IS" BASIS, |
kadonotakashi | 0:8fdf9a60065b | 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
kadonotakashi | 0:8fdf9a60065b | 14 | See the License for the specific language governing permissions and |
kadonotakashi | 0:8fdf9a60065b | 15 | limitations under the License. |
kadonotakashi | 0:8fdf9a60065b | 16 | """ |
kadonotakashi | 0:8fdf9a60065b | 17 | from os.path import join |
kadonotakashi | 0:8fdf9a60065b | 18 | from os import getenv |
kadonotakashi | 0:8fdf9a60065b | 19 | |
kadonotakashi | 0:8fdf9a60065b | 20 | # Conventions about the directory structure |
kadonotakashi | 0:8fdf9a60065b | 21 | from tools.settings import ROOT, BUILD_DIR |
kadonotakashi | 0:8fdf9a60065b | 22 | |
kadonotakashi | 0:8fdf9a60065b | 23 | # Allow overriding some of the build parameters using environment variables |
kadonotakashi | 0:8fdf9a60065b | 24 | BUILD_DIR = getenv("MBED_BUILD_DIR") or BUILD_DIR |
kadonotakashi | 0:8fdf9a60065b | 25 | |
kadonotakashi | 0:8fdf9a60065b | 26 | # Embedded Libraries Sources |
kadonotakashi | 0:8fdf9a60065b | 27 | LIB_DIR = join(ROOT, "features/unsupported") |
kadonotakashi | 0:8fdf9a60065b | 28 | |
kadonotakashi | 0:8fdf9a60065b | 29 | TOOLS = join(ROOT, "tools") |
kadonotakashi | 0:8fdf9a60065b | 30 | TOOLS_DATA = join(TOOLS, "data") |
kadonotakashi | 0:8fdf9a60065b | 31 | TOOLS_BOOTLOADERS = join(TOOLS, "bootloaders") |
kadonotakashi | 0:8fdf9a60065b | 32 | |
kadonotakashi | 0:8fdf9a60065b | 33 | # mbed libraries |
kadonotakashi | 0:8fdf9a60065b | 34 | MBED_HEADER = join(ROOT, "mbed.h") |
kadonotakashi | 0:8fdf9a60065b | 35 | MBED_DRIVERS = join(ROOT, "drivers") |
kadonotakashi | 0:8fdf9a60065b | 36 | MBED_PLATFORM = join(ROOT, "platform") |
kadonotakashi | 0:8fdf9a60065b | 37 | MBED_HAL = join(ROOT, "hal") |
kadonotakashi | 0:8fdf9a60065b | 38 | |
kadonotakashi | 0:8fdf9a60065b | 39 | MBED_CMSIS_PATH = join(ROOT, "cmsis") |
kadonotakashi | 0:8fdf9a60065b | 40 | MBED_TARGETS_PATH = join(ROOT, "targets") |
kadonotakashi | 0:8fdf9a60065b | 41 | |
kadonotakashi | 0:8fdf9a60065b | 42 | MBED_LIBRARIES = join(BUILD_DIR, "mbed") |
kadonotakashi | 0:8fdf9a60065b | 43 | MBED_LIBRARIES_DRIVERS = join(MBED_LIBRARIES, "drivers") |
kadonotakashi | 0:8fdf9a60065b | 44 | MBED_LIBRARIES_PLATFORM = join(MBED_LIBRARIES, "platform") |
kadonotakashi | 0:8fdf9a60065b | 45 | MBED_LIBRARIES_HAL = join(MBED_LIBRARIES, "hal") |
kadonotakashi | 0:8fdf9a60065b | 46 | |
kadonotakashi | 0:8fdf9a60065b | 47 | MBED_CONFIG_FILE = join(ROOT, "platform/mbed_lib.json") |
kadonotakashi | 0:8fdf9a60065b | 48 | |
kadonotakashi | 0:8fdf9a60065b | 49 | # Tests |
kadonotakashi | 0:8fdf9a60065b | 50 | TEST_DIR = join(LIB_DIR, "tests") |
kadonotakashi | 0:8fdf9a60065b | 51 | HOST_TESTS = join(ROOT, "tools", "host_tests") |
kadonotakashi | 0:8fdf9a60065b | 52 | |
kadonotakashi | 0:8fdf9a60065b | 53 | # mbed RPC |
kadonotakashi | 0:8fdf9a60065b | 54 | MBED_RPC = join(LIB_DIR, "rpc") |
kadonotakashi | 0:8fdf9a60065b | 55 | |
kadonotakashi | 0:8fdf9a60065b | 56 | RPC_LIBRARY = join(BUILD_DIR, "rpc") |
kadonotakashi | 0:8fdf9a60065b | 57 | |
kadonotakashi | 0:8fdf9a60065b | 58 | # DSP |
kadonotakashi | 0:8fdf9a60065b | 59 | DSP = join(LIB_DIR, "dsp") |
kadonotakashi | 0:8fdf9a60065b | 60 | DSP_CMSIS = join(DSP, "cmsis_dsp") |
kadonotakashi | 0:8fdf9a60065b | 61 | DSP_ABSTRACTION = join(DSP, "dsp") |
kadonotakashi | 0:8fdf9a60065b | 62 | DSP_LIBRARIES = join(BUILD_DIR, "dsp") |
kadonotakashi | 0:8fdf9a60065b | 63 | |
kadonotakashi | 0:8fdf9a60065b | 64 | # USB Device |
kadonotakashi | 0:8fdf9a60065b | 65 | USB = join(LIB_DIR, "USBDevice") |
kadonotakashi | 0:8fdf9a60065b | 66 | USB_LIBRARIES = join(BUILD_DIR, "usb") |
kadonotakashi | 0:8fdf9a60065b | 67 | |
kadonotakashi | 0:8fdf9a60065b | 68 | # Export |
kadonotakashi | 0:8fdf9a60065b | 69 | EXPORT_DIR = join(BUILD_DIR, "export") |
kadonotakashi | 0:8fdf9a60065b | 70 | EXPORT_WORKSPACE = join(EXPORT_DIR, "workspace") |
kadonotakashi | 0:8fdf9a60065b | 71 | EXPORT_TMP = join(EXPORT_DIR, ".temp") |
kadonotakashi | 0:8fdf9a60065b | 72 | |
kadonotakashi | 0:8fdf9a60065b | 73 | # CppUtest library |
kadonotakashi | 0:8fdf9a60065b | 74 | CPPUTEST_DIR = join(ROOT, "..") |
kadonotakashi | 0:8fdf9a60065b | 75 | CPPUTEST_SRC = join(CPPUTEST_DIR, "cpputest", "src", "CppUTest") |
kadonotakashi | 0:8fdf9a60065b | 76 | CPPUTEST_INC = join(CPPUTEST_DIR, "cpputest", "include") |
kadonotakashi | 0:8fdf9a60065b | 77 | CPPUTEST_INC_EXT = join(CPPUTEST_DIR, "cpputest", "include", "CppUTest") |
kadonotakashi | 0:8fdf9a60065b | 78 | # Platform dependant code is here (for armcc compiler) |
kadonotakashi | 0:8fdf9a60065b | 79 | CPPUTEST_PLATFORM_SRC = join(CPPUTEST_DIR, "cpputest", "src", "Platforms", |
kadonotakashi | 0:8fdf9a60065b | 80 | "armcc") |
kadonotakashi | 0:8fdf9a60065b | 81 | CPPUTEST_PLATFORM_INC = join(CPPUTEST_DIR, "cpputest", "include", "Platforms", |
kadonotakashi | 0:8fdf9a60065b | 82 | "armcc") |
kadonotakashi | 0:8fdf9a60065b | 83 | # Function 'main' used to run all compiled UTs |
kadonotakashi | 0:8fdf9a60065b | 84 | CPPUTEST_TESTRUNNER_SCR = join(TEST_DIR, "utest", "testrunner") |
kadonotakashi | 0:8fdf9a60065b | 85 | CPPUTEST_TESTRUNNER_INC = join(TEST_DIR, "utest", "testrunner") |
kadonotakashi | 0:8fdf9a60065b | 86 | |
kadonotakashi | 0:8fdf9a60065b | 87 | CPPUTEST_LIBRARY = join(BUILD_DIR, "cpputest") |