forked from micropython/micropython
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: IFX-Anusha <Anusha.TR@infineon.com>
- Loading branch information
1 parent
4b35afa
commit e82ec0e
Showing
3 changed files
with
64 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import machine | ||
|
||
|
||
def hard_reset(): | ||
machine.reset() | ||
|
||
|
||
def soft_reset(): | ||
machine.soft_reset() | ||
|
||
|
||
def hard_reset_validate(): | ||
pass | ||
|
||
|
||
def soft_reset_validate(): | ||
pass | ||
|
||
|
||
def freq_get_validate(): | ||
freq = machine.freq() | ||
if freq == 10000000: | ||
print("Default Frequency") | ||
|
||
|
||
def reset_cause(): | ||
machine.reset() | ||
reset = machine.reset_cause() | ||
# reset check comments..call each reset and then check the reset cause |
Empty file.