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

4.104.114.95
Last change on this file since 4130d8e2 was 4130d8e2, checked in by Joel Sherrill <joel.sherrill@…>, on 12/11/07 at 15:50:25

2007-12-11 Joel Sherrill <joel.sherrill@…>

  • include/bsp.h, startup/bspstart.c: Eliminate copies of the Configuration Table. Use the RTEMS provided accessor macros to obtain configuration fields.
  • Property mode set to 100644
File size: 1.2 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/* What is the input clock freq in hertz? */
31#define BSP_OSC_FREQ  16000000    /* 16 MHz oscillator */
32#define BSP_XTAL_FREQ 32768       /* 32.768 KHz crystal */
33
34/* How many serial ports? */
35#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2
36
37int get_perclk1_freq(void);
38
39/*
40 * Network driver configuration
41 */
42extern struct rtems_bsdnet_ifconfig *config;
43
44/* Change these to match your board */
45int rtems_mc9328mxl_enet_attach(struct rtems_bsdnet_ifconfig *config,
46                                void *chip);
47#define RTEMS_BSP_NETWORK_DRIVER_NAME   "eth0"
48#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_mc9328mxl_enet_attach
49
50#ifdef __cplusplus
51}
52#endif
53
54#endif /* _BSP_H */
55
Note: See TracBrowser for help on using the repository browser.