sleep.h
Go to the documentation of this file.
1 
33 /*
34  * Support and FAQ: visit <a href="https://www.microchip.com/support/">Microchip Support</a>
35  */
36 
37 #ifndef SLEEP_H
38 #define SLEEP_H
39 
40 #ifdef __cplusplus
41 extern "C" {
42 #endif
43 
44 #include <compiler.h>
45 
61 #if defined(__DOXYGEN__)
62 
66 #endif
67 /* SAM3,SAM4,SAMG,SAMV,SAME and SAMS series */
68 #if (SAM3S || SAM3N || SAM3XA || SAM3U || SAM4S || SAM4E || SAM4N || SAM4C || \
69  SAM4CM || SAM4CP || SAMG || SAMV71 || SAME70 || SAMS70)
70 # define SAM_PM_SMODE_ACTIVE 0
71 # define SAM_PM_SMODE_SLEEP_WFE 1
72 # define SAM_PM_SMODE_SLEEP_WFI 2
73 # define SAM_PM_SMODE_WAIT_FAST 3
74 # define SAM_PM_SMODE_WAIT 4
75 #if (!(SAMG51 || SAMG53 || SAMG54))
76 # define SAM_PM_SMODE_BACKUP 5
77 #endif
78 
80 #define SCR_SLEEPDEEP (0x1 << 2)
81 
87 typedef void (*pmc_callback_wakeup_clocks_restored_t) (void);
88 
93 void pmc_sleep(int sleep_mode);
94 
101 bool pmc_is_wakeup_clocks_restored(void);
102 
106 void pmc_wait_wakeup_clocks_restore(
107  pmc_callback_wakeup_clocks_restored_t callback);
108 
109 #endif
110 
112 
113 #ifdef __cplusplus
114 }
115 #endif
116 
117 #endif /* SLEEP_H */
Commonly used includes, types and macros.


inertial_sense_ros
Author(s):
autogenerated on Sat Sep 19 2020 03:19:05