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

Go to the source code of this file.

Macros

#define thread_scheduler_service()
 
#define systick_service()
 

Functions

 __attribute__ ((naked))
 timer interrupt, increment systick, and potentially switch thread context More...
 

Macro Definition Documentation

#define systick_service ( )
Value:
cpu_systick_clear()
volatile brisc_scheduler_t brisc_scheduler_state
Definition: brisc_sched.c:37

Definition at line 49 of file brisc_irq.c.

#define thread_scheduler_service ( )
Value:
register cpu_reg_t context_sp; \
if ( ( context_sp = b_thread_schedule_next() ) != 0 ) \
cpu_wr_sp( context_sp )
cpu_reg_t b_thread_schedule_next(void)
determine which thread gets this time slice.
Definition: brisc_sched.c:41

Definition at line 41 of file brisc_irq.c.

Function Documentation

__attribute__ ( (naked)  )

timer interrupt, increment systick, and potentially switch thread context

software interrupt, thread yield, give up remaining prio and switch context.


Definition at line 54 of file brisc_irq.c.