Last change
on this file since 175 was 136, checked in by ertl-honda, 9 years ago |
ライブラリとOS及びベーシックなサンプルの追加.
|
File size:
429 bytes
|
Line | |
---|
1 | #ifndef rest_h
|
---|
2 | #define rest_h
|
---|
3 |
|
---|
4 |
|
---|
5 | #include <sam.h>
|
---|
6 | #include <Arduino.h>
|
---|
7 |
|
---|
8 | #define WAKE_EXT_INTERRUPT 1
|
---|
9 | #define WAKE_RTC_ALARM 2
|
---|
10 |
|
---|
11 | typedef void (*voidFuncPtr)( void ) ;
|
---|
12 |
|
---|
13 | class rest {
|
---|
14 | public:
|
---|
15 | //sleep();
|
---|
16 | void begin(unsigned int mode, unsigned int inter_pin, voidFuncPtr callback);
|
---|
17 | void begin(unsigned int mode);
|
---|
18 | void standby(void);
|
---|
19 |
|
---|
20 | private:
|
---|
21 | void set_clk(void);
|
---|
22 | void enable_eic_wake(unsigned int inter_pin);
|
---|
23 |
|
---|
24 | };
|
---|
25 |
|
---|
26 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.