Numworks Epsilon  1.4.1
Graphing Calculator Operating System
wakeup.h
Go to the documentation of this file.
1 #ifndef ION_DEVICE_WAKE_UP_H
2 #define ION_DEVICE_WAKE_UP_H
3 
4 #include "regs/regs.h"
5 
6 namespace Ion {
7 namespace WakeUp {
8 namespace Device {
9 
10 /* All wakeup functions can be called together without overwriting the same
11  * register. All togethed, they will set SYSCFG and EXTi registers as follow:
12  *
13  * GPIO Pin Number|EXTI_EMR|EXTI_FTSR|EXTI_RTSR|EXTICR1|EXTICR2|EXTICR3| Wake up
14  * ---------------+--------+---------+---------+-------+-------+-------+-------------------------
15  * 0 | 1 | 0 | 1 | A | ***** | ***** | Rising edge GPIO A pin 0
16  * 1 | 1 | 1 | 0 | C | ***** | ***** | Falling edge GPIO C pin 1
17  * 2 | 0 | 0 | 0 | A | ***** | ***** |
18  * 3 | 0 | 0 | 0 | A | ***** | ***** |
19  * 4 | 0 | 0 | 0 | ***** | A | ***** |
20  * 5 | 0 | 0 | 0 | ***** | A | ***** |
21  * 6 | 0 | 0 | 0 | ***** | A | ***** |
22  * 7 | 0 | 0 | 0 | ***** | A | ***** |
23  * 8 | 0 | 0 | 0 | ***** | ***** | A |
24  * 9 | 1 | 1 | 1 | ***** | ***** | A | Falling/Rising edge GPIO A pin 9
25  * 10 | 0 | 0 | 0 | ***** | ***** | A |
26  * 11 | 0 | 0 | 0 | ***** | ***** | A |
27  * 12 | 0 | 0 | 0 | ***** | ***** | ***** |
28  * 13 | 0 | 0 | 0 | ***** | ***** | ***** |
29  * 14 | 0 | 0 | 0 | ***** | ***** | ***** |
30  * 15 | 0 | 0 | 0 | ***** | ***** | ***** |
31  */
32 
33 void onChargingEvent();
34 void onUSBPlugging();
35 void onPowerKeyDown();
36 
37 }
38 }
39 }
40 
41 #endif
void onUSBPlugging()
Definition: wakeup.cpp:27
void onChargingEvent()
Definition: wakeup.cpp:11
void onPowerKeyDown()
Definition: wakeup.cpp:41
Definition: backlight.h:6