source: rtems/c/src/lib/libbsp/arm/gumstix/include/bsp.h @ d21f75f

4.104.115
Last change on this file since d21f75f was d21f75f, checked in by Joel Sherrill <joel.sherrill@…>, on 09/16/09 at 20:43:40

2009-09-16 Roxana Leontie <roxana.leontie@…>

  • configure.ac, fb/fb.c, include/bsp.h: updates made for porting to Nano-X and make testing easyer
  • Property mode set to 100755
File size: 1.8 KB
Line 
1/*
2 *  By Yang Xi <hiyangxi@gmail.com>.
3 *
4 *  The license and distribution terms for this file may be
5 *  found in the file LICENSE in this distribution or at
6 *  http://www.rtems.com/license/LICENSE.
7 *
8 *  $Id$
9 */
10
11#ifndef _BSP_H
12#define _BSP_H
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
18#include <bspopts.h>
19
20#include <rtems.h>
21#include <rtems/console.h>
22#include <rtems/clockdrv.h>
23#include <libchip/serial.h>
24
25#define BSP_HAS_FRAME_BUFFER 1
26
27/* What is the input clock freq in hertz */
28#define BSP_MAIN_FREQ 3686400      /* 3.6864 MHz */
29#define BSP_SLCK_FREQ   32768      /* 32.768 KHz */
30
31/* What is the last interrupt */
32#define BSP_MAX_INT AT91RM9200_MAX_INT
33
34console_tbl *BSP_get_uart_from_minor(int minor);
35static inline int32_t BSP_get_baud(void) {return 115200;}
36
37/* How big should the interrupt stack be? */
38#define CONFIGURE_INTERRUPT_STACK_MEMORY  (16 * 1024)
39
40extern rtems_configuration_table Configuration;
41
42#define ST_PIMR_PIV     33      /* 33 ticks of the 32.768Khz clock ~= 1msec */
43
44#define outport_byte(port,val) *((unsigned char volatile*)(port)) = (val)
45#define inport_byte(port,val) (val) = *((unsigned char volatile*)(port))
46#define outport_word(port,val) *((unsigned short volatile*)(port)) = (val)
47#define inport_word(port,val) (val) = *((unsigned short volatile*)(port))
48
49struct rtems_bsdnet_ifconfig;
50extern int rtems_ne_driver_attach(struct rtems_bsdnet_ifconfig *, int);
51#define BSP_NE2000_NETWORK_DRIVER_NAME      "ne1"
52#define BSP_NE2000_NETWORK_DRIVER_ATTACH    rtems_ne_driver_attach
53
54#ifndef RTEMS_BSP_NETWORK_DRIVER_NAME
55#define RTEMS_BSP_NETWORK_DRIVER_NAME   BSP_NE2000_NETWORK_DRIVER_NAME
56#endif
57
58#ifndef RTEMS_BSP_NETWORK_DRIVER_ATTACH
59#define RTEMS_BSP_NETWORK_DRIVER_ATTACH BSP_NE2000_NETWORK_DRIVER_ATTACH
60#endif
61
62#ifdef __cplusplus
63}
64#endif
65
66#endif /* _BSP_H */
67
Note: See TracBrowser for help on using the repository browser.