source: rtems/c/src/lib/libbsp/mips/hurricane/include/bsp.h @ 9b4422a2

4.115
Last change on this file since 9b4422a2 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 1.8 KB
Line 
1/**
2 *  @file
3 * 
4 */
5
6/*
7 *  COPYRIGHT (c) 1989-2012.
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.com/license/LICENSE.
13 */
14
15#ifndef _BSP_H
16#define _BSP_H
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22#include <bspopts.h>
23
24#include <rtems.h>
25#include <rtems/iosupp.h>
26#include <rtems/console.h>
27#include <rtems/clockdrv.h>
28#include <libcpu/rm5231.h>
29
30extern void WriteDisplay( char * string );
31
32extern uint32_t mips_get_timer( void );
33
34#define BSP_FEATURE_IRQ_EXTENSION
35#define BSP_SHARED_HANDLER_SUPPORT      1
36
37#define CPU_CLOCK_RATE_MHZ     (200)
38#define CLOCKS_PER_MICROSECOND ( CPU_CLOCK_RATE_MHZ ) /* equivalent to CPU clock speed in MHz */
39
40/*
41 *  Simple spin delay in microsecond units for device drivers.
42 *  This is very dependent on the clock speed of the target.
43 *
44 *  NOTE: This macro generates a warning like "integer constant out
45 *        of range" which is safe to ignore.  In 64 bit mode, unsigned32
46 *        types are actually 64 bits long so that comparisons between
47 *        unsigned32 types and pointers are valid.  The warning is caused
48 *        by code in the delay macro that is necessary for 64 bit mode.
49 */
50
51#define rtems_bsp_delay( microseconds ) \
52  { \
53     uint32_t _end_clock = \
54          mips_get_timer() + microseconds * CLOCKS_PER_MICROSECOND; \
55     _end_clock %= 0x100000000;  /* make sure result is 32 bits */ \
56     \
57     /* handle timer overflow, if necessary */ \
58     while ( _end_clock < mips_get_timer() );  \
59     \
60     while ( _end_clock > mips_get_timer() ); \
61  }
62
63/* Constants */
64
65#define RAM_START 0
66#define RAM_END   0x100000
67
68#ifdef __cplusplus
69}
70#endif
71
72#endif  /* __HURRICANE_BSP_h */
Note: See TracBrowser for help on using the repository browser.