ulink_append_led_cmd() is only used within OpenOCD.
 
Symbols
loading...
Files
loading...
CodeScopeDevelopment ToolsOpenOCDulink_append_led_cmd()

ulink_append_led_cmd() function

Turn on/off ULINK LEDs.

Syntax

static int __attribute__((unused)) ulink_append_led_cmd(struct ulink *device,     uint8_t led_state);
Implemented in ulink.c:1196

Arguments

device

pointer to struct ulink identifying ULINK driver instance.

led_state

which LED(s) to turn on or off. The following bits influence the LEDS: - Bit 0: Turn COM LED on - Bit 1: Turn RUN LED on - Bit 2: Turn COM LED off - Bit 3: Turn RUN LED off If both the on-bit and the off-bit for the same LED is set, the LED is turned off.

Return value

on success: ERROR_OK on failure: ERROR_FAIL

References

LocationText
ulink.c:1196
static int ulink_append_led_cmd(struct ulink *device, uint8_t led_state)
ulink.c:208
static int __attribute__((unused)) ulink_append_led_cmd(struct ulink *device, uint8_t led_state);

Call Tree

Functions called by ulink_append_led_cmd()
ulink_append_led_cmd()
calloc()
free()
all items filtered out
Data read by ulink_append_led_cmd()
Data written by ulink_append_led_cmd()
ulink_append_led_cmd()
ulink_append_led_cmd()::ret
all items filtered out
Type of ulink_append_led_cmd()
ulink_append_led_cmd()
all items filtered out
Types freed by ulink_append_led_cmd()
Types allocated by ulink_append_led_cmd()
all items filtered out
ulink_append_led_cmd()
all items filtered out