source: rtems/c/src/lib/libbsp/h8300/h8sim/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: 965 bytes
Line 
1/**
2 *  @file
3 *
4 *  @ingroup h8300_bsp
5 *
6 *  @brief h8 simulator definitions in gdb
7 *
8 *  This include file contains some definitions specific to the
9 *  h8 simulator in gdb.
10 */
11
12/*
13 *  COPYRIGHT (c) 1989-2013.
14 *  On-Line Applications Research Corporation (OAR).
15 *
16 *  The license and distribution terms for this file may be
17 *  found in the file LICENSE in this distribution or at
18 *  http://www.rtems.org/license/LICENSE.
19 */
20
21#ifndef LIBBSP_H8300_H8SIM_BSP_H
22#define LIBBSP_H8300_H8SIM_BSP_H
23
24#include <bspopts.h>
25#include <bsp/default-initial-extension.h>
26
27#include <rtems.h>
28#include <rtems/iosupp.h>
29#include <rtems/console.h>
30#include <rtems/clockdrv.h>
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
36/**
37 *  @defgroup h8300_bsp Clock Tick Support
38 *
39 *  @ingroup h8300_h8sim
40 *
41 *  @brief Clock Tick Support Package
42 */
43Thread clock_driver_sim_idle_body(uintptr_t);
44#define BSP_IDLE_TASK_BODY clock_driver_sim_idle_body
45
46#ifdef __cplusplus
47}
48#endif
49
50#endif
Note: See TracBrowser for help on using the repository browser.