|
@@ -48,7 +48,7 @@ bool pdb_dpm_evaluate_capability(const union pd_msg *capabilities, union pd_msg
|
48
|
48
|
uint8_t numobj = PD_NUMOBJ_GET(capabilities);
|
49
|
49
|
|
50
|
50
|
/* Make the LED blink to indicate ongoing power negotiations */
|
51
|
|
- chEvtSignal(pdb_led_thread, PDB_EVT_LED_FAST_BLINK);
|
|
51
|
+ chEvtSignal(pdb_led_thread, PDB_EVT_LED_NEGOTIATING);
|
52
|
52
|
|
53
|
53
|
/* Get whether or not the power supply is constrained */
|
54
|
54
|
dpm_unconstrained_power = capabilities->obj[0] & PD_PDO_SRC_FIXED_UNCONSTRAINED;
|
|
@@ -189,7 +189,7 @@ bool pdb_dpm_evaluate_typec_current(void)
|
189
|
189
|
|
190
|
190
|
void pdb_dpm_pd_start(void)
|
191
|
191
|
{
|
192
|
|
- chEvtSignal(pdb_led_thread, PDB_EVT_LED_FAST_BLINK);
|
|
192
|
+ chEvtSignal(pdb_led_thread, PDB_EVT_LED_NEGOTIATING);
|
193
|
193
|
}
|
194
|
194
|
|
195
|
195
|
void pdb_dpm_sink_standby(void)
|
|
@@ -211,11 +211,11 @@ void pdb_dpm_output_set(bool state)
|
211
|
211
|
/* Set the power output */
|
212
|
212
|
if (state) {
|
213
|
213
|
/* Turn the output on */
|
214
|
|
- chEvtSignal(pdb_led_thread, PDB_EVT_LED_MEDIUM_BLINK_OFF);
|
|
214
|
+ chEvtSignal(pdb_led_thread, PDB_EVT_LED_OUTPUT_ON);
|
215
|
215
|
palSetLine(LINE_OUT_CTRL);
|
216
|
216
|
} else {
|
217
|
217
|
/* Turn the output off */
|
218
|
|
- chEvtSignal(pdb_led_thread, PDB_EVT_LED_ON);
|
|
218
|
+ chEvtSignal(pdb_led_thread, PDB_EVT_LED_OUTPUT_OFF);
|
219
|
219
|
palClearLine(LINE_OUT_CTRL);
|
220
|
220
|
}
|
221
|
221
|
}
|