Module: xenomai-abe Branch: analogy Commit: db634e35b6a4375c119efd9e26f4c1042ced402d URL: http://git.xenomai.org/?p=xenomai-abe.git;a=commit;h=db634e35b6a4375c119efd9e26f4c1042ced402d
Author: Alexis Berlemont <alexis.berlem...@gmail.com> Date: Thu Apr 15 01:41:55 2010 +0200 analogy: minor change in the header command.h --- include/analogy/command.h | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/include/analogy/command.h b/include/analogy/command.h index 29120bf..ef53d91 100644 --- a/include/analogy/command.h +++ b/include/analogy/command.h @@ -171,11 +171,8 @@ /*! @} CHAN_RNG_AREF */ -#if defined(__KERNEL__) && !defined(DOXYGEN_CPP) -/* Channels macros only useful for the kernel side */ -#define CR_CHAN(a) CHAN(a) -#define CR_RNG(a) (((a)>>16)&0xff) -#define CR_AREF(a) (((a)>>24)&0xf) +#if !defined(DOXYGEN_CPP) + #define CR_FLAGS_MASK 0xfc000000 #define CR_ALT_FILTER (1<<26) #define CR_DITHER CR_ALT_FILTER @@ -183,8 +180,16 @@ #define CR_ALT_SOURCE (1<<27) #define CR_EDGE (1<<28) #define CR_INVERT (1<<29) + +#if defined(__KERNEL__) +/* Channels macros only useful for the kernel side */ +#define CR_CHAN(a) CHAN(a) +#define CR_RNG(a) (((a)>>16)&0xff) +#define CR_AREF(a) (((a)>>24)&0xf) #endif /* __KERNEL__ */ +#endif /* !DOXYGEN_CPP */ + /*! * @brief Structure describing the asynchronous instruction * @see a4l_snd_command() _______________________________________________ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git