Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
UnexpectedResetTest Class Reference
Inherits mbed_host_tests::BaseHostTest.
Public Member Functions | |
def | setup |
def | teardown |
def | unexpected_reset_test |
Detailed Description
This test checks that a device's RTC keeps count through a reset It does this by setting the RTC's time, triggering a reset, delaying and then reading the RTC's time again to ensure that the RTC is still counting.
Number of times to reset the device in this test
Definition at line 23 of file unexpected_reset.py.
Member Function Documentation
def setup | ( | self ) |
Register callbacks required for the test
Definition at line 37 of file unexpected_reset.py.
def teardown | ( | self ) |
No work to do here
Definition at line 55 of file unexpected_reset.py.
def unexpected_reset_test | ( | self ) |
Generator for running the reset test This function calls yield to wait for the next event from the device. If the device gives the wrong response, then the generator terminates by returing which raises a StopIteration exception and fails the test.
Definition at line 59 of file unexpected_reset.py.
Generated on Tue Jul 12 2022 12:22:58 by
