rtems: Move internal structures to eventdata.h

Update #3598.
This commit is contained in:
Sebastian Huber
2018-11-08 10:24:19 +01:00
parent 72a4a42984
commit efc227cd7d
5 changed files with 52 additions and 23 deletions

View File

@@ -237,6 +237,7 @@ include_rtems_rtems_HEADERS += include/rtems/rtems/dpmem.h
include_rtems_rtems_HEADERS += include/rtems/rtems/dpmemdata.h
include_rtems_rtems_HEADERS += include/rtems/rtems/dpmemimpl.h
include_rtems_rtems_HEADERS += include/rtems/rtems/event.h
include_rtems_rtems_HEADERS += include/rtems/rtems/eventdata.h
include_rtems_rtems_HEADERS += include/rtems/rtems/eventimpl.h
include_rtems_rtems_HEADERS += include/rtems/rtems/eventmp.h
include_rtems_rtems_HEADERS += include/rtems/rtems/intr.h

View File

@@ -1,20 +1,9 @@
/**
* @file rtems/rtems/event.h
* @file
*
* @defgroup ClassicEvent Events
*
* @ingroup ClassicRTEMS
* @brief Information Related to Event Manager
*
* This include file contains the information pertaining to the Event
* Manager. This manager provides a high performance method of communication
* and synchronization.
*
* Directives provided are:
*
* - send an event set to a task
* - receive event condition
* @ingroup ClassicEvent
*
* @brief Classic Event Manager API
*/
/* COPYRIGHT (c) 1989-2008.
@@ -28,9 +17,9 @@
#ifndef _RTEMS_RTEMS_EVENT_H
#define _RTEMS_RTEMS_EVENT_H
#include <rtems/rtems/options.h>
#include <rtems/rtems/status.h>
#include <rtems/rtems/types.h>
#include <rtems/rtems/options.h>
#ifdef __cplusplus
extern "C" {
@@ -513,10 +502,6 @@ RTEMS_INLINE_ROUTINE void rtems_event_transient_clear( void )
/** @} */
typedef struct {
rtems_event_set pending_events;
} Event_Control;
#ifdef __cplusplus
}
#endif

View File

@@ -0,0 +1,43 @@
/**
* @file
*
* @ingroup ClassicEventImpl
*
* @brief Classic Event Manager Data Structures
*/
/* COPYRIGHT (c) 1989-2008.
* 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.org/license/LICENSE.
*/
#ifndef _RTEMS_RTEMS_EVENTDATA_H
#define _RTEMS_RTEMS_EVENTDATA_H
#include <rtems/rtems/event.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* @addtogroup ClassicEventImpl
*
* @{
*/
typedef struct {
rtems_event_set pending_events;
} Event_Control;
/** @} */
#ifdef __cplusplus
}
#endif
#endif
/* end of include file */

View File

@@ -3,7 +3,7 @@
*
* @ingroup ClassicEventImpl
*
* @brief Classic Event Implementation
* @brief Classic Event Manager Implementation
*/
/* COPYRIGHT (c) 1989-2008.
@@ -17,7 +17,7 @@
#ifndef _RTEMS_RTEMS_EVENTIMPL_H
#define _RTEMS_RTEMS_EVENTIMPL_H
#include <rtems/rtems/event.h>
#include <rtems/rtems/eventdata.h>
#include <rtems/score/thread.h>
#ifdef __cplusplus

View File

@@ -40,11 +40,11 @@
#include <rtems/score/object.h>
#include <rtems/score/scheduler.h>
#include <rtems/score/thread.h>
#include <rtems/rtems/types.h>
#include <rtems/rtems/event.h>
#include <rtems/rtems/asrdata.h>
#include <rtems/rtems/attr.h>
#include <rtems/rtems/eventdata.h>
#include <rtems/rtems/status.h>
#include <rtems/rtems/types.h>
#ifdef __cplusplus
extern "C" {