File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -1038,6 +1038,19 @@ def flash_image_check(args):
10381038 )
10391039
10401040
1041+ def reset_cmos (rte , args ):
1042+ """
1043+ Resets the CMOS of the Device Under Test (DUT).
1044+ Args:
1045+ rte (object): The object representing the relay control and power supply interface.
1046+ args (object): Arguments that may contain additional parameters (not used in this function).
1047+ Returns:
1048+ None
1049+ """
1050+ print (f"Clearing CMOS..." )
1051+ rte .reset_cmos ()
1052+
1053+
10411054# Main function
10421055def main ():
10431056 parser = argparse .ArgumentParser (
@@ -1265,6 +1278,10 @@ def main():
12651278 "pwr_led" , help = "Check the state of the DUT power LED"
12661279 )
12671280
1281+ cmos_reset_subparser = pwr_subparsers .add_parser (
1282+ "reset_cmos" , help = "Reset the DUT CMOS"
1283+ )
1284+
12681285 # GPIO subcommands
12691286 gpio_subparsers = gpio_parser .add_subparsers (
12701287 title = "subcommands" , dest = "gpio_cmd"
@@ -1520,6 +1537,8 @@ def main():
15201537 psu_off (rte , args )
15211538 elif args .psu_cmd == "get" :
15221539 psu_get (rte , args )
1540+ elif args .pwr_cmd == "reset_cmos" :
1541+ reset_cmos (rte , args )
15231542 elif args .rte_cmd == "serial" :
15241543 open_dut_serial (rte , args )
15251544 elif args .rte_cmd == "spi" :
You can’t perform that action at this time.
0 commit comments