File tree Expand file tree Collapse file tree 3 files changed +31
-2
lines changed
SampleProjects/TestSomething/test Expand file tree Collapse file tree 3 files changed +31
-2
lines changed Original file line number Diff line number Diff line change @@ -7,17 +7,18 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77
88## [ Unreleased]
99### Added
10+ - Allow use of watchdog timer in application code (though it doesn't do anything)
1011- Show output from successful compile
1112- ` --min-free-space=N ` command-line argument to fail if free space is below requred value
13+ - Add ` _BV() ` macro.
1214
1315### Changed
1416- Fix copy/paste error to allow additional warnings for a platform
1517- Properly report compile errors in GitHub Actions (#296 )
1618- Put build artifacts in a separate directory to reduce clutter.
17- - Change 266 files from CRLF to LF.
18- - Add ` _BV() ` macro.
1919- Replace ` #define yield() _NOP() ` with ` inline void yield() { _NOP(); } ` so that other code can define a ` yield() ` function.
2020- Update .gitattributes so we have consistent line endings
21+ - Change 266 files from CRLF to LF.
2122- Run tests on push as well as on a pull request so developers can see impact
2223- Apply "rule of three" to Client copy constructor and copy assignment operator
2324
Original file line number Diff line number Diff line change 1+ #include < Arduino.h>
2+ #include < ArduinoUnitTests.h>
3+ #include < avr/wdt.h>
4+
5+ unittest (wdt) {
6+ wdt_disable ();
7+ wdt_enable (WDTO_8S);
8+ wdt_reset ();
9+ assertTrue (true );
10+ }
11+
12+ unittest_main ()
Original file line number Diff line number Diff line change 1+ // Stub for testing that doesn't do anything (but at least compiles!)
2+
3+ #define wdt_disable () (void)0
4+ #define wdt_enable (timeout ) (void)0
5+ #define wdt_reset () (void)0
6+
7+ #define WDTO_15MS 0
8+ #define WDTO_30MS 1
9+ #define WDTO_60MS 2
10+ #define WDTO_120MS 3
11+ #define WDTO_250MS 4
12+ #define WDTO_500MS 5
13+ #define WDTO_1S 6
14+ #define WDTO_2S 7
15+ #define WDTO_4S 8
16+ #define WDTO_8S 9
You can’t perform that action at this time.
0 commit comments