Azure Sphere MT3620 M4 API Reference Manual
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Enum

This section introduces the enumerations that LP should configure before entering LP. More...

Overview

This section introduces the enumerations that LP should configure before entering LP.

Enumerations

enum  dslp_check {
  PRE_DEEP_SLEEP = 0,
  POST_DEEP_SLEEP
}
 DSLP enter/exit stage definition Before entering DSLP, user should use the PRE_DEEP_SLEEP parameter to call mtk_os_hal_lp_dslp_check() to clear deep sleep bit. More...
 
enum  lp_scenario {
  CPU_CLOCK_GATING = 0,
  LEGACY_SLEEP,
  DEEP_SLEEP
}
 LP three scenarios definition Users should select the following parameters when entering related low power scenario. More...
 
enum  lp_wakeup_src {
  EINT_WAKEUP_SRC_0 = (1 << 0),
  EINT_WAKEUP_SRC_1 = (1 << 1),
  EINT_WAKEUP_SRC_2 = (1 << 2),
  EINT_WAKEUP_SRC_3 = (1 << 3),
  EINT_WAKEUP_SRC_4 = (1 << 4),
  EINT_WAKEUP_SRC_5 = (1 << 5),
  EINT_WAKEUP_SRC_6 = (1 << 6),
  EINT_WAKEUP_SRC_7 = (1 << 7),
  EINT_WAKEUP_SRC_8 = (1 << 8),
  EINT_WAKEUP_SRC_9 = (1 << 9),
  EINT_WAKEUP_SRC_10 = (1 << 10),
  EINT_WAKEUP_SRC_11 = (1 << 11),
  EINT_WAKEUP_SRC_12 = (1 << 12),
  EINT_WAKEUP_SRC_13 = (1 << 13),
  EINT_WAKEUP_SRC_14 = (1 << 14),
  EINT_WAKEUP_SRC_15 = (1 << 15),
  EINT_WAKEUP_SRC_16 = (1 << 16),
  EINT_WAKEUP_SRC_17 = (1 << 17),
  EINT_WAKEUP_SRC_18 = (1 << 18),
  EINT_WAKEUP_SRC_19 = (1 << 19),
  EINT_WAKEUP_SRC_20 = (1 << 20),
  EINT_WAKEUP_SRC_21 = (1 << 21),
  EINT_WAKEUP_SRC_22 = (1 << 22),
  EINT_WAKEUP_SRC_23 = (1 << 23),
  GPT3_WAKEUP_SRC_24 = (1 << 24),
  WAKEUP_SRC_MAX = 25
}
 LP wake-up source definition Users should select the following parameter to configure wake-up source in mtk_os_hal_lp_enter(). More...
 

Enumeration Type Documentation

enum dslp_check

DSLP enter/exit stage definition Before entering DSLP, user should use the PRE_DEEP_SLEEP parameter to call mtk_os_hal_lp_dslp_check() to clear deep sleep bit.


When the system has resumed, users can use the POST_DEEP_SLEEP parameter to check whether the system resumes from DSLP scenario.

Enumerator
PRE_DEEP_SLEEP 

It is used before entering DSLP stage.

POST_DEEP_SLEEP 

It is used after exiting DSLP stage.

LP three scenarios definition Users should select the following parameters when entering related low power scenario.

Enumerator
CPU_CLOCK_GATING 

CPU Clock Gating is 0.

LEGACY_SLEEP 

Legacy Sleep is 1.

DEEP_SLEEP 

Deep Sleep is 2.

LP wake-up source definition Users should select the following parameter to configure wake-up source in mtk_os_hal_lp_enter().

Enumerator
EINT_WAKEUP_SRC_0 

Wake-up source EINT0 is 0.

EINT_WAKEUP_SRC_1 

Wake-up source EINT1 is 1.

EINT_WAKEUP_SRC_2 

Wake-up source EINT2 is 2.

EINT_WAKEUP_SRC_3 

Wake-up source EINT3 is 3.

EINT_WAKEUP_SRC_4 

Wake-up source EINT4 is 4.

EINT_WAKEUP_SRC_5 

Wake-up source EINT5 is 5.

EINT_WAKEUP_SRC_6 

Wake-up source EINT6 is 6.

EINT_WAKEUP_SRC_7 

Wake-up source EINT7 is 7.

EINT_WAKEUP_SRC_8 

Wake-up source EINT8 is 8.

EINT_WAKEUP_SRC_9 

Wake-up source EINT9 is 9.

EINT_WAKEUP_SRC_10 

Wake-up source EINT10 is 10.

EINT_WAKEUP_SRC_11 

Wake-up source EINT11 is 11.

EINT_WAKEUP_SRC_12 

Wake-up source EINT12 is 12.

EINT_WAKEUP_SRC_13 

Wake-up source EINT13 is 13.

EINT_WAKEUP_SRC_14 

Wake-up source EINT14 is 14.

EINT_WAKEUP_SRC_15 

Wake-up source EINT15 is 15.

EINT_WAKEUP_SRC_16 

Wake-up source EINT16 is 16.

EINT_WAKEUP_SRC_17 

Wake-up source EINT17 is 17.

EINT_WAKEUP_SRC_18 

Wake-up source EINT18 is 18.

EINT_WAKEUP_SRC_19 

Wake-up source EINT19 is 19.

EINT_WAKEUP_SRC_20 

Wake-up source EINT20 is 20.

EINT_WAKEUP_SRC_21 

Wake-up source EINT21 is 21.

EINT_WAKEUP_SRC_22 

Wake-up source EINT22 is 22.

EINT_WAKEUP_SRC_23 

Wake-up source EINT23 is 23.

GPT3_WAKEUP_SRC_24 

Wake-up source GPT3 is 24.

WAKEUP_SRC_MAX 

Total wake-up source number is 25.