RTEMS 5.2
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
bsp.h
Go to the documentation of this file.
1
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
17 * http://www.rtems.org/license/LICENSE.
18 */
19#ifndef LIBBSP_ARM_CSB337_BSP_H
20#define LIBBSP_ARM_CSB337_BSP_H
21
32#include <bspopts.h>
34
35#include <rtems.h>
36
37#ifdef __cplusplus
38extern "C" {
39#endif
40
41#define BSP_FEATURE_IRQ_EXTENSION
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
50/*
51 * forward reference the type to avoid conflicts between libchip serial
52 * and libchip rtc get and set register types.
53 */
54typedef struct _console_tbl console_tbl;
55console_tbl *BSP_get_uart_from_minor(int minor);
56
57static inline int32_t BSP_get_baud(void) {return 38400;}
58
59#define ST_PIMR_PIV 33 /* 33 ticks of the 32.768Khz clock ~= 1msec */
60
64struct rtems_bsdnet_ifconfig;
65
66/* Change these to match your board */
67int 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
77#endif /* _BSP_H */
78
DEFAULT_INITIAL_EXTENSION Support.
Definition: serial.h:117
Definition: deflate.c:115