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

Function led_on

Tools/AP_Bootloader/support.cpp:290–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288}
289
290void led_on(unsigned led)
291{
292#ifdef HAL_GPIO_PIN_LED_BOOTLOADER
293 if (led == LED_BOOTLOADER) {
294 palWriteLine(HAL_GPIO_PIN_LED_BOOTLOADER, HAL_LED_ON);
295 }
296#endif
297#ifdef HAL_GPIO_PIN_LED_ACTIVITY
298 if (led == LED_ACTIVITY) {
299 palWriteLine(HAL_GPIO_PIN_LED_ACTIVITY, HAL_LED_ON);
300 }
301#endif
302}
303
304void led_off(unsigned led)
305{

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