source: rtems/c/src/lib/libbsp/powerpc/qemuppc/include/bsp.h @ 3064411

4.115
Last change on this file since 3064411 was 3064411, checked in by Joel Sherrill <joel.sherrill@…>, on 10/17/14 at 15:08:01

powerpc/qemuppc: Fix warnings

  • Property mode set to 100644
File size: 934 bytes
Line 
1/*
2 *  This include file contains some definitions specific to the
3 *  qemu powerpc Prep simulator
4 */
5
6/*
7 *  COPYRIGHT (c) 1989-2014.
8 *  On-Line Applications Research Corporation (OAR).
9 *
10 *  The license and distribution terms for this file may be
11 *  found in the file LICENSE in this distribution or at
12 *  http://www.rtems.org/license/LICENSE.
13 */
14
15#ifndef _BSP_H
16#define _BSP_H
17
18#ifndef ASM
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24#include <bspopts.h>
25#include <bsp/default-initial-extension.h>
26
27#include <rtems.h>
28#include <rtems/iosupp.h>
29#include <rtems/console.h>
30#include <rtems/clockdrv.h>
31
32/*
33 *  Convert decrementer value to tenths of microseconds (used by shared timer
34 *  driver).
35 */
36#define BSP_Convert_decrementer( _value ) \
37  ((int) (((_value) * 10) / bsp_clicks_per_usec))
38
39/*
40 * Prototypes for methods that are referenced from .S
41 */
42void cmain(void);
43
44#ifdef __cplusplus
45}
46#endif
47
48#endif /* !ASM */
49
50#endif
Note: See TracBrowser for help on using the repository browser.