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 10/08/14 at 20:06:52

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
RevLine 
[0c0181d]1/**
2 *  @file
3 * 
[f849f3e]4 *  This include file contains some definitions specific to a board
5 *  based upon the generic capabilities of a Mongoose-V.
[0c0181d]6 */
7
8/*
9 *  COPYRIGHT (c) 1989-2012.
[f849f3e]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
[c499856]14 *  http://www.rtems.org/license/LICENSE.
[f849f3e]15 */
16
[34c4852]17#ifndef _BSP_H
18#define _BSP_H
[f849f3e]19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
[fddaaf12]24#include <bspopts.h>
[a052181]25#include <bsp/default-initial-extension.h>
[fddaaf12]26
[f849f3e]27#include <rtems.h>
[99ddf76]28#include <rtems/iosupp.h>
29#include <rtems/console.h>
30#include <rtems/clockdrv.h>
[8536b67]31#include <bsp/mongoose-v.h>
[f849f3e]32
[0c0181d]33#define BSP_FEATURE_IRQ_EXTENSION
34#define BSP_SHARED_HANDLER_SUPPORT      1
35
[a355e3ea]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
[6128a4a]49/*
[a355e3ea]50 * assertSoftwareInt defined in vectorisrs.c the prototype is here so
51 * userspace code can get to it directly.
52 *  */
53
[94993c0]54extern void assertSoftwareInterrupt(uint32_t);
[a355e3ea]55
56#define CLOCK_VECTOR    MONGOOSEV_IRQ_TIMER1
57
[5e9c2be]58/* from start.S */
59extern void promCopyIcacheFlush(void);
60extern void promCopyDcacheFlush(void);
61
[f849f3e]62#ifdef __cplusplus
63}
64#endif
65
66#endif
[7de58239]67
Note: See TracBrowser for help on using the repository browser.