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 |
---|
27 | extern "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, \ |
---|
35 | gpio_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> |
---|
46 | struct rtems_bsdnet_ifconfig; |
---|
47 | extern 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 */ |
---|
63 | lm32_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 */ |
---|