|
104 | 104 | do { \
|
105 | 105 | DEBUG_PORT->DIRSET = DEBUG_PIN_MASK; \
|
106 | 106 | DEBUG_PORT->OUTCLR = DEBUG_PIN_MASK; \
|
107 |
| - } while (0) |
| 107 | + } while (false) |
108 | 108 |
|
109 | 109 | #define DEBUG_CPU_SLEEP(flag) \
|
110 | 110 | do { \
|
|
115 | 115 | DEBUG_PORT->OUTCLR = DEBUG_PIN0; \
|
116 | 116 | DEBUG_PORT->OUTSET = DEBUG_PIN0; \
|
117 | 117 | } \
|
118 |
| - } while (0) |
| 118 | + } while (false) |
119 | 119 |
|
120 | 120 | #define DEBUG_TICKER_ISR(flag) \
|
121 | 121 | do { \
|
|
126 | 126 | DEBUG_PORT->OUTSET = DEBUG_PIN1; \
|
127 | 127 | DEBUG_PORT->OUTCLR = DEBUG_PIN1; \
|
128 | 128 | } \
|
129 |
| - } while (0) |
| 129 | + } while (false) |
130 | 130 |
|
131 | 131 | #define DEBUG_TICKER_TASK(flag) \
|
132 | 132 | do { \
|
|
137 | 137 | DEBUG_PORT->OUTSET = DEBUG_PIN1; \
|
138 | 138 | DEBUG_PORT->OUTCLR = DEBUG_PIN1; \
|
139 | 139 | } \
|
140 |
| - } while (0) |
| 140 | + } while (false) |
141 | 141 |
|
142 | 142 | #define DEBUG_TICKER_JOB(flag) \
|
143 | 143 | do { \
|
|
148 | 148 | DEBUG_PORT->OUTSET = DEBUG_PIN2; \
|
149 | 149 | DEBUG_PORT->OUTCLR = DEBUG_PIN2; \
|
150 | 150 | } \
|
151 |
| - } while (0) |
| 151 | + } while (false) |
152 | 152 |
|
153 | 153 | #define DEBUG_RADIO_ISR(flag) \
|
154 | 154 | do { \
|
|
159 | 159 | DEBUG_PORT->OUTSET = DEBUG_PIN7; \
|
160 | 160 | DEBUG_PORT->OUTCLR = DEBUG_PIN7; \
|
161 | 161 | } \
|
162 |
| - } while (0) |
| 162 | + } while (false) |
163 | 163 |
|
164 | 164 | #define DEBUG_RADIO_XTAL(flag) \
|
165 | 165 | do { \
|
|
170 | 170 | DEBUG_PORT->OUTSET = DEBUG_PIN8; \
|
171 | 171 | DEBUG_PORT->OUTCLR = DEBUG_PIN8; \
|
172 | 172 | } \
|
173 |
| - } while (0) |
| 173 | + } while (false) |
174 | 174 |
|
175 | 175 | #define DEBUG_RADIO_ACTIVE(flag) \
|
176 | 176 | do { \
|
|
181 | 181 | DEBUG_PORT->OUTSET = DEBUG_PIN9; \
|
182 | 182 | DEBUG_PORT->OUTCLR = DEBUG_PIN9; \
|
183 | 183 | } \
|
184 |
| - } while (0) |
| 184 | + } while (false) |
185 | 185 |
|
186 | 186 | #define DEBUG_RADIO_CLOSE(flag) \
|
187 | 187 | do { \
|
|
191 | 191 | } else { \
|
192 | 192 | DEBUG_PORT->OUTCLR = DEBUG_CLOSE_MASK; \
|
193 | 193 | } \
|
194 |
| - } while (0) |
| 194 | + } while (false) |
195 | 195 |
|
196 | 196 | #define DEBUG_RADIO_PREPARE_A(flag) \
|
197 | 197 | do { \
|
|
202 | 202 | DEBUG_PORT->OUTCLR = DEBUG_PIN3; \
|
203 | 203 | DEBUG_PORT->OUTSET = DEBUG_PIN3; \
|
204 | 204 | } \
|
205 |
| - } while (0) |
| 205 | + } while (false) |
206 | 206 |
|
207 | 207 | #define DEBUG_RADIO_START_A(flag) \
|
208 | 208 | do { \
|
|
213 | 213 | DEBUG_PORT->OUTCLR = DEBUG_PIN3; \
|
214 | 214 | DEBUG_PORT->OUTSET = DEBUG_PIN3; \
|
215 | 215 | } \
|
216 |
| - } while (0) |
| 216 | + } while (false) |
217 | 217 |
|
218 | 218 | #define DEBUG_RADIO_CLOSE_A(flag) \
|
219 | 219 | do { \
|
|
223 | 223 | } else { \
|
224 | 224 | DEBUG_PORT->OUTCLR = DEBUG_PIN3; \
|
225 | 225 | } \
|
226 |
| - } while (0) |
| 226 | + } while (false) |
227 | 227 |
|
228 | 228 | #define DEBUG_RADIO_PREPARE_S(flag) \
|
229 | 229 | do { \
|
|
234 | 234 | DEBUG_PORT->OUTCLR = DEBUG_PIN4; \
|
235 | 235 | DEBUG_PORT->OUTSET = DEBUG_PIN4; \
|
236 | 236 | } \
|
237 |
| - } while (0) |
| 237 | + } while (false) |
238 | 238 |
|
239 | 239 | #define DEBUG_RADIO_START_S(flag) \
|
240 | 240 | do { \
|
|
245 | 245 | DEBUG_PORT->OUTCLR = DEBUG_PIN4; \
|
246 | 246 | DEBUG_PORT->OUTSET = DEBUG_PIN4; \
|
247 | 247 | } \
|
248 |
| - } while (0) |
| 248 | + } while (false) |
249 | 249 |
|
250 | 250 | #define DEBUG_RADIO_CLOSE_S(flag) \
|
251 | 251 | do { \
|
|
255 | 255 | } else { \
|
256 | 256 | DEBUG_PORT->OUTCLR = DEBUG_PIN4; \
|
257 | 257 | } \
|
258 |
| - } while (0) |
| 258 | + } while (false) |
259 | 259 |
|
260 | 260 | #define DEBUG_RADIO_PREPARE_O(flag) \
|
261 | 261 | do { \
|
|
266 | 266 | DEBUG_PORT->OUTCLR = DEBUG_PIN5; \
|
267 | 267 | DEBUG_PORT->OUTSET = DEBUG_PIN5; \
|
268 | 268 | } \
|
269 |
| - } while (0) |
| 269 | + } while (false) |
270 | 270 |
|
271 | 271 | #define DEBUG_RADIO_START_O(flag) \
|
272 | 272 | do { \
|
|
277 | 277 | DEBUG_PORT->OUTCLR = DEBUG_PIN5; \
|
278 | 278 | DEBUG_PORT->OUTSET = DEBUG_PIN5; \
|
279 | 279 | } \
|
280 |
| - } while (0) |
| 280 | + } while (false) |
281 | 281 |
|
282 | 282 | #define DEBUG_RADIO_CLOSE_O(flag) \
|
283 | 283 | do { \
|
|
287 | 287 | } else { \
|
288 | 288 | DEBUG_PORT->OUTCLR = DEBUG_PIN5; \
|
289 | 289 | } \
|
290 |
| - } while (0) |
| 290 | + } while (false) |
291 | 291 |
|
292 | 292 | #define DEBUG_RADIO_PREPARE_M(flag) \
|
293 | 293 | do { \
|
|
298 | 298 | DEBUG_PORT->OUTCLR = DEBUG_PIN6; \
|
299 | 299 | DEBUG_PORT->OUTSET = DEBUG_PIN6; \
|
300 | 300 | } \
|
301 |
| - } while (0) |
| 301 | + } while (false) |
302 | 302 |
|
303 | 303 | #define DEBUG_RADIO_START_M(flag) \
|
304 | 304 | do { \
|
|
309 | 309 | DEBUG_PORT->OUTCLR = DEBUG_PIN6; \
|
310 | 310 | DEBUG_PORT->OUTSET = DEBUG_PIN6; \
|
311 | 311 | } \
|
312 |
| - } while (0) |
| 312 | + } while (false) |
313 | 313 |
|
314 | 314 | #define DEBUG_RADIO_CLOSE_M(flag) \
|
315 | 315 | do { \
|
|
319 | 319 | } else { \
|
320 | 320 | DEBUG_PORT->OUTCLR = DEBUG_PIN6; \
|
321 | 321 | } \
|
322 |
| - } while (0) |
| 322 | + } while (false) |
323 | 323 |
|
324 | 324 | #else
|
325 | 325 | #define DEBUG_SETUP()
|
|
0 commit comments