A good first step towards the upcoming 1.1 release, this commit runs the Power Delivery threads in Setup mode. This required a slight change to the shell to make it non-blocking, as otherwise the PD threads would never get to run. There's still a lot to do! The shell and the PD threads fight over control of the LED in Setup mode. There's no way to make the PD threads re-negotiate the required power. There's also no way to turn the output on or off from the shell. None of these changes should be too major, but together they'll be pretty cool when they're all done.
|
|
||
61 |
|
61 |
|
62 |
|
62 |
|
63 |
|
63 |
|
|
64 |
|
|
|
65 |
|
|
|
66 |
|
|
|
67 |
|
|
|
68 |
|
|
|
69 |
|
|
|
70 |
|
|
|
71 |
|
|
|
72 |
|
|
|
73 |
|
|
|
74 |
|
|
|
75 |
|
|
|
76 |
|
|
|
77 |
|
|
|
78 |
|
|
|
79 |
|
|
|
80 |
|
|
|
81 |
|
|
|
82 |
|
|
|
83 |
|
|
|
84 |
|
|
|
85 |
|
|
|
86 |
|
|
64 |
|
87 |
|
65 |
|
88 |
|
66 |
|
89 |
|
67 |
|
90 |
|
68 |
|
91 |
|
|
92 |
|
|
|
93 |
|
|
|
94 |
|
|
69 |
|
95 |
|
70 |
|
96 |
|
71 |
|
97 |
|
|
|
||
90 |
|
116 |
|
91 |
|
117 |
|
92 |
|
118 |
|
93 |
|
|
|
94 |
|
|
|
95 |
|
|
|
96 |
|
|
|
97 |
|
|
|
98 |
|
|
|
99 |
|
|
|
100 |
|
|
|
101 |
|
|
|
102 |
|
|
|
103 |
|
|
|
104 |
|
|
|
105 |
|
|
|
106 |
|
|
|
107 |
|
|
|
108 |
|
|
|
|
119 |
|
|
|
120 |
|
|
109 |
|
121 |
|
110 |
|
122 |
|
111 |
|
123 |
|
|
|
||
393 |
|
393 |
|
394 |
|
394 |
|
395 |
|
395 |
|
396 |
|
|
|
397 |
|
|
|
|
396 |
|
|
|
397 |
|
|
|
398 |
|
|
|
399 |
|
|
398 |
|
400 |
|
399 |
|
401 |
|
400 |
|
402 |
|