Commit 694b1d2
committed
Make SPI interrupt handlers weak and fix example ambiguity
- Add __attribute__((weak)) to all SPI interrupt handlers (SERCOM4, SPI1, etc)
This allows variants to override them when SERCOM is used for other
peripherals (e.g., MKR variants use SERCOM4 for Serial2/UART)
- Explicitly cast slave addresses to uint8_t in Wire examples to avoid
any potential overload resolution issues on different compiler versions1 parent 12f886b commit 694b1d2
3 files changed
Lines changed: 12 additions & 2 deletions
File tree
- libraries
- SPI
- Wire/examples
- slave_receiver
- slave_sender
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
| 367 | + | |
367 | 368 | | |
368 | 369 | | |
369 | 370 | | |
| |||
373 | 374 | | |
374 | 375 | | |
375 | 376 | | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
376 | 381 | | |
377 | 382 | | |
378 | 383 | | |
| |||
383 | 388 | | |
384 | 389 | | |
385 | 390 | | |
| 391 | + | |
386 | 392 | | |
387 | 393 | | |
388 | 394 | | |
389 | 395 | | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
390 | 400 | | |
391 | 401 | | |
392 | 402 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
0 commit comments