[583ef3a5] | 1 | /** |
---|
| 2 | * @file |
---|
| 3 | * |
---|
[c991eeec] | 4 | * @ingroup RTEMSBSPsARMCSB337 |
---|
[583ef3a5] | 5 | * |
---|
| 6 | * @brief Global BSP definitions. |
---|
| 7 | */ |
---|
| 8 | |
---|
[b759b04] | 9 | /* |
---|
| 10 | * CSB337 BSP header file |
---|
| 11 | * |
---|
| 12 | * Copyright (c) 2004 by Cogent Computer Systems |
---|
| 13 | * Writtent by Jay Monkman <jtm@lopingdog.com> |
---|
| 14 | * |
---|
| 15 | * The license and distribution terms for this file may be |
---|
| 16 | * found in the file LICENSE in this distribution or at |
---|
[c499856] | 17 | * http://www.rtems.org/license/LICENSE. |
---|
[b759b04] | 18 | */ |
---|
[9cff822a] | 19 | #ifndef LIBBSP_ARM_CSB337_BSP_H |
---|
| 20 | #define LIBBSP_ARM_CSB337_BSP_H |
---|
[b759b04] | 21 | |
---|
[c991eeec] | 22 | /** |
---|
| 23 | * @defgroup RTEMSBSPsARMCSB337 CSB337 |
---|
| 24 | * |
---|
| 25 | * @ingroup RTEMSBSPsARM |
---|
| 26 | * |
---|
| 27 | * @brief CSB337 Board Support Package. |
---|
| 28 | * |
---|
| 29 | * @{ |
---|
| 30 | */ |
---|
| 31 | |
---|
[b759b04] | 32 | #include <bspopts.h> |
---|
[a052181] | 33 | #include <bsp/default-initial-extension.h> |
---|
[b759b04] | 34 | |
---|
| 35 | #include <rtems.h> |
---|
| 36 | |
---|
[46dde0fc] | 37 | #ifdef __cplusplus |
---|
| 38 | extern "C" { |
---|
| 39 | #endif |
---|
| 40 | |
---|
[14cd67c] | 41 | #define BSP_FEATURE_IRQ_EXTENSION |
---|
[b759b04] | 42 | |
---|
| 43 | /* What is the input clock freq in hertz? */ |
---|
| 44 | #define BSP_MAIN_FREQ 3686400 /* 3.6864 MHz */ |
---|
| 45 | #define BSP_SLCK_FREQ 32768 /* 32.768 KHz */ |
---|
| 46 | |
---|
| 47 | /* What is the last interrupt? */ |
---|
| 48 | #define BSP_MAX_INT AT91RM9200_MAX_INT |
---|
| 49 | |
---|
[bc77bda] | 50 | /* |
---|
| 51 | * forward reference the type to avoid conflicts between libchip serial |
---|
| 52 | * and libchip rtc get and set register types. |
---|
| 53 | */ |
---|
| 54 | typedef struct _console_tbl console_tbl; |
---|
[b759b04] | 55 | console_tbl *BSP_get_uart_from_minor(int minor); |
---|
[bc77bda] | 56 | |
---|
[b759b04] | 57 | static inline int32_t BSP_get_baud(void) {return 38400;} |
---|
| 58 | |
---|
[3041f69] | 59 | #define ST_PIMR_PIV 33 /* 33 ticks of the 32.768Khz clock ~= 1msec */ |
---|
[32b8506] | 60 | |
---|
[583ef3a5] | 61 | /** |
---|
| 62 | * @brief Network driver configuration |
---|
[b759b04] | 63 | */ |
---|
[8bd4f61c] | 64 | struct rtems_bsdnet_ifconfig; |
---|
[b759b04] | 65 | |
---|
| 66 | /* Change these to match your board */ |
---|
| 67 | int rtems_at91rm9200_emac_attach(struct rtems_bsdnet_ifconfig *config, int attaching); |
---|
| 68 | #define RTEMS_BSP_NETWORK_DRIVER_NAME "eth0" |
---|
| 69 | #define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_at91rm9200_emac_attach |
---|
| 70 | |
---|
| 71 | #ifdef __cplusplus |
---|
| 72 | } |
---|
| 73 | #endif |
---|
| 74 | |
---|
[c991eeec] | 75 | /** @} */ |
---|
| 76 | |
---|
[34c4852] | 77 | #endif /* _BSP_H */ |
---|
[b759b04] | 78 | |
---|