File tree 5 files changed +25
-46
lines changed
5 files changed +25
-46
lines changed Original file line number Diff line number Diff line change 1
- # Compiled Object files
2
- * .slo
3
- * .lo
4
- * .o
5
- * .obj
6
-
7
- # Precompiled Headers
8
- * .gch
9
- * .pch
10
-
11
- # Compiled Dynamic libraries
12
- * .so
13
- * .dylib
14
- * .dll
15
-
16
- # Fortran module files
17
- * .mod
18
-
19
- # Compiled Static libraries
20
- * .lai
21
- * .la
22
- * .a
23
- * .lib
24
-
25
- # Executables
26
- * .exe
27
- * .out
28
- * .app
1
+ .DS_Store
2
+ /.idea
3
+ /build
4
+ /bin
5
+ /lib
6
+ /sftp-config.json
7
+ .tags
8
+ .tags_sorted_by_file
Original file line number Diff line number Diff line change 1
- #if defined(ARDUINO) && ARDUINO >= 100
2
- #include " Arduino.h"
3
- #else
4
- #include " WProgram.h"
5
- #endif
6
- #include " Streaming.h"
7
- #include " Watchdog.h"
8
-
9
- const int BAUDRATE = 115200 ;
1
+ #include < Arduino.h>
2
+ #include < Streaming.h>
3
+ #include < Watchdog.h>
4
+
5
+
6
+ const long BAUDRATE = 115200 ;
10
7
const int LOOP_DELAY_MORE = 300 ;
11
8
const int LOOP_DELAY_LESS = 200 ;
12
9
Original file line number Diff line number Diff line change
1
+ name =Watchdog
2
+ version =1.0.0
3
+ author =Peter Polidoro <
[email protected] >
4
+ maintainer =Peter Polidoro <
[email protected] >
5
+ sentence =Use Watchdog to execute a function and/or reset the microcontroller.
6
+ paragraph =Like this project? Please star it on GitHub!
7
+ category =Device Control
8
+ url =https://github.com/janelia-arduino/Watchdog.git
9
+ architectures =*
Original file line number Diff line number Diff line change 4
4
// Authors:
5
5
// Peter Polidoro [email protected]
6
6
// ----------------------------------------------------------------------------
7
-
8
7
#include " Watchdog.h"
9
8
9
+
10
10
Watchdog::Watchdog ()
11
11
{
12
12
system_reset_ = false ;
Original file line number Diff line number Diff line change 4
4
// Authors:
5
5
// Peter Polidoro [email protected]
6
6
// ----------------------------------------------------------------------------
7
-
8
7
#ifndef WATCHDOG_H
9
8
#define WATCHDOG_H
10
- #if defined(ARDUINO) && ARDUINO >= 100
11
- #include " Arduino.h"
12
- #else
13
- #include " WProgram.h"
14
- #endif
9
+ #include < Arduino.h>
15
10
#include < avr/wdt.h>
16
- #include " Streaming.h"
17
11
18
12
19
13
class Watchdog
@@ -51,4 +45,3 @@ inline void Watchdog::isr()
51
45
}
52
46
53
47
#endif
54
-
You can’t perform that action at this time.
0 commit comments