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

Function led_toggle

Tools/AP_Bootloader/support.cpp:318–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316}
317
318void led_toggle(unsigned led)
319{
320#ifdef HAL_GPIO_PIN_LED_BOOTLOADER
321 if (led == LED_BOOTLOADER) {
322 palToggleLine(HAL_GPIO_PIN_LED_BOOTLOADER);
323 }
324#endif
325#ifdef HAL_GPIO_PIN_LED_ACTIVITY
326 if (led == LED_ACTIVITY) {
327 palToggleLine(HAL_GPIO_PIN_LED_ACTIVITY);
328 }
329#endif
330}
331
332extern "C" {
333 int vsnprintf(char *str, size_t size, const char *fmt, va_list ap);

Callers 3

sys_tick_handlerFunction · 0.85
runMethod · 0.85
body_callbackMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected