source: rtems/c/src/lib/libbsp/lm32/milkymist/include/bsp.h @ 8affb5a9

4.115
Last change on this file since 8affb5a9 was 8affb5a9, checked in by Joel Sherrill <joel.sherrill@…>, on 08/20/10 at 21:22:27

2010-08-20 <yann.sionneau@…>

Add Milkymist BSP developed as part of GSOC 2010.

  • ChangeLog?, Makefile.am, README, bsp_specs, configure.ac, preinstall.am, Documentation/uart.txt, include/.cvsignore, include/bsp.h, include/system_conf.h, include/tm27.h, make/custom/milkymist.cfg, startup/linkcmds: New files.
  • Property mode set to 100644
File size: 1.7 KB
Line 
1/*  bsp.h
2 *
3 *  This include file contains all board IO definitions.
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.rtems.com/license/LICENSE.
8 *
9 *  $Id$
10 *
11 *  Yann Sionneau <yann.sionneau@telecom-sudparis.eu>, (GSoC 2010)
12 *  Telecom SudParis
13 */
14
15#ifndef _BSP_H
16#define _BSP_H
17
18#include <stdint.h>
19#include <bspopts.h>
20
21#include <rtems.h>
22#include <rtems/console.h>
23#include <rtems/clockdrv.h>
24
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30#define BSP_DIRTY_MEMORY 1
31
32#define BSP_HAS_FRAME_BUFFER 1
33
34#define GPIO_DRIVER_TABLE_ENTRY { gpio_initialize, \
35gpio_open, gpio_close, gpio_read, gpio_write, gpio_control}
36
37  /*
38   * lm32 requires certain aligment of mbuf because unaligned uint32_t
39   * accesses are not handled properly.
40   */
41
42#define CPU_U32_FIX
43
44#if defined(RTEMS_NETWORKING)
45#include <rtems/rtems_bsdnet.h>
46struct rtems_bsdnet_ifconfig;
47extern int rtems_minimac_driver_attach (struct rtems_bsdnet_ifconfig *config,
48                                        int attaching);
49#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_minimac_driver_attach
50#define RTEMS_BSP_NETWORK_DRIVER_NAME "minimac0"
51#endif
52
53  /*
54   *  Simple spin delay in microsecond units for device drivers.
55   *  This is very dependent on the clock speed of the target.
56   */
57
58#define rtems_bsp_delay( microseconds ) \
59  { \
60  }
61
62/* functions */
63lm32_isr_entry set_vector(                     /* returns old vector */
64  rtems_isr_entry     handler,                  /* isr routine        */
65  rtems_vector_number vector,                   /* vector number      */
66  int                 type                      /* RTEMS or RAW intr  */
67);
68
69#ifdef __cplusplus
70}
71#endif
72
73#endif
74/* end of include file */
Note: See TracBrowser for help on using the repository browser.