diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-12-04 22:54:49 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-12-04 22:54:49 +0000 |
commit | e44ffe5e1e029969d90c1e368d3156ac48de76c2 (patch) | |
tree | 108ea247eabf47c31ee0f093085858a213e4b603 /c/src/lib/libbsp/lm32/lm32_evr/include/bsp.h | |
parent | 2008-12-04 Jukka Pietarinen <jukka.pietarinen@mrf.fi> (diff) | |
download | rtems-e44ffe5e1e029969d90c1e368d3156ac48de76c2.tar.bz2 |
2008-12-04 Jukka Pietarinen <jukka.pietarinen@mrf.fi>
* ChangeLog, Makefile.am, bsp_specs, configure.ac, preinstall.am,
include/.cvsignore, include/bsp.h, include/coverhd.h,
include/irq-config.h, include/system_conf.h, include/tm27.h,
startup/linkcmds: New files.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/lm32/lm32_evr/include/bsp.h | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/lm32/lm32_evr/include/bsp.h b/c/src/lib/libbsp/lm32/lm32_evr/include/bsp.h new file mode 100644 index 0000000000..6d6c58ee11 --- /dev/null +++ b/c/src/lib/libbsp/lm32/lm32_evr/include/bsp.h @@ -0,0 +1,81 @@ +/* bsp.h + * + * This include file contains all board IO definitions. + * + * XXX : put yours in here + * + * COPYRIGHT (c) 1989-1999. + * On-Line Applications Research Corporation (OAR). + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.com/license/LICENSE. + * + * $Id$ + * + * Jukka Pietarinen <jukka.pietarinen@mrf.fi>, 2008, + * Micro-Research Finland Oy + */ + +#ifndef _BSP_H +#define _BSP_H + +#ifdef __cplusplus +extern "C" { +#endif + +#include <stdint.h> +#include <bspopts.h> + +#include <rtems.h> +#include <rtems/console.h> +#include <rtems/clockdrv.h> + +#define BSP_GET_WORK_AREA_DEBUG + +#define BSP_DIRTY_MEMORY 1 + + /* + * lm32 requires certain aligment of mbuf because unaligned uint32_t + * accesses are not handled properly. + */ + +#define CPU_U32_FIX + +extern int rtems_tsmac_driver_attach(struct rtems_bsdnet_ifconfig *config, + int attaching); + +#define RTEMS_BSP_NETWORK_DRIVER_NAME "TSMAC0" +#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_tsmac_driver_attach + + /* + * Due to a hardware design error (RJ45 connector with 10baseT magnetics) + * we are forced to use 10baseT mode. + */ + +#define TSMAC_FORCE_10BASET + + /* + * Simple spin delay in microsecond units for device drivers. + * This is very dependent on the clock speed of the target. + */ + +#define rtems_bsp_delay( microseconds ) \ + { \ + } + +/* functions */ +#if 0 +rtems_isr_entry set_vector( /* returns old vector */ + rtems_isr_entry handler, /* isr routine */ + rtems_vector_number vector, /* vector number */ + int type /* RTEMS or RAW intr */ +); +#endif + +#ifdef __cplusplus +} +#endif + +#endif +/* end of include file */ |