source: rtems/c/src/lib/libbsp/lm32/milkymist/include/bsp.h @ 9cff822a

4.115
Last change on this file since 9cff822a 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.3 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup lm32_milkymist
5 *
6 * @brief Global BSP definitions.
7 */
8
9/*  bsp.h
10 *
11 *  This include file contains all board IO definitions.
12 *
13 *  The license and distribution terms for this file may be
14 *  found in the file LICENSE in this distribution or at
15 *  http://www.rtems.org/license/LICENSE.
16 *
17 *  COPYRIGHT (c) 2011 Sebastien Bourdeauducq
18 */
19
20#ifndef LIBBSP_LM32_MILKYMIST_BSP_H
21#define LIBBSP_LM32_MILKYMIST_BSP_H
22
23#include <stdint.h>
24#include <bspopts.h>
25#include <bsp/default-initial-extension.h>
26
27#include <rtems.h>
28#include <rtems/console.h>
29#include <rtems/clockdrv.h>
30
31/**
32 * @defgroup lm32_milkymist Milkymist Support
33 *
34 * @ingroup bsp_lm32
35 *
36 * @brief Milkymist support package.
37 */
38
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43#define BSP_HAS_FRAME_BUFFER 1
44
45/*
46 * lm32 requires certain aligment of mbuf because unaligned uint32_t
47 * accesses are not handled properly.
48 */
49
50#define CPU_U32_FIX
51
52#if defined(RTEMS_NETWORKING)
53#include <rtems/rtems_bsdnet.h>
54struct rtems_bsdnet_ifconfig;
55extern int rtems_minimac_driver_attach (struct rtems_bsdnet_ifconfig *config,
56                                        int attaching);
57#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_minimac_driver_attach
58#define RTEMS_BSP_NETWORK_DRIVER_NAME "minimac0"
59#endif
60
61#ifdef __cplusplus
62}
63#endif
64
65#endif
Note: See TracBrowser for help on using the repository browser.