-
Notifications
You must be signed in to change notification settings - Fork 48
Commit bc7cf72
libraries: SPI: hanlde multiple SPI instances
Create multiple SPI instance if spis array contains plural elements.
Declare these as 'SPI1', 'SPI2', ..., from second element of the array.
(First element is already declare as 'SPI'.)
This works if `spis` property defined.
The property parse as SPI array declaration, to define SPI instance
with the name of SPI, SPI1, SPI2...
If `spis` is not defined but the DTS already defines `arduino-spi` and,
use it to define first SPI instance.
The `arduion-spi` is usually define with arduino_header in
boards definitions.
Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>1 parent 4bc1867 commit bc7cf72
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