source: rtems/c/src/lib/libbsp/m32c/m32cbsp/include/bsp.h @ 9b4422a2

4.115
Last change on this file since 9b4422a2 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 1.3 KB
Line 
1/*  bsp.h
2 *
3 *  This include file contains some definitions specific to the
4 *  h8 simulator in gdb.
5 *
6 *  COPYRIGHT (c) 1989-1999.
7 *  On-Line Applications Research Corporation (OAR).
8 *
9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
11 *  http://www.rtems.com/license/LICENSE.
12 */
13
14#ifndef _BSP_H
15#define _BSP_H
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21#include <bspopts.h>
22
23#include <rtems.h>
24#include <rtems/iosupp.h>
25#include <rtems/console.h>
26#include <rtems/clockdrv.h>
27
28/* support for simulated clock tick */
29Thread clock_driver_sim_idle_body(uintptr_t);
30#define BSP_IDLE_TASK_BODY clock_driver_sim_idle_body
31
32/*
33 *  Simple spin delay in microsecond units for device drivers.
34 *  This is very dependent on the clock speed of the target.
35 */
36
37#define rtems_bsp_delay( microseconds ) \
38  { register uint32_t         _delay=(microseconds); \
39    register uint32_t         _tmp = 0; /* initialized to avoid warning */ \
40    __asm__ volatile( "0: \
41                     remo      3,31,%0 ; \
42                     cmpo      0,%0 ; \
43                     subo      1,%1,%1 ; \
44                     cmpobne.t 0,%1,0b " \
45                  : "=d" (_tmp), "=d" (_delay) \
46                  : "0"  (_tmp), "1"  (_delay) ); \
47  }
48
49#ifdef __cplusplus
50}
51#endif
52
53#endif
Note: See TracBrowser for help on using the repository browser.