File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
targets/TARGET_Maxim/TARGET_MAX32625 Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 11/*******************************************************************************
2- * Copyright (C) 2016 Maxim Integrated Products, Inc., All Rights Reserved.
2+ * Copyright (C) Maxim Integrated Products, Inc., All Rights Reserved.
33 *
44 * Permission is hereby granted, free of charge, to any person obtaining a
55 * copy of this software and associated documentation files (the "Software"),
3333
3434#include "sleep_api.h"
3535#include "lp.h"
36+ #include "clkman.h"
3637
3738void hal_sleep (void )
3839{
@@ -42,5 +43,7 @@ void hal_sleep(void)
4243// Low-power stop mode
4344void hal_deepsleep (void )
4445{
46+ MXC_CLKMAN -> clk_gate_ctrl1 &= ~MXC_F_CLKMAN_CLK_GATE_CTRL1_TIMER0_CLK_GATER ;
4547 hal_sleep ();
48+ MXC_CLKMAN -> clk_gate_ctrl1 |= MXC_F_CLKMAN_CLK_GATE_CTRL1_TIMER0_CLK_GATER ;
4649}
You can’t perform that action at this time.
0 commit comments