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

5
Last change on this file since 413e6e1 was 9cff822a, checked in by Joel Sherrill <joel.sherrill@…>, on 07/16/15 at 15:40:05

Most bsp.h: Switch to LIBBSP_@CPU@_@BSP_FAMILY@_H for guard

This was done by the following script run from libbsp:

find * -name bsp.h | xargs -e grep -l "#ifndef.*_BSP_H" | while read b
do

echo $b
cpu=echo $b | cut -d'/' -f1 | tr '[:lower:]' '[:upper:]'
bsp=echo $b | cut -d'/' -f2 | tr '[:lower:]' '[:upper:]'
g="LIBBSP_${cpu}_${bsp}_BSP_H"
# echo $g
sed -e "s/ifndef _BSP_H/ifndef ${g}/" \

-e "s/define _BSP_H/define ${g}/" \

-i $b

done

  • 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 <rtems/clockdrv.h>
29#include <mc9328mxl.h>
30
31#ifdef __cplusplus
32extern "C" {
33#endif
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.