Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Main Page
Related Pages
Modules
Data Structures
Data Structures
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
d
e
f
g
h
j
l
m
n
o
p
r
s
t
u
w
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Related Functions
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
p
q
r
s
t
u
v
w
x
z
Enumerations
_
a
b
c
d
e
g
h
i
k
l
m
n
p
q
r
s
t
u
v
x
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
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
{
57
if
(
sched_context_switch_request
) {
58
thread_yield_higher
();
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.
Generated on Tue Nov 24 2020 19:46:49 by
1.8.17