Skip to content

Commit 7e99a75

Browse files
committed
[MAX32620HSP] Fixed deepsleep issue using IAR.
1 parent 5a34a2b commit 7e99a75

File tree

1 file changed

+1
-3
lines changed
  • targets/TARGET_Maxim/TARGET_MAX32620

1 file changed

+1
-3
lines changed

targets/TARGET_Maxim/TARGET_MAX32620/sleep.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,12 @@
3232
*/
3333

3434
#include "sleep_api.h"
35-
#include "cmsis.h"
3635
#include "pwrman_regs.h"
3736
#include "pwrseq_regs.h"
3837
#include "clkman_regs.h"
3938
#include "ioman_regs.h"
4039
#include "rtc_regs.h"
4140
#include "usb_regs.h"
42-
#include "wait_api.h"
4341

4442
#define REVISION_A3 2
4543
#define REVISION_A4 3
@@ -178,7 +176,7 @@ void deepsleep(void)
178176
MXC_PWRSEQ->reg1 |= MXC_F_PWRSEQ_REG1_PWR_MBUS_GATE;
179177

180178
// Dummy read to make sure SSB writes are complete
181-
MXC_PWRSEQ->reg0;
179+
MXC_PWRSEQ->reg0 = MXC_PWRSEQ->reg0;
182180

183181
if (part_rev == REVISION_A4) {
184182
// Note: ARM deep-sleep requires a specific sequence to clear event latches,

0 commit comments

Comments
 (0)