.heartbeat_port = HEARTBEAT_LED_PORT, \
.heartbeat_pin = HEARTBEAT_LED_PIN, \
.connection_port = CONNECTION_LED_PORT, \
.connection_pin = CONNECTION_LED_PIN, \
.error_port = ERROR_LED_PORT, \
.error_pin = ERROR_LED_PIN, \
.preflight_callback = (PREFLIGHT_CALLBACK), \
.state = HEARTBEAT_STATE_PREFLIGHT \
}; \
void heartbeat_wrapper(void) { heartbeat_task(&status_leds); }; \
DEFINE_TASK(heartbeat_wrapper, HEARTBEAT_PERIOD_MS, osPriorityLow, STACK_512)
Definition heartbeat.h:23
Macro to define a heartbeat task with predefined behavior for status LEDs.