Commit 46f1442
committed
add special handling for the BIT macro used in the esp-idf framework
The functions the preprocessor supports (WRITE_RTC_*/READ_RTC_*) do not need the
value returned by the BIT macro. Instead, they use the bit number specified to the
BIT macro, i.e. for BIT(x) they need x. So this change handles BIT by simply
replacing it with an empty string, and BIT(x) results in (x) in the preprocessor
output.1 parent 8d88fd1 commit 46f1442
2 files changed
+24
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
73 | 82 | | |
74 | 83 | | |
75 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
188 | 203 | | |
189 | 204 | | |
190 | 205 | | |
| |||
0 commit comments