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
RevLine 
[ba6f12b7]1/*
2 *  COPYRIGHT (c) 1989-2009.
3 *  On-Line Applications Research Corporation (OAR).
4 *
[e5764ee]5 *  Modified by Fernando Nicodemos <fgnicodemos@terra.com.br>
6 *  from NCB - Sistemas Embarcados Ltda. (Brazil)
7 *
[ba6f12b7]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$
[e5764ee]13*/
[ba6f12b7]14
[b2cf9858]15#include <rtems/umon.h>
[ba6f12b7]16
17/* XXX eventually add lock/unlock methods */
18
[8bcb9e2]19static int rtems_umon_connected = 0;
20
[ba6f12b7]21void rtems_umon_connect(void)
22{
[c193baad]23  int(*moncomptr)(int,void *,void *,void *);
[ba6f12b7]24
[8bcb9e2]25  if ( rtems_umon_connected )
26    return;
27
28  rtems_umon_connected = 1;
29
[ba6f12b7]30  moncomptr = rtems_bsp_get_umon_monptr();
31  monConnect(
[c193baad]32    moncomptr,                                    /* monitor base */
[ba6f12b7]33    (void *)0,                                    /* lock */
34    (void *)0                                     /* unlock */
35  );
36}
Note: See TracBrowser for help on using the repository browser.