RTEMS  5.1
bsp.h
Go to the documentation of this file.
1 
9 /*
10  * This include file contains some definitions specific to the
11  * qemu powerpc Prep simulator
12  */
13 
14 /*
15  * COPYRIGHT (c) 1989-2014.
16  * On-Line Applications Research Corporation (OAR).
17  *
18  * The license and distribution terms for this file may be
19  * found in the file LICENSE in this distribution or at
20  * http://www.rtems.org/license/LICENSE.
21  */
22 
23 #ifndef LIBBSP_POWERPC_QEMUPPC_BSP_H
24 #define LIBBSP_POWERPC_QEMUPPC_BSP_H
25 
36 #ifndef ASM
37 
38 #include <bspopts.h>
40 
41 #include <rtems.h>
42 
43 #ifdef __cplusplus
44 extern "C" {
45 #endif
46 
47 /*
48  * Convert decrementer value to tenths of microseconds (used by shared timer
49  * driver).
50  */
51 #define BSP_Convert_decrementer( _value ) \
52  ((int) (((_value) * 10) / bsp_clicks_per_usec))
53 
54 /*
55  * Prototypes for methods that are referenced from .S
56  */
57 void cmain(void);
58 
59 #ifdef __cplusplus
60 }
61 #endif
62 
63 #endif /* !ASM */
64 
67 #endif
DEFAULT_INITIAL_EXTENSION Support.