cpu.h
Go to the documentation of this file.
1 /*
2  * Copyright(C) 2017, 2016, Imagination Technologies Limited and/or its
3  * affiliated group companies.
4  *
5  * This file is subject to the terms and conditions of the GNU Lesser
6  * General Public License v2.1. See the file LICENSE in the top level
7  * directory for more details.
8  *
9  */
10 
23 #ifndef CPU_H
24 #define CPU_H
25 
26 #include <stdint.h>
27 #include "cpu_conf.h"
28 #include "thread.h"
29 #include "irq.h"
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
40 static inline void cpu_print_last_instruction(void)
41 {
42  /* This function must exist else RIOT won't compile */
43 }
44 
48 void cpu_init(void);
49 
55 static inline void mips32r2_isr_end(void)
56 {
59  }
60 }
61 
62 #ifdef __cplusplus
63 }
64 #endif
65 
66 #endif /* CPU_H */
67 
cpu_print_last_instruction
static void cpu_print_last_instruction(void)
Print the last instruction's address.
Definition: cpu.h:40
mips32r2_isr_end
static void mips32r2_isr_end(void)
Trigger a conditional context scheduler run / context switch.
Definition: cpu.h:55
thread_yield_higher
void thread_yield_higher(void)
Lets current thread yield in favor of a higher prioritized thread.
sched_context_switch_request
volatile unsigned int sched_context_switch_request
Flag indicating whether a context switch is necessary after handling an interrupt.
cpu_init
void cpu_init(void)
Initialization of the CPU.
irq.h
IRQ driver interface.