board.h
Go to the documentation of this file.00001 #ifndef _DEV_BOARD_H_
00002 #define _DEV_BOARD_H_
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105 #include <dev/debug.h>
00106
00107 #if defined(GBAXPORT2)
00108 #define DEV_DEBUG_NAME "con"
00109 #endif
00110
00111 #if defined(OLIMEX_LPCE2294)
00112 #define DEV_DEBUG devDebug1
00113 #define DEV_DEBUG_NAME "uart1"
00114 #endif
00115
00116 #if defined(DBGU_BASE)
00117 #define DEV_DEBUG devDebug
00118 #define DEV_DEBUG_NAME "dbgu"
00119 #endif
00120
00121 #ifndef DEV_DEBUG
00122 #define DEV_DEBUG devDebug0
00123 #endif
00124 #ifndef DEV_DEBUG_NAME
00125 #define DEV_DEBUG_NAME "uart0"
00126 #endif
00127
00128
00129
00130
00131 #if defined(__AVR__) || defined(__NUT_EMULATION__)
00132
00133 #include <dev/usartavr.h>
00134 #define DEV_UART0 devUsartAvr0
00135 #define DEV_UART1 devUsartAvr1
00136 #define DEV_UART1_NAME "uart1"
00137
00138 #elif defined(MCU_AT91)
00139
00140 #include <dev/usartat91.h>
00141 #define DEV_UART0 devUsartAt910
00142 #define DEV_UART1 devUsartAt911
00143 #define DEV_UART1_NAME "uart1"
00144
00145 #endif
00146
00147 #ifndef DEV_UART0
00148 #define DEV_UART0 devUart0
00149 #endif
00150 #ifndef DEV_UART0_NAME
00151 #define DEV_UART0_NAME "uart0"
00152 #endif
00153
00154 #ifndef DEV_UART
00155 #define DEV_UART DEV_UART0
00156 #endif
00157 #ifndef DEV_UART_NAME
00158 #define DEV_UART_NAME DEV_UART0_NAME
00159 #endif
00160
00161
00162
00163
00164 #if defined(ETHERNUT1) || defined(CHARON2) || defined(XNUT_100) || defined(XNUT_105) ||\
00165 defined(MMNET01) || defined(MMNET02) || defined(MMNET03) || defined(MMNET04) ||\
00166 defined(ARTHERNET1)
00167 #include <dev/nicrtl.h>
00168 #elif defined(ETHERNUT2)||\
00169 defined(MMNET101) || defined(MMNET102) || defined(MMNET103) || defined(MMNET104)
00170 #include <dev/lanc111.h>
00171 #elif defined(ETHERNUT3) || defined(ELEKTOR_IR1)
00172 #include <dev/dm9000e.h>
00173 #elif defined(WOLF)
00174 #include <dev/ax88796.h>
00175 #elif defined(OLIMEX_LPCE2294)
00176 #include <dev/cs8900a.h>
00177 #elif defined(AT91SAM7X_EK) || defined(AT91SAM9260_EK) || defined(ETHERNUT5)
00178 #include <dev/at91sam7x_emac.h>
00179 #endif
00180
00181 #ifndef DEV_ETHER
00182 #define DEV_ETHER devEth0
00183 #endif
00184 #ifndef DEV_ETHER_NAME
00185 #define DEV_ETHER_NAME "eth0"
00186 #endif
00187
00188
00189
00190
00191 #ifndef DEV_SPIBUS
00192
00193 #ifndef DEV_SPIBUS0
00194 #if defined(__AVR__)
00195 #include <dev/spibus_avr.h>
00196 #define DEV_SPIBUS0 spiBus0Avr
00197 #elif defined(ETHERNUT3)
00198 #include <dev/spibus_npl.h>
00199 #define DEV_SPIBUS0 spiBusNpl
00200 #elif defined(MCU_AT91) && defined(SPI0_BASE)
00201 #include <dev/spibus_at91.h>
00202 #define DEV_SPIBUS0 spiBus0At91
00203 #endif
00204 #endif
00205
00206 #ifdef DEV_SPIBUS0
00207 #define DEV_SPIBUS DEV_SPIBUS0
00208 #endif
00209
00210 #endif
00211
00212
00213
00214
00215 #ifndef RTC_CHIP
00216 #if defined(ETHERNUT3)
00217 #define RTC_CHIP rtcX12x6
00218 #include <dev/x12rtc.h>
00219 #include <dev/pcf8563.h>
00220 #elif defined(XNUT_100) || defined(XNUT_105) ||\
00221 defined(MMNET102) || defined(MMNET103) || defined(MMNET104) ||\
00222 defined(MMNET02) || defined(MMNET03) || defined(MMNET04)
00223 #define RTC_CHIP rtcDs1307
00224 #include <dev/ds1307rtc.h>
00225 #elif defined(ELEKTOR_IR1)
00226 #define RTC_CHIP rtcPcf8563
00227 #include <dev/pcf8563.h>
00228 #endif
00229 #endif
00230
00231
00232
00233
00234 #if defined(ETHERNUT3)
00235 #define DEV_MMCARD0 devNplMmc0
00236 #include <dev/nplmmc.h>
00237 #elif defined(AT91SAM7X_EK)
00238 #define DEV_MMCARD0 devAt91SpiMmc0
00239 #include <dev/spimmc_at91.h>
00240 #elif defined(AT91SAM9260_EK)
00241 #define DEV_MMCARD0 devAt91Mci0
00242 #define DEV_MMCARD0_NAME "MCI0"
00243 #include <dev/at91_mci.h>
00244 #elif defined(ELEKTOR_IR1)
00245 #define DEV_MMCARD0 devSbi0MmCard0
00246 #include <dev/sbi_mmc.h>
00247 #endif
00248
00249 #if defined(DEV_MMCARD0)
00250 #ifndef DEV_MMCARD
00251 #define DEV_MMCARD DEV_MMCARD0
00252 #endif
00253 #ifndef DEV_MMCARD0_NAME
00254 #define DEV_MMCARD0_NAME "MMC0"
00255 #endif
00256 #ifndef DEV_MMCARD_NAME
00257 #define DEV_MMCARD_NAME DEV_MMCARD0_NAME
00258 #endif
00259 #endif
00260
00261 #endif
00262