Go to the documentation of this file.
45 #define ISR(a,b) void __attribute__((naked, interrupt (a))) b(void)
98 static inline void __attribute__((always_inline))
__enter_isr(
void)
102 __asm__(
"mov.w %0,r1" : :
"i"(&__stack));
109 static inline void __attribute__((always_inline))
__exit_isr(
void)
Common CPU definitions for MSP430.
static void __restore_context(void)
Restore the thread context from inside an ISR.
static void __enter_isr(void)
Run this code on entering interrupt routines.
Scheduler API definition.
thread_t * sched_run(void)
Triggers the scheduler to schedule the next thread.
void msp430_cpu_init(void)
Initialize the cpu.
static thread_t * thread_get_active(void)
Returns a pointer to the Thread Control Block of the currently running thread.
volatile int __irq_is_in
The current ISR state (inside or not)
volatile unsigned int sched_context_switch_request
Flag indicating whether a context switch is necessary after handling an interrupt.
static void cpu_print_last_instruction(void)
Print the last instruction's address.
static void __exit_isr(void)
Run this code on exiting interrupt routines.
static void __save_context(void)
Save the current thread context from inside an ISR.