source: rtems/c/src/lib/libbsp/arm/csb337/include/bsp.h @ b759b04

4.104.114.84.95
Last change on this file since b759b04 was b759b04, checked in by Jay Monkman <jtm@…>, on Jul 15, 2004 at 6:16:16 AM

2004-07-15 Jay Monkman

  • .cvsignore, ChangeLog?, Makefile.am, README, bsp_specs, configure.ac, times, console/uarts.c, include/.cvsignore, include/bsp.h, include/tm27.h, network/.cvsignore, network/network.c, start/.cvsignore, start/start.S, startup/.cvsignore, startup/bspstart.c, startup/exit.c, startup/linkcmds, startup/memmap.c: New files.
  • Property mode set to 100644
File size: 1.5 KB
Line 
1/*
2 * CSB337 BSP header file
3 *
4 * Copyright (c) 2004 by Cogent Computer Systems
5 * Writtent 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.OARcorp.com/rtems/license.html.
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/console.h>
26#include <rtems/clockdrv.h>
27#include <libchip/serial.h>
28
29
30/* What is the input clock freq in hertz? */
31#define BSP_MAIN_FREQ 3686400      /* 3.6864 MHz */
32#define BSP_SLCK_FREQ   32768      /* 32.768 KHz */
33
34/* What is the last interrupt? */
35#define BSP_MAX_INT AT91RM9200_MAX_INT
36
37console_tbl *BSP_get_uart_from_minor(int minor);
38static inline int32_t BSP_get_baud(void) {return 38400;}
39
40/* How many serial ports? */
41#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 1
42
43/* How big should the interrupt stack be? */
44#define CONFIGURE_INTERRUPT_STACK_MEMORY  (16 * 1024)
45
46extern rtems_configuration_table BSP_Configuration;
47
48#define ST_PIMR_PIV     33      /* 33 ticks of the 32.768Khz clock ~= 1msec
49 
50/*
51 * Network driver configuration
52 */
53extern struct rtems_bsdnet_ifconfig *config;
54
55/* Change these to match your board */
56int rtems_at91rm9200_emac_attach(struct rtems_bsdnet_ifconfig *config, int attaching);
57#define RTEMS_BSP_NETWORK_DRIVER_NAME   "eth0"
58#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_at91rm9200_emac_attach
59
60#ifdef __cplusplus
61}
62#endif
63
64#endif /* __BSP_H__ */
65
Note: See TracBrowser for help on using the repository browser.