OpenOCD
protocol.h File Reference
Include dependency graph for protocol.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void command_loop (void)
 Forever wait for commands and execute them as they arrive. More...
 
bool execute_command (void)
 Executes one command and updates global command indexes. More...
 
void execute_set_led_command (void)
 Execute a SET_LEDS command. More...
 

Function Documentation

◆ command_loop()

void command_loop ( void  )

Forever wait for commands and execute them as they arrive.

Definition at line 193 of file protocol.c.

References CLEAR_COM_LED, cmd_id_index, EP2_in, EP2_out, execute_command(), payload_index_in, and SET_COM_LED.

Referenced by main().

◆ execute_command()

◆ execute_set_led_command()

void execute_set_led_command ( void  )

Execute a SET_LEDS command.

Definition at line 46 of file protocol.c.

References CLEAR_COM_LED, CLEAR_RUN_LED, cmd_id_index, COM_LED_OFF, COM_LED_ON, RUN_LED_OFF, RUN_LED_ON, SET_COM_LED, and SET_RUN_LED.

Referenced by execute_command().