File tree 3 files changed +13
-1
lines changed
SampleProjects/TestSomething/test
3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
21
21
### Fixed
22
22
- Don't define ` ostream& operator<<(nullptr_t) ` if already defined by Apple
23
23
- ` CppLibrary.in_tests_dir? ` no longer produces an error if there is no tests directory
24
+ - The definition of the ` _SFR_IO8 ` macro no longer produces errors about rvalues
24
25
25
26
### Deprecated
26
27
- ` arduino_ci_remote.rb ` CLI switch ` --skip-compilation `
Original file line number Diff line number Diff line change @@ -8,4 +8,15 @@ unittest(binary)
8
8
assertEqual (100 , B1100100);
9
9
}
10
10
11
+ #define DDRE _SFR_IO8 (0x02 )
12
+
13
+ unittest(SFR_IO8)
14
+ {
15
+ // in normal arduino code, you can do this. in arduino_ci, you might get an
16
+ // error like: cannot take the address of an rvalue of type 'int'
17
+ //
18
+ // this tests that directly
19
+ &DDRE;
20
+ }
21
+
11
22
unittest_main ()
Original file line number Diff line number Diff line change 96
96
#ifndef _AVR_IO_H_
97
97
#define _AVR_IO_H_
98
98
99
- #define _SFR_IO8 (io_addr ) (io_addr) // this macro is all we need from the sfr file
99
+ #define _SFR_IO8 (io_addr ) (*(volatile uint8_t *)( io_addr) ) // this macro is all we need from the sfr file
100
100
101
101
#if defined (__AVR_AT94K__ )
102
102
# include "ioat94k.h"
You can’t perform that action at this time.
0 commit comments