source: rtems/c/src/lib/libbsp/shared/umon/umonrtemsglue.c @ 4e545aaa

4.104.115
Last change on this file since 4e545aaa was e5764ee, checked in by Joel Sherrill <joel.sherrill@…>, on 11/30/09 at 22:00:47

2009-11-30 Fernando Nicodemos <fgnicodemos@…>

  • umon/cli.h, umon/monlib.c, umon/monlib.h, umon/tfs.h, umon/tfsDriver.c, umon/umon.h, umon/umonrtemsglue.c: Update to match development version.
  • Property mode set to 100644
File size: 868 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  void *moncomptr;
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    (int(*)())(*(unsigned long *)moncomptr),      /* monitor base */
33    (void *)0,                                    /* lock */
34    (void *)0                                     /* unlock */
35  );
36}
Note: See TracBrowser for help on using the repository browser.