File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
targets/TARGET_Maxim/TARGET_MAX32620C Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1
1
/*******************************************************************************
2
- * Copyright (C) 2017 Maxim Integrated Products, Inc., All Rights Reserved.
2
+ * Copyright (C) Maxim Integrated Products, Inc., All Rights Reserved.
3
3
*
4
4
* Permission is hereby granted, free of charge, to any person obtaining a
5
5
* copy of this software and associated documentation files (the "Software"),
33
33
34
34
#include "sleep_api.h"
35
35
#include "lp.h"
36
+ #include "clkman.h"
36
37
37
38
void hal_sleep (void )
38
39
{
@@ -42,5 +43,7 @@ void hal_sleep(void)
42
43
// Low-power stop mode
43
44
void hal_deepsleep (void )
44
45
{
46
+ MXC_CLKMAN -> clk_gate_ctrl1 &= ~MXC_F_CLKMAN_CLK_GATE_CTRL1_TIMER0_CLK_GATER ;
45
47
hal_sleep ();
48
+ MXC_CLKMAN -> clk_gate_ctrl1 |= MXC_F_CLKMAN_CLK_GATE_CTRL1_TIMER0_CLK_GATER ;
46
49
}
You can’t perform that action at this time.
0 commit comments