dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pios_thread.h File Reference
#include <stdint.h>
#include <stdbool.h>
#include <taskmonitor.h>

Go to the source code of this file.

Macros

#define PIOS_THREAD_TIMEOUT_MAX   0xffffffff
 
#define PIOS_THREAD_STACK_SIZE_MIN   (4096)
 

Enumerations

enum  pios_thread_prio_e { PIOS_THREAD_PRIO_LOW = 0, PIOS_THREAD_PRIO_NORMAL, PIOS_THREAD_PRIO_HIGH, PIOS_THREAD_PRIO_HIGHEST }
 

Functions

struct pios_thread * PIOS_Thread_Create (void(*fp)(void *), const char *namep, size_t stack_bytes, void *argp, enum pios_thread_prio_e prio)
 
void PIOS_Thread_Delete (struct pios_thread *threadp)
 
uint32_t PIOS_Thread_Systime (void)
 
void PIOS_Thread_Sleep (uint32_t time_ms)
 
void PIOS_Thread_Sleep_Until (uint32_t *previous_ms, uint32_t increment_ms)
 
uint32_t PIOS_Thread_Get_Stack_Usage (struct pios_thread *threadp)
 
uint32_t PIOS_Thread_Get_Runtime (struct pios_thread *threadp)
 
void PIOS_Thread_Scheduler_Suspend (void)
 
void PIOS_Thread_Scheduler_Resume (void)
 
bool PIOS_Thread_Period_Elapsed (const uint32_t prev_systime, const uint32_t increment_ms)
 Determine if a period has elapsed since a datum. More...
 
struct pios_thread * PIOS_Thread_WrapCurrentThread (const char *namep)
 Creates a handle for the current thread. More...
 
void PIOS_Thread_ChangePriority (enum pios_thread_prio_e prio)
 

Detailed Description

Author
Tau Labs, http://taulabs.org, Copyright (C) 2014

Definition in file pios_thread.h.