File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed
SampleProjects/TestSomething/test Expand file tree Collapse file tree 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/).
2121### Fixed
2222- Don't define ` ostream& operator<<(nullptr_t) ` if already defined by Apple
2323- ` 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
2425
2526### Deprecated
2627- ` arduino_ci_remote.rb ` CLI switch ` --skip-compilation `
Original file line number Diff line number Diff line change @@ -8,4 +8,15 @@ unittest(binary)
88 assertEqual (100 , B1100100);
99}
1010
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+
1122unittest_main ()
Original file line number Diff line number Diff line change 9696#ifndef _AVR_IO_H_
9797#define _AVR_IO_H_
9898
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
100100
101101#if defined (__AVR_AT94K__ )
102102# include "ioat94k.h"
You can’t perform that action at this time.
0 commit comments