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

Last change on this file since 85f20112 was 85f20112, checked in by Joel Sherrill <joel@…>, on Mar 25, 2016 at 3:44:26 PM

arm/csb336/include/bsp.h: Do not include <rtems/clockdrv.h>

  • 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.org/license/LICENSE.
18*/
19#ifndef LIBBSP_ARM_CSB336_BSP_H
20#define LIBBSP_ARM_CSB336_BSP_H
21
22#include <bspopts.h>
23#include <bsp/default-initial-extension.h>
24
25#include <rtems.h>
26#include <rtems/iosupp.h>
27#include <rtems/console.h>
28#include <mc9328mxl.h>
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
34/**
35 * @defgroup arm_csb336 CSB336 Support
36 *
37 * @ingroup bsp_arm
38 *
39 * @brief CSB336 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_OSC_FREQ  16000000    /* 16 MHz oscillator */
48#define BSP_XTAL_FREQ 32768       /* 32.768 KHz crystal */
49
50int get_perclk1_freq(void);
51
52/**
53 * @brief Network driver configuration
54 */
55extern struct rtems_bsdnet_ifconfig *config;
56
57/* Change these to match your board */
58int rtems_mc9328mxl_enet_attach(struct rtems_bsdnet_ifconfig *config,
59                                void *chip);
60#define RTEMS_BSP_NETWORK_DRIVER_NAME   "eth0"
61#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_mc9328mxl_enet_attach
62
63/** @} */
64
65#ifdef __cplusplus
66}
67#endif
68
69#endif /* _BSP_H */
70
Note: See TracBrowser for help on using the repository browser.