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.
RtcResetTest Class Reference
Inherits mbed_host_tests::BaseHostTest.
Public Member Functions | |
| def | setup |
| def | teardown |
| def | rtc_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.
Start of the RTC
Definition at line 23 of file rtc_reset.py.
Member Function Documentation
| def rtc_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 61 of file rtc_reset.py.
| def setup | ( | self ) |
Register callbacks required for the test
Definition at line 39 of file rtc_reset.py.
| def teardown | ( | self ) |
No work to do here
Definition at line 57 of file rtc_reset.py.
Generated on Tue Jul 12 2022 12:47:32 by
1.7.2