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 []
 
const 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 22 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 92 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 461 of file FreeRTOS.c.

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

◆ freertos_get_thread_reg_list()

◆ freertos_update_threads()

Variable Documentation

◆ freertos_params_list

const struct freertos_params freertos_params_list[]
static
Initial value:
= {
{
"cortex_m",
4,
4,
16,
20,
8,
12,
0,
52,
},
{
"hla_target",
4,
4,
16,
20,
8,
12,
0,
52,
},
}
const struct rtos_register_stacking rtos_standard_cortex_m3_stacking
const struct rtos_register_stacking rtos_standard_cortex_m4f_fpu_stacking
const struct rtos_register_stacking rtos_standard_cortex_m4f_stacking

Definition at line 1 of file FreeRTOS.c.

Referenced by freertos_create().

◆ freertos_rtos

const 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:461
static int freertos_create(struct target *target)
Definition: FreeRTOS.c:532
static bool freertos_detect_rtos(struct target *target)
Definition: FreeRTOS.c:522
static int freertos_update_threads(struct rtos *rtos)
Definition: FreeRTOS.c:133
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:388

Definition at line 80 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 80 of file FreeRTOS.c.

Referenced by freertos_get_symbol_list_to_lookup().