Not the static globals yet, just the public ones. I suppose this change isn't technically necessary since the PD Buddy Sink is a single-port device, but I want its firmware to be a shining example of how to use the library.
|
|
||
26 |
|
26 |
|
27 |
|
27 |
|
28 |
|
28 |
|
29 |
|
|
|
|
29 |
|
|
30 |
|
30 |
|
31 |
|
31 |
|
32 |
|
32 |
|
|
|
||
27 |
|
27 |
|
28 |
|
28 |
|
29 |
|
29 |
|
30 |
|
|
|
31 |
|
|
|
32 |
|
|
|
33 |
|
|
|
34 |
|
|
|
35 |
|
|
|
36 |
|
|
|
37 |
|
|
|
38 |
|
30 |
|
39 |
|
31 |
|
40 |
|
32 |
|
|
|
||
53 |
|
45 |
|
54 |
|
46 |
|
55 |
|
47 |
|
|
48 |
|
|
|
49 |
|
|
|
50 |
|
|
56 |
|
51 |
|
57 |
|
52 |
|
58 |
|
|
|
59 |
|
|
|
|
53 |
|
|
|
54 |
|
|
60 |
|
55 |
|
61 |
|
|
|
|
56 |
|
|
62 |
|
57 |
|
63 |
|
58 |
|
64 |
|
|
|
|
59 |
|
|
65 |
|
60 |
|
66 |
|
61 |
|
67 |
|
62 |
|
|
|
||
70 |
|
65 |
|
71 |
|
66 |
|
72 |
|
67 |
|
73 |
|
|
|
|
68 |
|
|
74 |
|
69 |
|
75 |
|
70 |
|
76 |
|
71 |
|
|
|
||
78 |
|
73 |
|
79 |
|
74 |
|
80 |
|
75 |
|
81 |
|
|
|
|
76 |
|
|
82 |
|
77 |
|
83 |
|
78 |
|
84 |
|
79 |
|
|
|
||
105 |
|
100 |
|
106 |
|
101 |
|
107 |
|
102 |
|
108 |
|
|
|
|
103 |
|
|
109 |
|
104 |
|
110 |
|
105 |
|
111 |
|
106 |
|
|
|
||
126 |
|
121 |
|
127 |
|
122 |
|
128 |
|
123 |
|
129 |
|
|
|
|
124 |
|
|
130 |
|
125 |
|
131 |
|
126 |
|
132 |
|
127 |
|
133 |
|
|
|
|
128 |
|
|
134 |
|
129 |
|
135 |
|
130 |
|
136 |
|
131 |
|
|
|
||
138 |
|
133 |
|
139 |
|
134 |
|
140 |
|
135 |
|
141 |
|
|
|
142 |
|
|
|
|
136 |
|
|
|
137 |
|
|
143 |
|
138 |
|
144 |
|
139 |
|
145 |
|
140 |
|
|
|
||
148 |
|
143 |
|
149 |
|
144 |
|
150 |
|
145 |
|
|
146 |
|
|
|
147 |
|
|
151 |
|
148 |
|
152 |
|
149 |
|
153 |
|
150 |
|
|
|
||
175 |
|
172 |
|
176 |
|
173 |
|
177 |
|
174 |
|
178 |
|
|
|
|
175 |
|
|
179 |
|
176 |
|
180 |
|
177 |
|
181 |
|
178 |
|
|
|
||
195 |
|
192 |
|
196 |
|
193 |
|
197 |
|
194 |
|
|
195 |
|
|
|
196 |
|
|
198 |
|
197 |
|
199 |
|
198 |
|
200 |
|
199 |
|
201 |
|
200 |
|
202 |
|
201 |
|
203 |
|
202 |
|
204 |
|
|
|
|
203 |
|
|
205 |
|
204 |
|
206 |
|
205 |
|
207 |
|
206 |
|
|
|
||
231 |
|
230 |
|
232 |
|
231 |
|
233 |
|
232 |
|
234 |
|
|
|
|
233 |
|
|
|
234 |
|
|
|
235 |
|
|
|
236 |
|
|
235 |
|
237 |
|
236 |
|
238 |
|
237 |
|
239 |
|
|
|
||
239 |
|
241 |
|
240 |
|
242 |
|
241 |
|
243 |
|
242 |
|
|
|
|
244 |
|
|
243 |
|
245 |
|
244 |
|
246 |
|
245 |
|
247 |
|
246 |
|
248 |
|
247 |
|
249 |
|
248 |
|
|
|
|
250 |
|
|
249 |
|
251 |
|
250 |
|
|
|
|
252 |
|
|
251 |
|
253 |
|
252 |
|
254 |
|
253 |
|
255 |
|
254 |
|
256 |
|
255 |
|
257 |
|
256 |
|
|
|
|
258 |
|
|
257 |
|
259 |
|
258 |
|
260 |
|
259 |
|
261 |
|
|
|
||
265 |
|
267 |
|
266 |
|
268 |
|
267 |
|
269 |
|
268 |
|
|
|
|
270 |
|
|
269 |
|
271 |
|
270 |
|
272 |
|
271 |
|
273 |
|
272 |
|
274 |
|
273 |
|
|
|
|
275 |
|
|
274 |
|
276 |
|
275 |
|
277 |
|
276 |
|
278 |
|
|
|
||
286 |
|
288 |
|
287 |
|
289 |
|
288 |
|
290 |
|
289 |
|
|
|
|
291 |
|
|
290 |
|
292 |
|
|
|
||
26 |
|
26 |
|
27 |
|
27 |
|
28 |
|
28 |
|
29 |
|
|
|
30 |
|
|
|
31 |
|
|
|
32 |
|
|
|
33 |
|
|
|
34 |
|
|
|
35 |
|
|
|
36 |
|
|
|
37 |
|
|
|
38 |
|
|
|
39 |
|
|
|
40 |
|
|
|
41 |
|
|
|
42 |
|
|
|
|
29 |
|
|
|
30 |
|
|
|
31 |
|
|
|
32 |
|
|
|
33 |
|
|
|
34 |
|
|
|
35 |
|
|
|
36 |
|
|
|
37 |
|
|
|
38 |
|
|
|
39 |
|
|
|
40 |
|
|
43 |
|
41 |
|
44 |
|
42 |
|
45 |
|
43 |
|
|
|
||
53 |
|
53 |
|
54 |
|
54 |
|
55 |
|
55 |
|
|
56 |
|
|
|
57 |
|
|
|
58 |
|
|
|
59 |
|
|
|
60 |
|
|
|
61 |
|
|
|
62 |
|
|
|
63 |
|
|
|
64 |
|
|
|
65 |
|
|
|
66 |
|
|
56 |
|
67 |
|
57 |
|
68 |
|
58 |
|
69 |
|
|
|
||
72 |
|
83 |
|
73 |
|
84 |
|
74 |
|
85 |
|
75 |
|
|
|
|
86 |
|
|
|
87 |
|
|
76 |
|
88 |
|
77 |
|
89 |
|
78 |
|
90 |
|
|
|
||
81 |
|
93 |
|
82 |
|
94 |
|
83 |
|
95 |
|
84 |
|
|
|
85 |
|
|
|
86 |
|
|
|
|
96 |
|
|
|
97 |
|
|
|
98 |
|
|
87 |
|
99 |
|
88 |
|
100 |
|
89 |
|
101 |
|
|
|
||
54 |
|
54 |
|
55 |
|
55 |
|
56 |
|
56 |
|
|
57 |
|
|
57 |
|
58 |
|
58 |
|
59 |
|
59 |
|
60 |
|
|
|
||
323 |
|
324 |
|
324 |
|
325 |
|
325 |
|
326 |
|
326 |
|
|
|
|
327 |
|
|
327 |
|
328 |
|
328 |
|
329 |
|
329 |
|
330 |
|
|
|
||
331 |
|
332 |
|
332 |
|
333 |
|
333 |
|
334 |
|
334 |
|
|
|
|
335 |
|
|
335 |
|
336 |
|
336 |
|
337 |
|
337 |
|
|
|
|
338 |
|
|
338 |
|
339 |
|
339 |
|
340 |
|
340 |
|
341 |
|
|
|
||
355 |
|
356 |
|
356 |
|
357 |
|
357 |
|
358 |
|
358 |
|
|
|
|
359 |
|
|
359 |
|
360 |
|
360 |
|
|
|
|
361 |
|
|
361 |
|
362 |
|
362 |
|
363 |
|
363 |
|
|
|
|
364 |
|
|
364 |
|
365 |
|
365 |
|
|
|
|
366 |
|
|
366 |
|
367 |
|
367 |
|
|
|
|
368 |
|
|
368 |
|
369 |
|
369 |
|
370 |
|
370 |
|
371 |
|
|
|
||
376 |
|
377 |
|
377 |
|
378 |
|
378 |
|
379 |
|
379 |
|
|
|
|
380 |
|
|
380 |
|
381 |
|
381 |
|
|
|
|
382 |
|
|
382 |
|
383 |
|
383 |
|
384 |
|
384 |
|
385 |
|
|
|
||
466 |
|
467 |
|
467 |
|
468 |
|
468 |
|
469 |
|
|
470 |
|
|
469 |
|
471 |
|
470 |
|
472 |
|
471 |
|
473 |
|