5.2.1 - Updated I2C files

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

Committer:
jacobjohnson
Date:
Mon Feb 27 17:45:05 2017 +0000
Revision:
1:f30bdcd2b33b
Parent:
0:098463de4c5d
changed the inputscale from 1 to 7 in analogin_api.c.  This will need to be changed later, and accessed from the main level, but for now this allows the  adc to read a value from 0 to 3.7V, instead of just up to 1V.;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
group-onsemi 0:098463de4c5d 1 #!/usr/bin/env python
group-onsemi 0:098463de4c5d 2 """
group-onsemi 0:098463de4c5d 3 mbed SDK
group-onsemi 0:098463de4c5d 4 Copyright (c) 2011-2013 ARM Limited
group-onsemi 0:098463de4c5d 5
group-onsemi 0:098463de4c5d 6 Licensed under the Apache License, Version 2.0 (the "License");
group-onsemi 0:098463de4c5d 7 you may not use this file except in compliance with the License.
group-onsemi 0:098463de4c5d 8 You may obtain a copy of the License at
group-onsemi 0:098463de4c5d 9
group-onsemi 0:098463de4c5d 10 http://www.apache.org/licenses/LICENSE-2.0
group-onsemi 0:098463de4c5d 11
group-onsemi 0:098463de4c5d 12 Unless required by applicable law or agreed to in writing, software
group-onsemi 0:098463de4c5d 13 distributed under the License is distributed on an "AS IS" BASIS,
group-onsemi 0:098463de4c5d 14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
group-onsemi 0:098463de4c5d 15 See the License for the specific language governing permissions and
group-onsemi 0:098463de4c5d 16 limitations under the License.
group-onsemi 0:098463de4c5d 17 """
group-onsemi 0:098463de4c5d 18 import sys
group-onsemi 0:098463de4c5d 19 from os.path import join, abspath, dirname, exists
group-onsemi 0:098463de4c5d 20 ROOT = abspath(join(dirname(__file__), ".."))
group-onsemi 0:098463de4c5d 21 sys.path.insert(0, ROOT)
group-onsemi 0:098463de4c5d 22
group-onsemi 0:098463de4c5d 23 from shutil import move
group-onsemi 0:098463de4c5d 24
group-onsemi 0:098463de4c5d 25 from tools.paths import *
group-onsemi 0:098463de4c5d 26 from tools.utils import mkdir, cmd
group-onsemi 0:098463de4c5d 27 from tools.export import export, setup_user_prj
group-onsemi 0:098463de4c5d 28
group-onsemi 0:098463de4c5d 29
group-onsemi 0:098463de4c5d 30 USR_PRJ_NAME = "usr_prj"
group-onsemi 0:098463de4c5d 31 USER_PRJ = join(EXPORT_WORKSPACE, USR_PRJ_NAME)
group-onsemi 0:098463de4c5d 32 USER_SRC = join(USER_PRJ, "src")
group-onsemi 0:098463de4c5d 33
group-onsemi 0:098463de4c5d 34
group-onsemi 0:098463de4c5d 35 def setup_test_user_prj():
group-onsemi 0:098463de4c5d 36 if exists(USER_PRJ):
group-onsemi 0:098463de4c5d 37 print 'Test user project already generated...'
group-onsemi 0:098463de4c5d 38 return
group-onsemi 0:098463de4c5d 39
group-onsemi 0:098463de4c5d 40 setup_user_prj(USER_PRJ, join(TEST_DIR, "rtos", "mbed", "basic"), [join(ROOT, "rtos"), join(LIB_DIR, "tests", "mbed", "env")])
group-onsemi 0:098463de4c5d 41
group-onsemi 0:098463de4c5d 42 # FAKE BUILD URL
group-onsemi 0:098463de4c5d 43 open(join(USER_SRC, "mbed.bld"), 'w').write("http://mbed.org/users/mbed_official/code/mbed/builds/976df7c37ad5\n")
group-onsemi 0:098463de4c5d 44
group-onsemi 0:098463de4c5d 45
group-onsemi 0:098463de4c5d 46 def fake_build_url_resolver(url):
group-onsemi 0:098463de4c5d 47 # FAKE BUILD URL: Ignore the URL, always return the path to the mbed library
group-onsemi 0:098463de4c5d 48 return {'path':MBED_LIBRARIES, 'name':'mbed'}
group-onsemi 0:098463de4c5d 49
group-onsemi 0:098463de4c5d 50
group-onsemi 0:098463de4c5d 51 def test_export(toolchain, target, expected_error=None):
group-onsemi 0:098463de4c5d 52 if toolchain is None and target is None:
group-onsemi 0:098463de4c5d 53 base_dir = join(EXPORT_TMP, "zip")
group-onsemi 0:098463de4c5d 54 else:
group-onsemi 0:098463de4c5d 55 base_dir = join(EXPORT_TMP, toolchain, target)
group-onsemi 0:098463de4c5d 56 temp_dir = join(base_dir, "temp")
group-onsemi 0:098463de4c5d 57 mkdir(temp_dir)
group-onsemi 0:098463de4c5d 58
group-onsemi 0:098463de4c5d 59 zip_path, report = export(USER_PRJ, USR_PRJ_NAME, toolchain, target, base_dir, temp_dir, False, None, fake_build_url_resolver)
group-onsemi 0:098463de4c5d 60
group-onsemi 0:098463de4c5d 61 if report['success']:
group-onsemi 0:098463de4c5d 62 move(zip_path, join(EXPORT_DIR, "export_%s_%s.zip" % (toolchain, target)))
group-onsemi 0:098463de4c5d 63 print "[OK]"
group-onsemi 0:098463de4c5d 64 else:
group-onsemi 0:098463de4c5d 65 if expected_error is None:
group-onsemi 0:098463de4c5d 66 print '[ERRROR] %s' % report['errormsg']
group-onsemi 0:098463de4c5d 67 else:
group-onsemi 0:098463de4c5d 68 if (zip_path is None) and (expected_error in report['errormsg']):
group-onsemi 0:098463de4c5d 69 print '[OK]'
group-onsemi 0:098463de4c5d 70 else:
group-onsemi 0:098463de4c5d 71 print '[ERROR]'
group-onsemi 0:098463de4c5d 72 print ' zip:', zip_path
group-onsemi 0:098463de4c5d 73 print ' msg:', report['errormsg']
group-onsemi 0:098463de4c5d 74
group-onsemi 0:098463de4c5d 75
group-onsemi 0:098463de4c5d 76 if __name__ == '__main__':
group-onsemi 0:098463de4c5d 77 setup_test_user_prj()
group-onsemi 0:098463de4c5d 78
group-onsemi 0:098463de4c5d 79 for toolchain, target in [
group-onsemi 0:098463de4c5d 80 ('zip', 'LPC1768'),
group-onsemi 0:098463de4c5d 81
group-onsemi 0:098463de4c5d 82 ('emblocks', 'LPC1768'),
group-onsemi 0:098463de4c5d 83 ('emblocks', 'LPC1549'),
group-onsemi 0:098463de4c5d 84 ('emblocks', 'LPC1114'),
group-onsemi 0:098463de4c5d 85 ('emblocks', 'LPC11U35_401'),
group-onsemi 0:098463de4c5d 86 ('emblocks', 'LPC11U35_501'),
group-onsemi 0:098463de4c5d 87 ('emblocks', 'LPCCAPPUCCINO'),
group-onsemi 0:098463de4c5d 88 ('emblocks', 'LPC2368'),
group-onsemi 0:098463de4c5d 89 ('emblocks', 'STM32F407'),
group-onsemi 0:098463de4c5d 90 ('emblocks', 'DISCO_F100RB'),
group-onsemi 0:098463de4c5d 91 ('emblocks', 'DISCO_F051R8'),
group-onsemi 0:098463de4c5d 92 ('emblocks', 'DISCO_F407VG'),
group-onsemi 0:098463de4c5d 93 ('emblocks', 'DISCO_F303VC'),
group-onsemi 0:098463de4c5d 94 ('emblocks', 'NRF51822'),
group-onsemi 0:098463de4c5d 95 ('emblocks', 'NUCLEO_F401RE'),
group-onsemi 0:098463de4c5d 96 ('emblocks', 'NUCLEO_F410RB'),
group-onsemi 0:098463de4c5d 97 ('emblocks', 'NUCLEO_F411RE'),
group-onsemi 0:098463de4c5d 98 ('emblocks', 'MTS_MDOT_F405RG'),
group-onsemi 0:098463de4c5d 99 ('emblocks', 'MTS_MDOT_F411RE'),
group-onsemi 0:098463de4c5d 100
group-onsemi 0:098463de4c5d 101 ('coide', 'KL05Z'),
group-onsemi 0:098463de4c5d 102 ('coide', 'KL25Z'),
group-onsemi 0:098463de4c5d 103 ('coide', 'LPC1768'),
group-onsemi 0:098463de4c5d 104 ('coide', 'ARCH_PRO'),
group-onsemi 0:098463de4c5d 105 ('coide', 'DISCO_F407VG'),
group-onsemi 0:098463de4c5d 106 ('coide', 'NUCLEO_F401RE'),
group-onsemi 0:098463de4c5d 107 ('coide', 'NUCLEO_F410RB'),
group-onsemi 0:098463de4c5d 108 ('coide', 'NUCLEO_F411RE'),
group-onsemi 0:098463de4c5d 109 ('coide', 'DISCO_F429ZI'),
group-onsemi 0:098463de4c5d 110 ('coide', 'NUCLEO_F429ZI'),
group-onsemi 0:098463de4c5d 111 #('coide', 'DISCO_F469NI'), removed because template not available
group-onsemi 0:098463de4c5d 112 ('coide', 'NUCLEO_F334R8'),
group-onsemi 0:098463de4c5d 113 ('coide', 'NUCLEO_F303ZE'),
group-onsemi 0:098463de4c5d 114 ('coide', 'MTS_MDOT_F405RG'),
group-onsemi 0:098463de4c5d 115 ('coide', 'MTS_MDOT_F411RE'),
group-onsemi 0:098463de4c5d 116
group-onsemi 0:098463de4c5d 117 ('uvision', 'LPC1768'),
group-onsemi 0:098463de4c5d 118 ('uvision', 'LPC11U24'),
group-onsemi 0:098463de4c5d 119 ('uvision', 'LPC11U35_401'),
group-onsemi 0:098463de4c5d 120 ('uvision', 'LPC11U35_501'),
group-onsemi 0:098463de4c5d 121 ('uvision', 'KL25Z'),
group-onsemi 0:098463de4c5d 122 ('uvision', 'LPC1347'),
group-onsemi 0:098463de4c5d 123 ('uvision', 'LPC1114'),
group-onsemi 0:098463de4c5d 124 ('uvision', 'LPC4088'),
group-onsemi 0:098463de4c5d 125 ('uvision', 'LPC4088_DM'),
group-onsemi 0:098463de4c5d 126 ('uvision', 'LPC4337'),
group-onsemi 0:098463de4c5d 127 ('uvision', 'LPC824'),
group-onsemi 0:098463de4c5d 128 ('uvision', 'SSCI824'),
group-onsemi 0:098463de4c5d 129 ('uvision', 'HRM1017'),
group-onsemi 0:098463de4c5d 130
group-onsemi 0:098463de4c5d 131 ('uvision', 'B96B_F446VE'),
group-onsemi 0:098463de4c5d 132 ('uvision', 'NUCLEO_F030R8'),
group-onsemi 0:098463de4c5d 133 ('uvision', 'NUCLEO_F031K6'),
group-onsemi 0:098463de4c5d 134 ('uvision', 'NUCLEO_F042K6'),
group-onsemi 0:098463de4c5d 135 ('uvision', 'NUCLEO_F070RB'),
group-onsemi 0:098463de4c5d 136 ('uvision', 'NUCLEO_F072RB'),
group-onsemi 0:098463de4c5d 137 ('uvision', 'NUCLEO_F091RC'),
group-onsemi 0:098463de4c5d 138 ('uvision', 'NUCLEO_F103RB'),
group-onsemi 0:098463de4c5d 139 ('uvision', 'NUCLEO_F302R8'),
group-onsemi 0:098463de4c5d 140 ('uvision', 'NUCLEO_F303K8'),
group-onsemi 0:098463de4c5d 141 ('uvision', 'NUCLEO_F303RE'),
group-onsemi 0:098463de4c5d 142 ('uvision', 'NUCLEO_F334R8'),
group-onsemi 0:098463de4c5d 143 ('uvision', 'NUCLEO_F303ZE'),
group-onsemi 0:098463de4c5d 144 ('uvision', 'NUCLEO_F401RE'),
group-onsemi 0:098463de4c5d 145 ('uvision', 'NUCLEO_F410RB'),
group-onsemi 0:098463de4c5d 146 ('uvision', 'NUCLEO_F411RE'),
group-onsemi 0:098463de4c5d 147 ('uvision', 'NUCLEO_F412ZG'),
group-onsemi 0:098463de4c5d 148 ('uvision', 'NUCLEO_F429ZI'),
group-onsemi 0:098463de4c5d 149 ('uvision', 'NUCLEO_F446RE'),
group-onsemi 0:098463de4c5d 150 ('uvision', 'NUCLEO_F446ZE'),
group-onsemi 0:098463de4c5d 151 ('uvision', 'NUCLEO_L011K4'),
group-onsemi 0:098463de4c5d 152 ('uvision', 'NUCLEO_L031K6'),
group-onsemi 0:098463de4c5d 153 ('uvision', 'NUCLEO_L053R8'),
group-onsemi 0:098463de4c5d 154 ('uvision', 'NUCLEO_L073RZ'),
group-onsemi 0:098463de4c5d 155 ('uvision', 'NUCLEO_L152RE'),
group-onsemi 0:098463de4c5d 156 ('uvision', 'NUCLEO_L432KC'),
group-onsemi 0:098463de4c5d 157 ('uvision', 'NUCLEO_L476RG'),
group-onsemi 0:098463de4c5d 158 ('uvision', 'MTS_MDOT_F405RG'),
group-onsemi 0:098463de4c5d 159 ('uvision', 'MAXWSNENV'),
group-onsemi 0:098463de4c5d 160 ('uvision', 'MAX32600MBED'),
group-onsemi 0:098463de4c5d 161 ('uvision', 'MAX32620HSP'),
group-onsemi 0:098463de4c5d 162 ('uvision', 'DISCO_F051R8'),
group-onsemi 0:098463de4c5d 163 ('uvision', 'DISCO_F103RB'),
group-onsemi 0:098463de4c5d 164 ('uvision', 'DISCO_F303VC'),
group-onsemi 0:098463de4c5d 165 ('uvision', 'DISCO_L053C8'),
group-onsemi 0:098463de4c5d 166 ('uvision', 'DISCO_F334C8'),
group-onsemi 0:098463de4c5d 167 ('uvision', 'DISCO_F407VG'),
group-onsemi 0:098463de4c5d 168 ('uvision', 'DISCO_F429ZI'),
group-onsemi 0:098463de4c5d 169 ('uvision', 'DISCO_F746NG'),
group-onsemi 0:098463de4c5d 170 ('uvision', 'DISCO_F469NI'),
group-onsemi 0:098463de4c5d 171 ('uvision', 'DISCO_L476VG'),
group-onsemi 0:098463de4c5d 172 ('uvision', 'MOTE_L152RC'),
group-onsemi 0:098463de4c5d 173 ('uvision', 'ARM_BEETLE_SOC'),
group-onsemi 0:098463de4c5d 174
group-onsemi 0:098463de4c5d 175 ('lpcxpresso', 'LPC1768'),
group-onsemi 0:098463de4c5d 176 ('lpcxpresso', 'LPC4088'),
group-onsemi 0:098463de4c5d 177 ('lpcxpresso', 'LPC4088_DM'),
group-onsemi 0:098463de4c5d 178 ('lpcxpresso', 'LPC1114'),
group-onsemi 0:098463de4c5d 179 ('lpcxpresso', 'LPC11U35_401'),
group-onsemi 0:098463de4c5d 180 ('lpcxpresso', 'LPC11U35_501'),
group-onsemi 0:098463de4c5d 181 ('lpcxpresso', 'LPCCAPPUCCINO'),
group-onsemi 0:098463de4c5d 182 ('lpcxpresso', 'LPC1549'),
group-onsemi 0:098463de4c5d 183 ('lpcxpresso', 'LPC11U68'),
group-onsemi 0:098463de4c5d 184
group-onsemi 0:098463de4c5d 185 # Linux path: /home/emimon01/bin/gcc-arm/bin/
group-onsemi 0:098463de4c5d 186 # Windows path: C:/arm-none-eabi-gcc-4_7/bin/
group-onsemi 0:098463de4c5d 187 ('gcc_arm', 'LPC1768'),
group-onsemi 0:098463de4c5d 188 ('gcc_arm', 'LPC4088_DM'),
group-onsemi 0:098463de4c5d 189 ('gcc_arm', 'LPC1549'),
group-onsemi 0:098463de4c5d 190 ('gcc_arm', 'LPC1114'),
group-onsemi 0:098463de4c5d 191 ('gcc_arm', 'LPC11U35_401'),
group-onsemi 0:098463de4c5d 192 ('gcc_arm', 'LPC11U35_501'),
group-onsemi 0:098463de4c5d 193 ('gcc_arm', 'LPCCAPPUCCINO'),
group-onsemi 0:098463de4c5d 194 ('gcc_arm', 'LPC2368'),
group-onsemi 0:098463de4c5d 195 ('gcc_arm', 'LPC2460'),
group-onsemi 0:098463de4c5d 196 ('gcc_arm', 'LPC824'),
group-onsemi 0:098463de4c5d 197 ('gcc_arm', 'SSCI824'),
group-onsemi 0:098463de4c5d 198
group-onsemi 0:098463de4c5d 199 ('gcc_arm', 'B96B_F446VE'),
group-onsemi 0:098463de4c5d 200 ('gcc_arm', 'STM32F407'),
group-onsemi 0:098463de4c5d 201 ('gcc_arm', 'DISCO_F100RB'),
group-onsemi 0:098463de4c5d 202 ('gcc_arm', 'DISCO_F051R8'),
group-onsemi 0:098463de4c5d 203 ('gcc_arm', 'DISCO_F407VG'),
group-onsemi 0:098463de4c5d 204 ('gcc_arm', 'DISCO_F303VC'),
group-onsemi 0:098463de4c5d 205 ('gcc_arm', 'DISCO_L053C8'),
group-onsemi 0:098463de4c5d 206 ('gcc_arm', 'DISCO_F334C8'),
group-onsemi 0:098463de4c5d 207 ('gcc_arm', 'DISCO_L053C8'),
group-onsemi 0:098463de4c5d 208 ('gcc_arm', 'DISCO_F429ZI'),
group-onsemi 0:098463de4c5d 209 ('gcc_arm', 'DISCO_F746NG'),
group-onsemi 0:098463de4c5d 210 ('gcc_arm', 'NUCLEO_F031K6'),
group-onsemi 0:098463de4c5d 211 ('gcc_arm', 'NUCLEO_F042K6'),
group-onsemi 0:098463de4c5d 212 ('gcc_arm', 'NRF51822'),
group-onsemi 0:098463de4c5d 213 ('gcc_arm', 'RBLAB_BLENANO'),
group-onsemi 0:098463de4c5d 214 ('gcc_arm', 'HRM1017'),
group-onsemi 0:098463de4c5d 215 ('gcc_arm', 'NUCLEO_F401RE'),
group-onsemi 0:098463de4c5d 216 ('gcc_arm', 'NUCLEO_F410RB'),
group-onsemi 0:098463de4c5d 217 ('gcc_arm', 'NUCLEO_F411RE'),
group-onsemi 0:098463de4c5d 218 ('gcc_arm', 'NUCLEO_F429ZI'),
group-onsemi 0:098463de4c5d 219 ('gcc_arm', 'NUCLEO_F446RE'),
group-onsemi 0:098463de4c5d 220 ('gcc_arm', 'NUCLEO_F446ZE'),
group-onsemi 0:098463de4c5d 221 ('gcc_arm', 'NUCLEO_F303ZE'),
group-onsemi 0:098463de4c5d 222 ('gcc_arm', 'ELMO_F411RE'),
group-onsemi 0:098463de4c5d 223 ('gcc_arm', 'DISCO_F469NI'),
group-onsemi 0:098463de4c5d 224 ('gcc_arm', 'NUCLEO_F334R8'),
group-onsemi 0:098463de4c5d 225 ('gcc_arm', 'NUCLEO_L011K4'),
group-onsemi 0:098463de4c5d 226 ('gcc_arm', 'NUCLEO_L031K6'),
group-onsemi 0:098463de4c5d 227 ('gcc_arm', 'NUCLEO_L432KC'),
group-onsemi 0:098463de4c5d 228 ('gcc_arm', 'MAX32600MBED'),
group-onsemi 0:098463de4c5d 229 ('gcc_arm', 'MTS_MDOT_F405RG'),
group-onsemi 0:098463de4c5d 230 ('gcc_arm', 'MTS_MDOT_F411RE'),
group-onsemi 0:098463de4c5d 231 ('gcc_arm', 'RZ_A1H'),
group-onsemi 0:098463de4c5d 232 ('gcc_arm', 'MAXWSNENV'),
group-onsemi 0:098463de4c5d 233 ('gcc_arm', 'MAX32600MBED'),
group-onsemi 0:098463de4c5d 234 ('gcc_arm', 'MAX32620HSP'),
group-onsemi 0:098463de4c5d 235 ('gcc_arm', 'ARCH_BLE'),
group-onsemi 0:098463de4c5d 236 ('gcc_arm', 'ARCH_MAX'),
group-onsemi 0:098463de4c5d 237 ('gcc_arm', 'ARCH_PRO'),
group-onsemi 0:098463de4c5d 238 ('gcc_arm', 'DELTA_DFCM_NNN40'),
group-onsemi 0:098463de4c5d 239 ('gcc_arm', 'K20D50M'),
group-onsemi 0:098463de4c5d 240 ('gcc_arm', 'K22F'),
group-onsemi 0:098463de4c5d 241 ('gcc_arm', 'K64F'),
group-onsemi 0:098463de4c5d 242 ('gcc_arm', 'KL05Z'),
group-onsemi 0:098463de4c5d 243 ('gcc_arm', 'KL25Z'),
group-onsemi 0:098463de4c5d 244 ('gcc_arm', 'KL43Z'),
group-onsemi 0:098463de4c5d 245 ('gcc_arm', 'KL46Z'),
group-onsemi 0:098463de4c5d 246 ('gcc_arm', 'EFM32GG_STK3700'),
group-onsemi 0:098463de4c5d 247 ('gcc_arm', 'EFM32LG_STK3600'),
group-onsemi 0:098463de4c5d 248 ('gcc_arm', 'EFM32WG_STK3800'),
group-onsemi 0:098463de4c5d 249 ('gcc_arm', 'EFM32ZG_STK3200'),
group-onsemi 0:098463de4c5d 250 ('gcc_arm', 'EFM32HG_STK3400'),
group-onsemi 0:098463de4c5d 251 ('gcc_arm', 'EFM32PG_STK3401'),
group-onsemi 0:098463de4c5d 252
group-onsemi 0:098463de4c5d 253 ('ds5_5', 'LPC1768'),
group-onsemi 0:098463de4c5d 254 ('ds5_5', 'LPC11U24'),
group-onsemi 0:098463de4c5d 255 ('ds5_5', 'RZ_A1H'),
group-onsemi 0:098463de4c5d 256
group-onsemi 0:098463de4c5d 257 ('iar', 'LPC1768'),
group-onsemi 0:098463de4c5d 258 ('iar', 'LPC4088_DM'),
group-onsemi 0:098463de4c5d 259 ('iar', 'LPC1347'),
group-onsemi 0:098463de4c5d 260
group-onsemi 0:098463de4c5d 261 ('iar', 'B96B_F446VE'),
group-onsemi 0:098463de4c5d 262 ('iar', 'NUCLEO_F030R8'),
group-onsemi 0:098463de4c5d 263 ('iar', 'NUCLEO_F031K6'),
group-onsemi 0:098463de4c5d 264 ('iar', 'NUCLEO_F042K6'),
group-onsemi 0:098463de4c5d 265 ('iar', 'NUCLEO_F070RB'),
group-onsemi 0:098463de4c5d 266 ('iar', 'NUCLEO_F072RB'),
group-onsemi 0:098463de4c5d 267 ('iar', 'NUCLEO_F091RC'),
group-onsemi 0:098463de4c5d 268 ('iar', 'NUCLEO_F302R8'),
group-onsemi 0:098463de4c5d 269 ('iar', 'NUCLEO_F303K8'),
group-onsemi 0:098463de4c5d 270 ('iar', 'NUCLEO_F303RE'),
group-onsemi 0:098463de4c5d 271 ('iar', 'NUCLEO_F334R8'),
group-onsemi 0:098463de4c5d 272 ('iar', 'NUCLEO_F303ZE'),
group-onsemi 0:098463de4c5d 273 ('iar', 'NUCLEO_F401RE'),
group-onsemi 0:098463de4c5d 274 ('iar', 'NUCLEO_F410RB'),
group-onsemi 0:098463de4c5d 275 ('iar', 'NUCLEO_F411RE'),
group-onsemi 0:098463de4c5d 276 ('iar', 'NUCLEO_F429ZI'),
group-onsemi 0:098463de4c5d 277 ('iar', 'NUCLEO_F446RE'),
group-onsemi 0:098463de4c5d 278 ('iar', 'NUCLEO_F446ZE'),
group-onsemi 0:098463de4c5d 279 ('iar', 'NUCLEO_L011K4'),
group-onsemi 0:098463de4c5d 280 ('iar', 'NUCLEO_L031K6'),
group-onsemi 0:098463de4c5d 281 ('iar', 'NUCLEO_L053R8'),
group-onsemi 0:098463de4c5d 282 ('iar', 'NUCLEO_L073RZ'),
group-onsemi 0:098463de4c5d 283 ('iar', 'NUCLEO_L152RE'),
group-onsemi 0:098463de4c5d 284 ('iar', 'NUCLEO_L432KC'),
group-onsemi 0:098463de4c5d 285 ('iar', 'NUCLEO_L476RG'),
group-onsemi 0:098463de4c5d 286 ('iar', 'DISCO_L053C8'),
group-onsemi 0:098463de4c5d 287 ('iar', 'DISCO_F334C8'),
group-onsemi 0:098463de4c5d 288 ('iar', 'DISCO_F429ZI'),
group-onsemi 0:098463de4c5d 289 ('iar', 'DISCO_F469NI'),
group-onsemi 0:098463de4c5d 290 ('iar', 'DISCO_F746NG'),
group-onsemi 0:098463de4c5d 291 ('iar', 'DISCO_L476VG'),
group-onsemi 0:098463de4c5d 292 ('iar', 'STM32F407'),
group-onsemi 0:098463de4c5d 293 ('iar', 'MTS_MDOT_F405RG'),
group-onsemi 0:098463de4c5d 294 ('iar', 'MTS_MDOT_F411RE'),
group-onsemi 0:098463de4c5d 295 ('iar', 'MAXWSNENV'),
group-onsemi 0:098463de4c5d 296 ('iar', 'MAX32600MBED'),
group-onsemi 0:098463de4c5d 297 ('iar', 'MAX32620HSP'),
group-onsemi 0:098463de4c5d 298 ('iar', 'MOTE_L152RC'),
group-onsemi 0:098463de4c5d 299 ('iar', 'RZ_A1H'),
group-onsemi 0:098463de4c5d 300
group-onsemi 0:098463de4c5d 301 # ('sw4stm32', 'DISCO_F051R8'),
group-onsemi 0:098463de4c5d 302 # ('sw4stm32', 'DISCO_F100RB'),
group-onsemi 0:098463de4c5d 303 ('sw4stm32', 'DISCO_F303VC'),
group-onsemi 0:098463de4c5d 304 ('sw4stm32', 'DISCO_F334C8'),
group-onsemi 0:098463de4c5d 305 # ('sw4stm32', 'DISCO_F401VC'),
group-onsemi 0:098463de4c5d 306 ('sw4stm32', 'DISCO_F407VG'),
group-onsemi 0:098463de4c5d 307 ('sw4stm32', 'DISCO_F429ZI'),
group-onsemi 0:098463de4c5d 308 ('sw4stm32', 'DISCO_F469NI'),
group-onsemi 0:098463de4c5d 309 ('sw4stm32', 'DISCO_F746NG'),
group-onsemi 0:098463de4c5d 310 ('sw4stm32', 'DISCO_L053C8'),
group-onsemi 0:098463de4c5d 311 ('sw4stm32', 'DISCO_L476VG'),
group-onsemi 0:098463de4c5d 312 ('sw4stm32', 'NUCLEO_F030R8'),
group-onsemi 0:098463de4c5d 313 ('sw4stm32', 'NUCLEO_F031K6'),
group-onsemi 0:098463de4c5d 314 ('sw4stm32', 'NUCLEO_F042K6'),
group-onsemi 0:098463de4c5d 315 ('sw4stm32', 'NUCLEO_F070RB'),
group-onsemi 0:098463de4c5d 316 ('sw4stm32', 'NUCLEO_F072RB'),
group-onsemi 0:098463de4c5d 317 ('sw4stm32', 'NUCLEO_F091RC'),
group-onsemi 0:098463de4c5d 318 ('sw4stm32', 'NUCLEO_F103RB'),
group-onsemi 0:098463de4c5d 319 ('sw4stm32', 'NUCLEO_F302R8'),
group-onsemi 0:098463de4c5d 320 ('sw4stm32', 'NUCLEO_F303K8'),
group-onsemi 0:098463de4c5d 321 ('sw4stm32', 'NUCLEO_F303RE'),
group-onsemi 0:098463de4c5d 322 ('sw4stm32', 'NUCLEO_F334R8'),
group-onsemi 0:098463de4c5d 323 ('sw4stm32', 'NUCLEO_F401RE'),
group-onsemi 0:098463de4c5d 324 ('sw4stm32', 'NUCLEO_F410RB'),
group-onsemi 0:098463de4c5d 325 ('sw4stm32', 'NUCLEO_F411RE'),
group-onsemi 0:098463de4c5d 326 ('sw4stm32', 'NUCLEO_F429ZI'),
group-onsemi 0:098463de4c5d 327 ('sw4stm32', 'NUCLEO_F446RE'),
group-onsemi 0:098463de4c5d 328 ('sw4stm32', 'NUCLEO_F446ZE'),
group-onsemi 0:098463de4c5d 329 ('sw4stm32', 'NUCLEO_L011K4'),
group-onsemi 0:098463de4c5d 330 ('sw4stm32', 'NUCLEO_L053R8'),
group-onsemi 0:098463de4c5d 331 ('sw4stm32', 'NUCLEO_L073RZ'),
group-onsemi 0:098463de4c5d 332 ('sw4stm32', 'NUCLEO_L152RE'),
group-onsemi 0:098463de4c5d 333 ('sw4stm32', 'NUCLEO_L432KC'),
group-onsemi 0:098463de4c5d 334 ('sw4stm32', 'NUCLEO_L476RG'),
group-onsemi 0:098463de4c5d 335 ('sw4stm32', 'NUCLEO_F031K6'),
group-onsemi 0:098463de4c5d 336 ('sw4stm32', 'NUCLEO_F042K6'),
group-onsemi 0:098463de4c5d 337 ('sw4stm32', 'NUCLEO_F303ZE'),
group-onsemi 0:098463de4c5d 338 ('sw4stm32', 'NUCLEO_F410RB'),
group-onsemi 0:098463de4c5d 339
group-onsemi 0:098463de4c5d 340 ('e2studio', 'RZ_A1H'),
group-onsemi 0:098463de4c5d 341 # Removed following item to avoid script error
group-onsemi 0:098463de4c5d 342 #(None, None),
group-onsemi 0:098463de4c5d 343 ]:
group-onsemi 0:098463de4c5d 344 print '\n=== Exporting to "%s::%s" ===' % (toolchain, target)
group-onsemi 0:098463de4c5d 345 test_export(toolchain, target)
group-onsemi 0:098463de4c5d 346
group-onsemi 0:098463de4c5d 347 print "\n=== Test error messages ==="
group-onsemi 0:098463de4c5d 348 test_export('lpcxpresso', 'LPC11U24', expected_error='lpcxpresso')