Commit 0e0abb05 authored by Adam Wujek's avatar Adam Wujek 💬

proto-ext-whiterabbit: allow wr-api.h to be included by an assembler

This change is needed by WRPC, since it wants to include file with shmem
version in the assembly file.
Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent 8ff1442e
......@@ -9,11 +9,15 @@
#ifndef __WREXT_WR_API_H__
#define __WREXT_WR_API_H__
/* Please increment WRS_PPSI_SHMEM_VERSION if you change any exported data
* structure */
#define WRS_PPSI_SHMEM_VERSION 19 /* Reorder fields in struct wr_servo_state */
/* Don't include the Following when this file is included in assembler. */
#ifndef __ASSEMBLY__
#include <ppsi/lib.h>
#include "wr-constants.h"
#define WRS_PPSI_SHMEM_VERSION 19 /* Reorder fields in struct wr_servo_state */
/*
* This structure is used as extension-specific data in the DSPort
* (see wrspec.v2-06-07-2011, page 17)
......@@ -190,4 +194,5 @@ struct wr_data {
struct wr_servo_state servo_state;
};
#endif /* __ASSEMBLY__ */
#endif /* __WREXT_WR_API_H__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment