source: rtems/c/src/lib/libbsp/arm/csb336/include/bsp.h @ a0390782

4.115
Last change on this file since a0390782 was a0390782, checked in by Chirayu Desai <cdesai@…>, on 12/08/13 at 04:53:54

arm: csb336: Add doxygen

  • Property mode set to 100644
File size: 1.4 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup arm_csb336
5 *
6 * @brief Global BSP definitions.
7 */
8
9/*
10 *  BSP CSB336 header file
11 *
12 *  Copyright (c) 2004 Cogent Computer Systems
13 *  Written 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/iosupp.h>
31#include <rtems/console.h>
32#include <rtems/clockdrv.h>
33#include <mc9328mxl.h>
34
35/**
36 * @defgroup arm_csb336 CSB336 Support
37 *
38 * @ingroup bsp_arm
39 *
40 * @brief CSB336 support package.
41 *
42 * @{
43 */
44
45#define BSP_FEATURE_IRQ_EXTENSION
46
47/* What is the input clock freq in hertz? */
48#define BSP_OSC_FREQ  16000000    /* 16 MHz oscillator */
49#define BSP_XTAL_FREQ 32768       /* 32.768 KHz crystal */
50
51int get_perclk1_freq(void);
52
53/**
54 * @brief Network driver configuration
55 */
56extern struct rtems_bsdnet_ifconfig *config;
57
58/* Change these to match your board */
59int rtems_mc9328mxl_enet_attach(struct rtems_bsdnet_ifconfig *config,
60                                void *chip);
61#define RTEMS_BSP_NETWORK_DRIVER_NAME   "eth0"
62#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_mc9328mxl_enet_attach
63
64/** @} */
65
66#ifdef __cplusplus
67}
68#endif
69
70#endif /* _BSP_H */
71
Note: See TracBrowser for help on using the repository browser.