Development mbed library for MAX32630FTHR
Dependents: blinky_max32630fthr
tools/host_tests/__init__.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 | |
switches | 0:5c4d7b2438d3 | 18 | from host_registry import HostRegistry |
switches | 0:5c4d7b2438d3 | 19 | |
switches | 0:5c4d7b2438d3 | 20 | # Host test supervisors |
switches | 0:5c4d7b2438d3 | 21 | from echo import EchoTest |
switches | 0:5c4d7b2438d3 | 22 | from rtc_auto import RTCTest |
switches | 0:5c4d7b2438d3 | 23 | from stdio_auto import StdioTest |
switches | 0:5c4d7b2438d3 | 24 | from hello_auto import HelloTest |
switches | 0:5c4d7b2438d3 | 25 | from detect_auto import DetectPlatformTest |
switches | 0:5c4d7b2438d3 | 26 | from default_auto import DefaultAuto |
switches | 0:5c4d7b2438d3 | 27 | from dev_null_auto import DevNullTest |
switches | 0:5c4d7b2438d3 | 28 | from wait_us_auto import WaitusTest |
switches | 0:5c4d7b2438d3 | 29 | from tcpecho_server_auto import TCPEchoServerTest |
switches | 0:5c4d7b2438d3 | 30 | from udpecho_server_auto import UDPEchoServerTest |
switches | 0:5c4d7b2438d3 | 31 | from tcpecho_client_auto import TCPEchoClientTest |
switches | 0:5c4d7b2438d3 | 32 | from udpecho_client_auto import UDPEchoClientTest |
switches | 0:5c4d7b2438d3 | 33 | from wfi_auto import WFITest |
switches | 0:5c4d7b2438d3 | 34 | from serial_nc_rx_auto import SerialNCRXTest |
switches | 0:5c4d7b2438d3 | 35 | from serial_nc_tx_auto import SerialNCTXTest |
switches | 0:5c4d7b2438d3 | 36 | from serial_complete_auto import SerialCompleteTest |
switches | 0:5c4d7b2438d3 | 37 | |
switches | 0:5c4d7b2438d3 | 38 | # Populate registry with supervising objects |
switches | 0:5c4d7b2438d3 | 39 | HOSTREGISTRY = HostRegistry() |
switches | 0:5c4d7b2438d3 | 40 | HOSTREGISTRY.register_host_test("echo", EchoTest()) |
switches | 0:5c4d7b2438d3 | 41 | HOSTREGISTRY.register_host_test("default", DefaultAuto()) |
switches | 0:5c4d7b2438d3 | 42 | HOSTREGISTRY.register_host_test("rtc_auto", RTCTest()) |
switches | 0:5c4d7b2438d3 | 43 | HOSTREGISTRY.register_host_test("hello_auto", HelloTest()) |
switches | 0:5c4d7b2438d3 | 44 | HOSTREGISTRY.register_host_test("stdio_auto", StdioTest()) |
switches | 0:5c4d7b2438d3 | 45 | HOSTREGISTRY.register_host_test("detect_auto", DetectPlatformTest()) |
switches | 0:5c4d7b2438d3 | 46 | HOSTREGISTRY.register_host_test("default_auto", DefaultAuto()) |
switches | 0:5c4d7b2438d3 | 47 | HOSTREGISTRY.register_host_test("wait_us_auto", WaitusTest()) |
switches | 0:5c4d7b2438d3 | 48 | HOSTREGISTRY.register_host_test("dev_null_auto", DevNullTest()) |
switches | 0:5c4d7b2438d3 | 49 | HOSTREGISTRY.register_host_test("tcpecho_server_auto", TCPEchoServerTest()) |
switches | 0:5c4d7b2438d3 | 50 | HOSTREGISTRY.register_host_test("udpecho_server_auto", UDPEchoServerTest()) |
switches | 0:5c4d7b2438d3 | 51 | HOSTREGISTRY.register_host_test("tcpecho_client_auto", TCPEchoClientTest()) |
switches | 0:5c4d7b2438d3 | 52 | HOSTREGISTRY.register_host_test("udpecho_client_auto", UDPEchoClientTest()) |
switches | 0:5c4d7b2438d3 | 53 | HOSTREGISTRY.register_host_test("wfi_auto", WFITest()) |
switches | 0:5c4d7b2438d3 | 54 | HOSTREGISTRY.register_host_test("serial_nc_rx_auto", SerialNCRXTest()) |
switches | 0:5c4d7b2438d3 | 55 | HOSTREGISTRY.register_host_test("serial_nc_tx_auto", SerialNCTXTest()) |
switches | 0:5c4d7b2438d3 | 56 | HOSTREGISTRY.register_host_test("serial_complete_auto", SerialCompleteTest()) |
switches | 0:5c4d7b2438d3 | 57 | |
switches | 0:5c4d7b2438d3 | 58 | ############################################################################### |
switches | 0:5c4d7b2438d3 | 59 | # Functional interface for test supervisor registry |
switches | 0:5c4d7b2438d3 | 60 | ############################################################################### |
switches | 0:5c4d7b2438d3 | 61 | |
switches | 0:5c4d7b2438d3 | 62 | |
switches | 0:5c4d7b2438d3 | 63 | def get_host_test(ht_name): |
switches | 0:5c4d7b2438d3 | 64 | return HOSTREGISTRY.get_host_test(ht_name) |
switches | 0:5c4d7b2438d3 | 65 | |
switches | 0:5c4d7b2438d3 | 66 | def is_host_test(ht_name): |
switches | 0:5c4d7b2438d3 | 67 | return HOSTREGISTRY.is_host_test(ht_name) |