mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
2009-06-15 Joel Sherrill <joel.sherrill@OARcorp.com>
* umon/monlib.h: Add umon.h to be installed as <rtems/umon.h> so umon .h files are modified as little as possible. * umon/umon.h: New file.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2009-06-15 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
|
* umon/monlib.h: Add umon.h to be installed as <rtems/umon.h> so umon
|
||||||
|
.h files are modified as little as possible.
|
||||||
|
* umon/umon.h: New file.
|
||||||
|
|
||||||
2009-06-12 Joel Sherrill <joel.sherrill@OARcorp.com>
|
2009-06-12 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
* umon/README, umon/cli.h, umon/monlib.c, umon/monlib.h, umon/tfs.h,
|
* umon/README, umon/cli.h, umon/monlib.c, umon/monlib.h, umon/tfs.h,
|
||||||
|
|||||||
@@ -28,30 +28,6 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
|
||||||
* The following additions are RTEMS specific.
|
|
||||||
*/
|
|
||||||
#if defined(__rtems__)
|
|
||||||
/*
|
|
||||||
* RTEMS uMonitor wrapper for monConnect(). This will deal with the
|
|
||||||
* getting MONCOMPTR as well as providing the locking routines.
|
|
||||||
*/
|
|
||||||
void rtems_umon_connect(void);
|
|
||||||
|
|
||||||
/*
|
|
||||||
* BSP specific routine to help when calling monConnect(). This
|
|
||||||
* returns the value known to uMon as MONCOMPTR.
|
|
||||||
*/
|
|
||||||
void *rtems_bsp_get_umon_monptr(void);
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Initialize the TFS-RTEMS file system
|
|
||||||
*/
|
|
||||||
int rtems_initialize_tfs_filesystem(
|
|
||||||
const char *path
|
|
||||||
);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
extern int monConnect(int (*monptr)(int,void *,void *,void *),
|
extern int monConnect(int (*monptr)(int,void *,void *,void *),
|
||||||
void (*lock)(void),void (*unlock)(void));
|
void (*lock)(void),void (*unlock)(void));
|
||||||
extern void mon_getargv(int *argc,char ***argv);
|
extern void mon_getargv(int *argc,char ***argv);
|
||||||
|
|||||||
58
c/src/lib/libbsp/shared/umon/umon.h
Normal file
58
c/src/lib/libbsp/shared/umon/umon.h
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
/**
|
||||||
|
* @file rtems/umon.h
|
||||||
|
*
|
||||||
|
* This file contains the RTEMS specific interface to MicroMonitor.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* COPYRIGHT (c) 1989-2007.
|
||||||
|
* On-Line Applications Research Corporation (OAR).
|
||||||
|
*
|
||||||
|
* The license and distribution terms for this file may be
|
||||||
|
* found in the file LICENSE in this distribution or at
|
||||||
|
* http://www.rtems.com/license/LICENSE.
|
||||||
|
*
|
||||||
|
* $Id$
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef __rtems_umon_h
|
||||||
|
#define __rtems_umon_h
|
||||||
|
|
||||||
|
#include <umon/monlib.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Connect RTEMS Application to MicroMonitor
|
||||||
|
*
|
||||||
|
* RTEMS uMonitor wrapper for monConnect(). This will deal with the
|
||||||
|
* getting MONCOMPTR as well as providing the locking routines.
|
||||||
|
*/
|
||||||
|
void rtems_umon_connect(void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Obtain BSP specific pointer to MicroMonitor
|
||||||
|
*
|
||||||
|
* BSP specific routine to help when calling monConnect(). This
|
||||||
|
* returns the value known to uMon as MONCOMPTR.
|
||||||
|
*
|
||||||
|
* @return This method returns the address of the base area of MicroMonitor.
|
||||||
|
*/
|
||||||
|
void *rtems_bsp_get_umon_monptr(void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Initialize the TFS-RTEMS file system
|
||||||
|
*
|
||||||
|
* This method initializes and mounts the TFS-RTEMS file system.
|
||||||
|
*
|
||||||
|
* @param[in] path is the mount point
|
||||||
|
*
|
||||||
|
* @return This method returns 0 on sucess.
|
||||||
|
*/
|
||||||
|
int rtems_initialize_tfs_filesystem(
|
||||||
|
const char *path
|
||||||
|
);
|
||||||
|
|
||||||
|
#endif
|
||||||
Reference in New Issue
Block a user