source: rtems/c/src/lib/libbsp/shared/umon/umonrtemsglue.c @ 7b25525

4.104.115
Last change on this file since 7b25525 was b2cf9858, checked in by Joel Sherrill <joel.sherrill@…>, on 06/18/09 at 19:58:35

2009-06-18 Fernando Nicodemos <fgnicodemos@…>

  • umon/umonrtemsglue.c: Add console device that uses MicroMonitor? to do actual input and output. This driver should work on any board that uses MicroMonitor?.
  • umon/umoncons.c: New file.
  • Property mode set to 100644
File size: 754 bytes
Line 
1/*
2 *  COPYRIGHT (c) 1989-2009.
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.rtems.com/license/LICENSE.
8 *
9 *  $Id$
10 */
11
12#include <rtems/umon.h>
13
14/* XXX eventually add lock/unlock methods */
15
16static int rtems_umon_connected = 0;
17
18void rtems_umon_connect(void)
19{
20  void *moncomptr;
21
22  if ( rtems_umon_connected )
23    return;
24
25  rtems_umon_connected = 1;
26
27  moncomptr = rtems_bsp_get_umon_monptr();
28  monConnect(
29    (int(*)())(*(unsigned long *)moncomptr),      /* monitor base */
30    (void *)0,                                    /* lock */
31    (void *)0                                     /* unlock */
32  );
33}
Note: See TracBrowser for help on using the repository browser.