RTEMS
6.3
Toggle main menu visibility
Loading...
Searching...
No Matches
bsps
arm
csb337
include
bsp.h
Go to the documentation of this file.
1
8
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
31
32
#include <bspopts.h>
33
#include <
bsp/default-initial-extension.h
>
34
35
#include <
rtems.h
>
36
37
#ifdef __cplusplus
38
extern
"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
*/
54
typedef
struct
_console_tbl
console_tbl;
55
console_tbl *BSP_get_uart_from_minor(
int
minor);
56
57
static
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
64
struct
rtems_bsdnet_ifconfig;
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
76
77
#endif
/* _BSP_H */
78
default-initial-extension.h
This header file provides the default definition of BSP_INITIAL_EXTENSION.
rtems.h
This header file defines the RTEMS Classic API.
_console_tbl
Definition
serial.h:136
Generated by
1.18.0