source: rtems/c/src/lib/libbsp/shared/umon/umonrtemsglue.c @ 3ed964f9

4.104.115
Last change on this file since 3ed964f9 was c193baad, checked in by Thomas Doerfler <Thomas.Doerfler@…>, on 04/09/10 at 20:24:57

unify irq data types and code, merge s3c2400/s3c2410 support

  • Property mode set to 100644
File size: 894 bytes
Line 
1/*
2 *  COPYRIGHT (c) 1989-2009.
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  Modified by Fernando Nicodemos <fgnicodemos@terra.com.br>
6 *  from NCB - Sistemas Embarcados Ltda. (Brazil)
7 *
8 *  The license and distribution terms for this file may be
9 *  found in the file LICENSE in this distribution or at
10 *  http://www.rtems.com/license/LICENSE.
11 *
12 *  $Id$
13*/
14
15#include <rtems/umon.h>
16
17/* XXX eventually add lock/unlock methods */
18
19static int rtems_umon_connected = 0;
20
21void rtems_umon_connect(void)
22{
23  int(*moncomptr)(int,void *,void *,void *);
24
25  if ( rtems_umon_connected )
26    return;
27
28  rtems_umon_connected = 1;
29
30  moncomptr = rtems_bsp_get_umon_monptr();
31  monConnect(
32    moncomptr,                                    /* monitor base */
33    (void *)0,                                    /* lock */
34    (void *)0                                     /* unlock */
35  );
36}
Note: See TracBrowser for help on using the repository browser.