OpenOCD
FreeRTOS.c File Reference
Include dependency graph for FreeRTOS.c:

Go to the source code of this file.

Data Structures

struct  freertos_params
 
struct  symbols
 

Macros

#define FREERTOS_MAX_PRIORITIES   63
 
#define FREERTOS_THREAD_NAME_STR_SIZE   (200)
 

Enumerations

enum  freertos_symbol_values {
  FREERTOS_VAL_PX_CURRENT_TCB = 0 , FREERTOS_VAL_PX_READY_TASKS_LISTS = 1 , FREERTOS_VAL_X_DELAYED_TASK_LIST1 = 2 , FREERTOS_VAL_X_DELAYED_TASK_LIST2 = 3 ,
  FREERTOS_VAL_PX_DELAYED_TASK_LIST = 4 , FREERTOS_VAL_PX_OVERFLOW_DELAYED_TASK_LIST = 5 , FREERTOS_VAL_X_PENDING_READY_LIST = 6 , FREERTOS_VAL_X_TASKS_WAITING_TERMINATION = 7 ,
  FREERTOS_VAL_X_SUSPENDED_TASK_LIST = 8 , FREERTOS_VAL_UX_CURRENT_NUMBER_OF_TASKS = 9 , FREERTOS_VAL_UX_TOP_USED_PRIORITY = 10 , FREERTOS_VAL_X_SCHEDULER_RUNNING = 11
}
 

Functions

static int freertos_create (struct target *target)
 
static bool freertos_detect_rtos (struct target *target)
 
static int freertos_get_symbol_list_to_lookup (struct symbol_table_elem *symbol_list[])
 
static int freertos_get_thread_reg_list (struct rtos *rtos, int64_t thread_id, struct rtos_reg **reg_list, int *num_regs)
 
static int freertos_update_threads (struct rtos *rtos)
 

Variables

static const struct freertos_params freertos_params_list []
 
struct rtos_type freertos_rtos
 
static const struct symbols freertos_symbol_list []
 

Macro Definition Documentation

◆ FREERTOS_MAX_PRIORITIES

#define FREERTOS_MAX_PRIORITIES   63

Definition at line 23 of file FreeRTOS.c.

◆ FREERTOS_THREAD_NAME_STR_SIZE

#define FREERTOS_THREAD_NAME_STR_SIZE   (200)

Enumeration Type Documentation

◆ freertos_symbol_values

Enumerator
FREERTOS_VAL_PX_CURRENT_TCB 
FREERTOS_VAL_PX_READY_TASKS_LISTS 
FREERTOS_VAL_X_DELAYED_TASK_LIST1 
FREERTOS_VAL_X_DELAYED_TASK_LIST2 
FREERTOS_VAL_PX_DELAYED_TASK_LIST 
FREERTOS_VAL_PX_OVERFLOW_DELAYED_TASK_LIST 
FREERTOS_VAL_X_PENDING_READY_LIST 
FREERTOS_VAL_X_TASKS_WAITING_TERMINATION 
FREERTOS_VAL_X_SUSPENDED_TASK_LIST 
FREERTOS_VAL_UX_CURRENT_NUMBER_OF_TASKS 
FREERTOS_VAL_UX_TOP_USED_PRIORITY 
FREERTOS_VAL_X_SCHEDULER_RUNNING 

Definition at line 107 of file FreeRTOS.c.

Function Documentation

◆ freertos_create()

static int freertos_create ( struct target target)
static

◆ freertos_detect_rtos()

static bool freertos_detect_rtos ( struct target target)
static

◆ freertos_get_symbol_list_to_lookup()

static int freertos_get_symbol_list_to_lookup ( struct symbol_table_elem symbol_list[])
static

Definition at line 477 of file FreeRTOS.c.

References ARRAY_SIZE, freertos_symbol_list, symbols::name, and symbols::optional.

◆ freertos_get_thread_reg_list()

static int freertos_get_thread_reg_list ( struct rtos rtos,
int64_t  thread_id,
struct rtos_reg **  reg_list,
int *  num_regs 
)
static

◆ freertos_update_threads()

Variable Documentation

◆ freertos_params_list

const struct freertos_params freertos_params_list[]
static

Definition at line 1 of file FreeRTOS.c.

Referenced by freertos_create().

◆ freertos_rtos

struct rtos_type freertos_rtos
Initial value:
= {
.name = "FreeRTOS",
.detect_rtos = freertos_detect_rtos,
.create = freertos_create,
.update_threads = freertos_update_threads,
.get_thread_reg_list = freertos_get_thread_reg_list,
.get_symbol_list_to_lookup = freertos_get_symbol_list_to_lookup,
}
static int freertos_get_symbol_list_to_lookup(struct symbol_table_elem *symbol_list[])
Definition: FreeRTOS.c:477
static int freertos_create(struct target *target)
Definition: FreeRTOS.c:548
static bool freertos_detect_rtos(struct target *target)
Definition: FreeRTOS.c:538
static int freertos_update_threads(struct rtos *rtos)
Definition: FreeRTOS.c:148
static int freertos_get_thread_reg_list(struct rtos *rtos, int64_t thread_id, struct rtos_reg **reg_list, int *num_regs)
Definition: FreeRTOS.c:404

Definition at line 95 of file FreeRTOS.c.

◆ freertos_symbol_list

const struct symbols freertos_symbol_list[]
static
Initial value:
= {
{ "pxCurrentTCB", false },
{ "pxReadyTasksLists", false },
{ "xDelayedTaskList1", false },
{ "xDelayedTaskList2", false },
{ "pxDelayedTaskList", false },
{ "pxOverflowDelayedTaskList", false },
{ "xPendingReadyList", false },
{ "xTasksWaitingTermination", true },
{ "xSuspendedTaskList", true },
{ "uxCurrentNumberOfTasks", false },
{ "uxTopUsedPriority", true },
{ "xSchedulerRunning", false },
{ NULL, false }
}
#define NULL
Definition: usb.h:16

Definition at line 95 of file FreeRTOS.c.

Referenced by freertos_get_symbol_list_to_lookup().