source: rtems/c/src/lib/libbsp/arm/csb337/include/bsp.h @ 583ef3a5

4.115
Last change on this file since 583ef3a5 was 583ef3a5, checked in by Chirayu Desai <cdesai@…>, on 12/09/13 at 15:56:25

arm: csb337: Add doxygen

  • Property mode set to 100644
File size: 1.5 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup arm_csb337
5 *
6 * @brief Global BSP definitions.
7 */
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.com/license/LICENSE.
18 */
19#ifndef _BSP_H
20#define _BSP_H
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26#include <bspopts.h>
27#include <bsp/default-initial-extension.h>
28
29#include <rtems.h>
30#include <rtems/console.h>
31#include <rtems/clockdrv.h>
32#include <libchip/serial.h>
33
34/**
35 * @defgroup arm_csb337 CSB337 Support
36 *
37 * @ingroup bsp_arm
38 *
39 * @brief CSB337 support package.
40 *
41 * @{
42 */
43
44#define BSP_FEATURE_IRQ_EXTENSION
45
46/* What is the input clock freq in hertz? */
47#define BSP_MAIN_FREQ 3686400      /* 3.6864 MHz */
48#define BSP_SLCK_FREQ   32768      /* 32.768 KHz */
49
50/* What is the last interrupt? */
51#define BSP_MAX_INT AT91RM9200_MAX_INT
52
53console_tbl *BSP_get_uart_from_minor(int minor);
54static inline int32_t BSP_get_baud(void) {return 38400;}
55
56#define ST_PIMR_PIV     33      /* 33 ticks of the 32.768Khz clock ~= 1msec */
57
58/**
59 * @brief Network driver configuration
60 */
61extern struct rtems_bsdnet_ifconfig *config;
62
63/* Change these to match your board */
64int rtems_at91rm9200_emac_attach(struct rtems_bsdnet_ifconfig *config, int attaching);
65#define RTEMS_BSP_NETWORK_DRIVER_NAME   "eth0"
66#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_at91rm9200_emac_attach
67
68/** @} */
69
70#ifdef __cplusplus
71}
72#endif
73
74#endif /* _BSP_H */
75
Note: See TracBrowser for help on using the repository browser.