ISIX-RTOS - small operating system for ARM microcontrollers 1.2
Defines | Functions

task.c File Reference

#include <isix/config.h>
#include <isix/types.h>
#include <prv/scheduler.h>
#include <isix/task.h>
#include <isix/memory.h>
#include <prv/semaphore.h>
#include <prv/multiple_objects.h>
#include <string.h>
#include <isix/printk.h>
Include dependency graph for task.c:

Go to the source code of this file.

Defines

#define ISIX_DEBUG_TASK   ISIX_DBG_OFF
#define ALIGN_MASK   0x03
#define ALIGN_BYTES   4
#define MAGIC_FILL_VALUE   0x55

Functions

task_t * isix_task_create (task_func_ptr_t task_func, void *func_param, unsigned long stack_depth, prio_t priority)
int isixp_task_change_prio (task_t *task, prio_t new_prio, bool yield)
int isix_task_delete (task_t *task)
task_t * isix_task_self (void)
size_t isix_free_stack_space (const task_t *task)

Define Documentation

#define ALIGN_BYTES   4

Definition at line 25 of file task.c.

Referenced by isix_task_create().

#define ALIGN_MASK   0x03

Definition at line 23 of file task.c.

Referenced by isix_task_create().

#define ISIX_DEBUG_TASK   ISIX_DBG_OFF

Definition at line 11 of file task.c.

#define MAGIC_FILL_VALUE   0x55

Definition at line 27 of file task.c.

Referenced by isix_free_stack_space(), and isix_task_create().


Function Documentation

size_t isix_free_stack_space ( const task_t *  task)

Definition at line 222 of file task.c.

References MAGIC_FILL_VALUE.

task_t* isix_task_create ( task_func_ptr_t  task_func,
void *  func_param,
unsigned long  stack_depth,
prio_t  priority 
)
int isix_task_delete ( task_t *  task)
task_t* isix_task_self ( void  )

Get current thread handler

Returns:
Get the task control block of the current task/thread

Definition at line 208 of file task.c.

References isix_current_task.

int isixp_task_change_prio ( task_t *  task,
prio_t  new_prio,
bool  yield 
)
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines