Keyboard firmwares for Atmel AVR and Cortex-M
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

__init__.py 2.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. """
  2. mbed SDK
  3. Copyright (c) 2011-2013 ARM Limited
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. """
  14. from host_registry import HostRegistry
  15. # Host test supervisors
  16. from echo import EchoTest
  17. from rtc_auto import RTCTest
  18. from stdio_auto import StdioTest
  19. from hello_auto import HelloTest
  20. from detect_auto import DetectPlatformTest
  21. from default_auto import DefaultAuto
  22. from dev_null_auto import DevNullTest
  23. from wait_us_auto import WaitusTest
  24. from tcpecho_server_auto import TCPEchoServerTest
  25. from udpecho_server_auto import UDPEchoServerTest
  26. from tcpecho_client_auto import TCPEchoClientTest
  27. from udpecho_client_auto import UDPEchoClientTest
  28. # Populate registry with supervising objects
  29. HOSTREGISTRY = HostRegistry()
  30. HOSTREGISTRY.register_host_test("echo", EchoTest())
  31. HOSTREGISTRY.register_host_test("default", DefaultAuto())
  32. HOSTREGISTRY.register_host_test("rtc_auto", RTCTest())
  33. HOSTREGISTRY.register_host_test("hello_auto", HelloTest())
  34. HOSTREGISTRY.register_host_test("stdio_auto", StdioTest())
  35. HOSTREGISTRY.register_host_test("detect_auto", DetectPlatformTest())
  36. HOSTREGISTRY.register_host_test("default_auto", DefaultAuto())
  37. HOSTREGISTRY.register_host_test("wait_us_auto", WaitusTest())
  38. HOSTREGISTRY.register_host_test("dev_null_auto", DevNullTest())
  39. HOSTREGISTRY.register_host_test("tcpecho_server_auto", TCPEchoServerTest())
  40. HOSTREGISTRY.register_host_test("udpecho_server_auto", UDPEchoServerTest())
  41. HOSTREGISTRY.register_host_test("tcpecho_client_auto", TCPEchoClientTest())
  42. HOSTREGISTRY.register_host_test("udpecho_client_auto", UDPEchoClientTest())
  43. ###############################################################################
  44. # Functional interface for test supervisor registry
  45. ###############################################################################
  46. def get_host_test(ht_name):
  47. return HOSTREGISTRY.get_host_test(ht_name)
  48. def is_host_test(ht_name):
  49. return HOSTREGISTRY.is_host_test(ht_name)