MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / led_off

Function led_off

Tools/AP_Bootloader/support.cpp:304–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302}
303
304void led_off(unsigned led)
305{
306#ifdef HAL_GPIO_PIN_LED_BOOTLOADER
307 if (led == LED_BOOTLOADER) {
308 palWriteLine(HAL_GPIO_PIN_LED_BOOTLOADER, !HAL_LED_ON);
309 }
310#endif
311#ifdef HAL_GPIO_PIN_LED_ACTIVITY
312 if (led == LED_ACTIVITY) {
313 palWriteLine(HAL_GPIO_PIN_LED_ACTIVITY, !HAL_LED_ON);
314 }
315#endif
316}
317
318void led_toggle(unsigned led)
319{

Callers 3

led_setFunction · 0.85
bl_protocol.cppFile · 0.85
led_pulsesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected