Skip to content

Commit 3f8d89e

Browse files
committed
Updated to Arduino 1.5.x+ library specification.
1 parent b9fcbbf commit 3f8d89e

File tree

5 files changed

+25
-46
lines changed

5 files changed

+25
-46
lines changed

.gitignore

+8-28
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,8 @@
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

examples/WatchdogTester/WatchdogTester.ino

+6-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
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;
107
const int LOOP_DELAY_MORE = 300;
118
const int LOOP_DELAY_LESS = 200;
129

library.properties

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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=*

Watchdog.cpp src/Watchdog.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
// Authors:
55
// Peter Polidoro [email protected]
66
// ----------------------------------------------------------------------------
7-
87
#include "Watchdog.h"
98

9+
1010
Watchdog::Watchdog()
1111
{
1212
system_reset_ = false;

Watchdog.h src/Watchdog.h

+1-8
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,10 @@
44
// Authors:
55
// Peter Polidoro [email protected]
66
// ----------------------------------------------------------------------------
7-
87
#ifndef WATCHDOG_H
98
#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>
1510
#include <avr/wdt.h>
16-
#include "Streaming.h"
1711

1812

1913
class Watchdog
@@ -51,4 +45,3 @@ inline void Watchdog::isr()
5145
}
5246

5347
#endif
54-

0 commit comments

Comments
 (0)