source: rtems/c/src/lib/libbsp/mips/genmongoosev/include/bsp.h @ 0c0181d

4.115
Last change on this file since 0c0181d was 0c0181d, checked in by Jennifer Averett <jennifer.averett@…>, on 04/04/12 at 13:39:46

PR 1993 - Convert MIPS to PIC IRQ model

  • Property mode set to 100644
File size: 1.4 KB
Line 
1/**
2 *  @file
3 * 
4 *  This include file contains some definitions specific to a board
5 *  based upon the generic capabilities of a Mongoose-V.
6 */
7
8/*
9 *  COPYRIGHT (c) 1989-2012.
10 *  On-Line Applications Research Corporation (OAR).
11 *
12 *  The license and distribution terms for this file may be
13 *  found in the file LICENSE in this distribution or at
14 *  http://www.rtems.com/license/LICENSE.
15 *
16 *  $Id$
17 */
18
19#ifndef _BSP_H
20#define _BSP_H
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26#include <bspopts.h>
27
28#include <rtems.h>
29#include <rtems/iosupp.h>
30#include <rtems/console.h>
31#include <rtems/clockdrv.h>
32#include <libcpu/mongoose-v.h>
33
34#define BSP_FEATURE_IRQ_EXTENSION
35#define BSP_SHARED_HANDLER_SUPPORT      1
36
37#ifndef CPU_CLOCK_RATE
38#define CLOCK_RATE      12000000
39#endif
40
41#define CPU_CLOCK_RATE_HZ       CLOCK_RATE
42#define CPU_CLOCK_RATE_MHZ      (CLOCK_RATE/1000000)
43
44/*
45 * Useful defines set here so we can avoid duplicating them all over
46 * creation.
47 *
48 */
49
50/*
51 * assertSoftwareInt defined in vectorisrs.c the prototype is here so
52 * userspace code can get to it directly.
53 *  */
54
55extern void assertSoftwareInterrupt(uint32_t);
56
57#define CLOCK_VECTOR    MONGOOSEV_IRQ_TIMER1
58
59/* functions */
60
61rtems_isr_entry set_vector( rtems_isr_entry, rtems_vector_number, int );
62
63
64/* from start.S */
65extern void promCopyIcacheFlush(void);
66extern void promCopyDcacheFlush(void);
67
68#ifdef __cplusplus
69}
70#endif
71
72#endif
73
Note: See TracBrowser for help on using the repository browser.