source: rtos_arduino/trunk/arduino_lib/hardware/arduino/samd/libraries/EnergySaving/src/EnergySaving.h@ 224

Last change on this file since 224 was 224, checked in by ertl-honda, 8 years ago

1.7.10のファイルに更新

File size: 453 bytes
Line 
1#ifndef energy_saving_h
2#define energy_saving_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
11typedef void (*voidFuncPtr)( void ) ;
12
13class EnergySaving {
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.