5.2.1 - Updated I2C files

Dependents:   mbed-TFT-example-NCS36510 mbed-Accelerometer-example-NCS36510 mbed-Accelerometer-example-NCS36510

Committer:
group-onsemi
Date:
Wed Jan 25 20:34:15 2017 +0000
Revision:
0:098463de4c5d
Initial commit

Who changed what in which revision?

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