5
Last change
on this file since 671c31fc was
671c31fc,
checked in by Sebastian Huber <sebastian.huber@…>, on 04/03/18 at 14:24:31
|
bsp: Move umon support to bsps
The umon support is only used by the csb337 BSP.
This patch is a part of the BSP source reorganization.
Update #3285.
|
-
Property mode set to
100644
|
File size:
882 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.org/license/LICENSE. |
---|
11 | */ |
---|
12 | |
---|
13 | #include <rtems/umon.h> |
---|
14 | |
---|
15 | /* XXX eventually add lock/unlock methods */ |
---|
16 | |
---|
17 | static int rtems_umon_connected = 0; |
---|
18 | |
---|
19 | void rtems_umon_connect(void) |
---|
20 | { |
---|
21 | int(*moncomptr)(int,void *,void *,void *); |
---|
22 | |
---|
23 | if ( rtems_umon_connected ) |
---|
24 | return; |
---|
25 | |
---|
26 | rtems_umon_connected = 1; |
---|
27 | |
---|
28 | moncomptr = rtems_bsp_get_umon_monptr(); |
---|
29 | monConnect( |
---|
30 | moncomptr, /* monitor base */ |
---|
31 | (void *)0, /* lock */ |
---|
32 | (void *)0 /* unlock */ |
---|
33 | ); |
---|
34 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.