source: rtems/c/src/lib/libbsp/arm/csb336/include/bsp.h @ b2d7cf06

4.104.115
Last change on this file since b2d7cf06 was b2d7cf06, checked in by Sebastian Huber <sebastian.huber@…>, on 04/30/10 at 14:41:12

2010-04-30 Sebastian Huber <sebastian.huber@…>

  • Makefile.am, preinstall.am: Added generic interrupt support modules.
  • include/bsp.h: Define BSP_FEATURE_IRQ_EXTENSION.
  • startup/bspstart.c, console/uart.c, network/network.c: Interrupt support changes.
  • Property mode set to 100644
File size: 1.1 KB
Line 
1/*
2 *  BSP CSB336 header file
3 *
4 *  Copyright (c) 2004 Cogent Computer Systems
5 *  Written by Jay Monkman <jtm@lopingdog.com>
6 *
7 *  The license and distribution terms for this file may be
8 *  found in the file LICENSE in this distribution or at
9 *
10 *  http://www.rtems.com/license/LICENSE.
11 *
12 *
13 *  $Id$
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 <mc9328mxl.h>
29
30#define BSP_FEATURE_IRQ_EXTENSION
31
32/* What is the input clock freq in hertz? */
33#define BSP_OSC_FREQ  16000000    /* 16 MHz oscillator */
34#define BSP_XTAL_FREQ 32768       /* 32.768 KHz crystal */
35
36int get_perclk1_freq(void);
37
38/*
39 * Network driver configuration
40 */
41extern struct rtems_bsdnet_ifconfig *config;
42
43/* Change these to match your board */
44int rtems_mc9328mxl_enet_attach(struct rtems_bsdnet_ifconfig *config,
45                                void *chip);
46#define RTEMS_BSP_NETWORK_DRIVER_NAME   "eth0"
47#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_mc9328mxl_enet_attach
48
49#ifdef __cplusplus
50}
51#endif
52
53#endif /* _BSP_H */
54
Note: See TracBrowser for help on using the repository browser.