File tree 4 files changed +10
-5
lines changed
SampleProjects/TestSomething/test
4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
30
30
- Warnings about directory name mismatches are now based on proper comparison of strings
31
31
- Now using the recommended "stable" URL for the ` esp32 ` board family
32
32
- ` esp8266:huzzah ` options updated as per upstream
33
+ - Errors about ` '_NOP' was not declared in this scope ` (test added)
33
34
34
35
### Security
35
36
Original file line number Diff line number Diff line change @@ -282,6 +282,12 @@ unittest(shift_out) {
282
282
283
283
}
284
284
285
+ unittest (no_ops) {
286
+ pinMode ();
287
+ analogReference ();
288
+ analogReadResolution ();
289
+ analogWriteResolution ();
290
+ }
285
291
286
292
#ifdef HAVE_HWSERIAL0
287
293
Original file line number Diff line number Diff line change @@ -36,9 +36,6 @@ typedef uint8_t byte;
36
36
#define highByte (w ) ((uint8_t) ((w) >> 8))
37
37
#define lowByte (w ) ((uint8_t) ((w) & 0xff))
38
38
39
- // Arduino defines this
40
- #define _NOP () do { 0; } while (0)
41
-
42
39
// might as well use that NO-op macro for these, while unit testing
43
40
// you need interrupts? interrupt yourself
44
41
#define yield () _NOP()
@@ -70,5 +67,3 @@ inline unsigned int makeWord(unsigned int w) { return w; }
70
67
inline unsigned int makeWord (unsigned char h , unsigned char l ) { return (h << 8 ) | l ; }
71
68
72
69
#define word (...) makeWord(__VA_ARGS__)
73
-
74
-
Original file line number Diff line number Diff line change 92
92
#if defined(__AVR_ATmega328P__ ) || defined(__AVR_ATmega32U4__ ) || defined(__AVR_ATmega328__ ) || defined(__AVR_ATmega168__ ) || defined(__AVR_ATmega1280__ ) || defined(__AVR_ATmega2560__ )
93
93
#define LED_BUILTIN 13
94
94
#endif
95
+
96
+ // Arduino defines this
97
+ #define _NOP () do { 0; } while (0)
You can’t perform that action at this time.
0 commit comments