BV global: rename led pulsing functions
This commit is contained in:
parent
a5c9b3558d
commit
c36e786d93
|
@ -369,7 +369,7 @@ static void busvoodoo_led_update(void)
|
|||
}
|
||||
}
|
||||
|
||||
void busvoodoo_led_blue(uint16_t ms)
|
||||
void busvoodoo_led_blue_pulse(uint16_t ms)
|
||||
{
|
||||
timer_disable_counter(TIM(BUSVOODOO_LED_TIMER)); // disable counter while changing LEDs to avoid coherence errors (at the cost of time precision)
|
||||
if (ms>UINT16_MAX/2) { // enforce maximum
|
||||
|
@ -388,7 +388,7 @@ void busvoodoo_led_blue(uint16_t ms)
|
|||
timer_enable_counter(TIM(BUSVOODOO_LED_TIMER)); // re-enable timer
|
||||
}
|
||||
|
||||
void busvoodoo_led_red(uint16_t ms)
|
||||
void busvoodoo_led_red_pulse(uint16_t ms)
|
||||
{
|
||||
timer_disable_counter(TIM(BUSVOODOO_LED_TIMER)); // disable counter while changing LEDs to avoid coherence errors (at the cost of time precision)
|
||||
if (ms>UINT16_MAX/2) { // enforce maximum
|
||||
|
|
|
@ -171,14 +171,14 @@ float busvoodoo_hv_set(float voltage);
|
|||
* @return voltage applied on pull-up resistors, or NaN if channel is invalid (or error happened)
|
||||
*/
|
||||
float busvoodoo_embedded_pullup(bool on);
|
||||
/** enable blue LED for short duration
|
||||
/** pulse blue LED for short duration
|
||||
* @param[in] ms duration in ms (0-32768)
|
||||
*/
|
||||
void busvoodoo_led_blue(uint16_t ms);
|
||||
/** enable red LED for short duration
|
||||
void busvoodoo_led_blue_pulse(uint16_t ms);
|
||||
/** pulse red LED for short duration
|
||||
* @param[in] ms duration in ms (0-32768)
|
||||
*/
|
||||
void busvoodoo_led_red(uint16_t ms);
|
||||
void busvoodoo_led_red_pulse(uint16_t ms);
|
||||
/** parse and perform actions
|
||||
* @note performing action is a common command in mode and this function helps parsing them
|
||||
* @param[in] actions actions to perform
|
||||
|
|
Loading…
Reference in New Issue