- 
  Notifications
 You must be signed in to change notification settings 
- Fork 48
Commit f9d18ce
libraries: SPI: handle multiple SPI instances
Create multiple SPI instances if the `spis` array contains plural elements.
Declare these as 'SPI1', 'SPI2', ..., from the second element of the array.
(The first element is already declared as 'SPI'.)
If `spis` is not defined but the DTS already defines `arduino-spi` and,
use it to define the first SPI instance.
The `arduion-spi` is usually defined with arduino_header in
boards definitions.
Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>1 parent 4bc1867 commit f9d18ce
2 files changed
+40
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
|  | |||
| 121 | 121 |  | |
| 122 | 122 |  | |
| 123 | 123 |  | |
| 124 | + | ||
| 125 | + | ||
| 126 | + | ||
| 127 | + | ||
| 128 | + | ||
| 129 | + | ||
| 130 | + | ||
| 131 | + | ||
| 132 | + | ||
| 133 | + | ||
| 134 | + | ||
| 135 | + | ||
| 136 | + | ||
| 137 | + | ||
| 138 | + | ||
| 139 | + | ||
| 140 | + | ||
| 124 | 141 |  | |
| 125 | 142 |  | |
| 143 | + | ||
| 144 | + | ||
| 145 | + | ||
| 146 | + | ||
| 147 | + | ||
| 148 | + | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
|  | |||
| 56 | 56 |  | |
| 57 | 57 |  | |
| 58 | 58 |  | |
| 59 | + | ||
| 60 | + | ||
| 61 | + | ||
| 62 | + | ||
| 63 | + | ||
| 64 | + | ||
| 65 | + | ||
| 66 | + | ||
| 67 | + | ||
| 68 | + | ||
| 69 | + | ||
| 70 | + | ||
| 71 | + | ||
| 72 | + | ||
| 73 | + | ||
| 59 | 74 |  | |
| 75 | + | ||
| 76 | + | ||
| 60 | 77 |  | |
| 61 | 78 |  | |
| 62 | 79 |  | |
|  | |||
0 commit comments