source: rtems/c/src/lib/libbsp/arm/gba/include/bsp.h @ 2732040d

4.104.114.84.9
Last change on this file since 2732040d was 3c7ed6b, checked in by Joel Sherrill <joel.sherrill@…>, on Jul 6, 2005 at 6:46:04 PM

2005-07-06 Markku Puro <markku.puro@…>

  • .cvsignore, ChangeLog?, Makefile.am, README, bsp_specs, configure.ac, clock/clockdrv.c, console/conio.c, console/console.c, console/defaultfont.c, include/arm_mode_bits.h, include/asm_macros.h, include/bsp.h, include/bspopts.h.in, include/conio.h, include/gba.h, include/gba_registers.h, include/tm27.h, irq/bsp_irq_asm.S, irq/bsp_irq_init.c, irq/irq.c, irq/irq.h, irq/irq_asm.S, irq/irq_init.c, start/logo.S, start/start.S, startup/bspstart.c, startup/cpu.c, startup/cpu_asm.S, startup/exit.c, startup/linkcmds, timer/timer.c: New files.
  • Property mode set to 100644
File size: 1.5 KB
Line 
1/**
2 *  @file bsp.h
3 *
4 *  This include file contains definitions related to the GBA BSP.
5 */
6/*
7 *  RTEMS GBA BSP
8 *
9 *  Copyright (c) 2004
10 *      Markku Puro <markku.puro@kopteri.net>
11 *
12 *  The license and distribution terms for this file may be
13 *  found in found in the file LICENSE in this distribution or at
14 *  http://www.rtems.com/license/LICENSE.
15 *
16 *  $Id$
17 */
18
19#ifndef __BSP_H_
20#define __BSP_H_
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26#include <bspopts.h>
27
28#include <rtems.h>
29#include <rtems/iosupp.h>
30#include <rtems/console.h>
31#include <rtems/clockdrv.h>
32
33#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 1
34
35/** Define operation count for Tests */
36#define OPERATION_COUNT 10
37
38/**
39 *  Simple spin delay in microsecond units for device drivers.
40 *  This is very dependent on the clock speed of the target.
41 */
42#define rtems_bsp_delay( microseconds ) \
43  { \
44    uint32_t i; \
45    for(i = 0; i<microseconds;) {i++;} \
46    uint32_t  _cnt = _microseconds; \
47    asm volatile ("0: nop; sub %0, %0, #1; cmp %0,#0; bne 0b" : "=c"(_cnt) : "0"(_cnt)); \
48  }
49
50/** Our copy of BSP configuration table from the application. */
51extern rtems_configuration_table BSP_Configuration;
52
53/** gba_zero_memory library function in start.S  */
54extern void gba_zero_memory(int start, int stop);
55/** gba_move_memory library function in start.S  */
56extern void gba_move_memory(int from, int toStart, int toEnd);
57/** gba_set_memory library function in start.S  */
58extern void gba_set_memory(int start, int stop, int data);
59
60
61#ifdef __cplusplus
62}
63#endif
64
65
66#endif /* __BSP_H_ */
67
Note: See TracBrowser for help on using the repository browser.