cpu.h
Go to the documentation of this file.
1 #ifndef __CPU_H__
2 #define __CPU_H__
3 
4 #include <stdint.h>
5 #include "register_remap.h"
6 
7 //*****************************************************************************
8 //
9 // If building with a C++ compiler, make all of the definitions in this header
10 // have a C binding.
11 //
12 //*****************************************************************************
13 #ifdef __cplusplus
14 extern "C"
15 {
16 #endif
17 
18 //*****************************************************************************
19 //
20 // Prototypes.
21 //
22 //*****************************************************************************
23 extern uint32_t CPU_cpsid(void);
24 extern uint32_t CPU_cpsie(void);
25 extern uint32_t CPU_primask(void);
26 extern void CPU_wfi(void);
27 extern uint32_t CPU_basepriGet(void);
28 extern void CPU_basepriSet(uint32_t newBasepri);
29 
30 #if defined(ewarm)
31 extern void __no_operation();
32 #endif
33 
34 #if defined(gcc)
35 extern void __no_operation();
36 #endif
37 
38 #if defined(keil)
39 extern void __no_operation();
40 #endif
41 
42 
43 //*****************************************************************************
44 //
45 // Mark the end of the C bindings section for C++ compilers.
46 //
47 //*****************************************************************************
48 #ifdef __cplusplus
49 }
50 #endif
51 
52 #endif // __CPU_H__
53 
uint32_t CPU_cpsie(void)
void CPU_wfi(void)
uint32_t CPU_cpsid(void)
uint32_t CPU_primask(void)
void CPU_basepriSet(uint32_t newBasepri)
uint32_t CPU_basepriGet(void)

Copyright 2014, Texas Instruments Incorporated