File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
ports/stm/common-hal/alarm Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 31
31
#include "lib/utils/interrupt_char.h"
32
32
33
33
#include "shared-bindings/alarm/__init__.h"
34
+ #include "shared-bindings/alarm/SleepMemory.h"
34
35
#include "shared-bindings/alarm/pin/PinAlarm.h"
35
36
#include "shared-bindings/alarm/time/TimeAlarm.h"
36
37
39
40
#include "supervisor/port.h"
40
41
#include "supervisor/shared/workflow.h"
41
42
43
+ // Singleton instance of SleepMemory.
44
+ const alarm_sleep_memory_obj_t alarm_sleep_memory_obj = {
45
+ .base = {
46
+ .type = & alarm_sleep_memory_type ,
47
+ },
48
+ };
49
+
42
50
STATIC uint8_t true_deep_wake_reason ;
43
51
STATIC mp_obj_t most_recent_alarm ;
44
52
Original file line number Diff line number Diff line change 29
29
30
30
#include "common-hal/alarm/SleepMemory.h"
31
31
32
- const alarm_sleep_memory_obj_t alarm_sleep_memory_obj ;
32
+ extern const alarm_sleep_memory_obj_t alarm_sleep_memory_obj ;
33
33
34
34
#define STM_WAKEUP_UNDEF 0
35
35
#define STM_WAKEUP_GPIO 1
You can’t perform that action at this time.
0 commit comments