diff options
Diffstat (limited to 'bsps/arm/csb337/umon/umonrtemsglue.c')
-rw-r--r-- | bsps/arm/csb337/umon/umonrtemsglue.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/bsps/arm/csb337/umon/umonrtemsglue.c b/bsps/arm/csb337/umon/umonrtemsglue.c new file mode 100644 index 0000000000..54d210c34f --- /dev/null +++ b/bsps/arm/csb337/umon/umonrtemsglue.c @@ -0,0 +1,34 @@ +/* + * COPYRIGHT (c) 1989-2009. + * On-Line Applications Research Corporation (OAR). + * + * Modified by Fernando Nicodemos <fgnicodemos@terra.com.br> + * from NCB - Sistemas Embarcados Ltda. (Brazil) + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.org/license/LICENSE. +*/ + +#include <rtems/umon.h> + +/* XXX eventually add lock/unlock methods */ + +static int rtems_umon_connected = 0; + +void rtems_umon_connect(void) +{ + int(*moncomptr)(int,void *,void *,void *); + + if ( rtems_umon_connected ) + return; + + rtems_umon_connected = 1; + + moncomptr = rtems_bsp_get_umon_monptr(); + monConnect( + moncomptr, /* monitor base */ + (void *)0, /* lock */ + (void *)0 /* unlock */ + ); +} |