source: rtems/c/src/lib/libbsp/mips/genmongoosev/include/bsp.h @ 8536b67

4.115
Last change on this file since 8536b67 was 8536b67, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 8, 2014 at 8:06:52 PM

Move Mongoose-V specific devices into BSP.

Putting the duart in libcpu was very optimistic and presumptuous.
It has never been used again on another SoC and is BSP specific.

  • Property mode set to 100644
File size: 1.3 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.org/license/LICENSE.
15 */
16
17#ifndef _BSP_H
18#define _BSP_H
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#include <bsp/mongoose-v.h>
32
33#define BSP_FEATURE_IRQ_EXTENSION
34#define BSP_SHARED_HANDLER_SUPPORT      1
35
36#ifndef CPU_CLOCK_RATE
37#define CLOCK_RATE      12000000
38#endif
39
40#define CPU_CLOCK_RATE_HZ       CLOCK_RATE
41#define CPU_CLOCK_RATE_MHZ      (CLOCK_RATE/1000000)
42
43/*
44 * Useful defines set here so we can avoid duplicating them all over
45 * creation.
46 *
47 */
48
49/*
50 * assertSoftwareInt defined in vectorisrs.c the prototype is here so
51 * userspace code can get to it directly.
52 *  */
53
54extern void assertSoftwareInterrupt(uint32_t);
55
56#define CLOCK_VECTOR    MONGOOSEV_IRQ_TIMER1
57
58/* from start.S */
59extern void promCopyIcacheFlush(void);
60extern void promCopyDcacheFlush(void);
61
62#ifdef __cplusplus
63}
64#endif
65
66#endif
67
Note: See TracBrowser for help on using the repository browser.