diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-25 10:33:41 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-26 11:55:46 +0200 |
commit | 0b9f472116eea06f17f4b481918b5d723b40cdd0 (patch) | |
tree | 8e910ff412a31c428ac379f904fdeac1fb6d9efe /cpukit/score/include/rtems/score | |
parent | score: Create mpci implementation header (diff) | |
download | rtems-0b9f472116eea06f17f4b481918b5d723b40cdd0.tar.bz2 |
score: Move mppkt implementation into mpciimpl.h
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/include/rtems/score/mpciimpl.h | 15 | ||||
-rw-r--r-- | cpukit/score/include/rtems/score/mppkt.h | 22 |
2 files changed, 24 insertions, 13 deletions
diff --git a/cpukit/score/include/rtems/score/mpciimpl.h b/cpukit/score/include/rtems/score/mpciimpl.h index 29a78c10ae..37eb41257e 100644 --- a/cpukit/score/include/rtems/score/mpciimpl.h +++ b/cpukit/score/include/rtems/score/mpciimpl.h @@ -327,6 +327,21 @@ void _MPCI_Internal_packets_Process_packet ( */ MPCI_Internal_packet *_MPCI_Internal_packets_Get_packet ( void ); +/** + * This function returns true if the the_packet_class is valid, + * and false otherwise. + * + * @note Check for lower bounds (MP_PACKET_CLASSES_FIRST ) is unnecessary + * because this enum starts at lower bound of zero. + */ + +RTEMS_INLINE_ROUTINE bool _Mp_packet_Is_valid_packet_class ( + MP_packet_Classes the_packet_class +) +{ + return ( the_packet_class <= MP_PACKET_CLASSES_LAST ); +} + /**@}*/ #ifdef __cplusplus diff --git a/cpukit/score/include/rtems/score/mppkt.h b/cpukit/score/include/rtems/score/mppkt.h index 7dca30612d..71cb7f2196 100644 --- a/cpukit/score/include/rtems/score/mppkt.h +++ b/cpukit/score/include/rtems/score/mppkt.h @@ -22,6 +22,14 @@ #ifndef _RTEMS_SCORE_MPPKT_H #define _RTEMS_SCORE_MPPKT_H +#include <rtems/score/object.h> +#include <rtems/score/priority.h> +#include <rtems/score/watchdog.h> + +#ifdef __cplusplus +extern "C" { +#endif + /** * @defgroup ScoreMPPacket MP Packet Handler * @@ -33,14 +41,6 @@ */ /**@{*/ -#ifdef __cplusplus -extern "C" { -#endif - -#include <rtems/score/object.h> -#include <rtems/score/priority.h> -#include <rtems/score/watchdog.h> - /** * The following enumerated type defines the packet classes. * @@ -111,15 +111,11 @@ typedef struct { #define MP_PACKET_MINIMUN_HETERO_CONVERSION \ ( sizeof( MP_packet_Prefix ) / sizeof( uint32_t ) ) -#ifndef __RTEMS_APPLICATION__ -#include <rtems/score/mppkt.inl> -#endif +/**@}*/ #ifdef __cplusplus } #endif -/**@}*/ - #endif /* end of include file */ |