BRISCITS  0.1
RISC "Real-Time" Scheduler
Functions | Variables
brisc_sched.c File Reference
#include <brisc_sched.h>
#include <string.h>

Go to the source code of this file.

Functions

cpu_reg_t b_thread_schedule_next (void)
 determine which thread gets this time slice. More...
 
volatile brisc_thread_t * b_thread_state (uint8_t id)
 

Variables

volatile brisc_scheduler_t brisc_scheduler_state
 

Function Documentation

cpu_reg_t b_thread_schedule_next ( void  )

determine which thread gets this time slice.


Returns
the context (stack pointer) to the thread to allocate this time slice to.

Definition at line 41 of file brisc_sched.c.

volatile brisc_thread_t* b_thread_state ( uint8_t  id)

Returns
the thread context for a given thread descriptor

Definition at line 63 of file brisc_sched.c.

Variable Documentation

volatile brisc_scheduler_t brisc_scheduler_state

Definition at line 37 of file brisc_sched.c.