1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

changed and renamed opal AsyncIP files to our naming scheme

git-svn-id: https://zerberus.eonerc.rwth-aachen.de:8443/svn/s2ss/trunk@178 8ec27952-4edc-4aab-86aa-e87bb2611832
This commit is contained in:
Steffen Vogel 2014-08-31 15:25:58 +00:00
parent 64cead2f2e
commit fd550e49c2
12 changed files with 26 additions and 31 deletions

View file

@ -8,7 +8,7 @@
#ifndef _CONFIG_H_
#define _CONFIG_H_
#define PROGNAME "AsyncIP"
#define PROGNAME "S2SS"
#define VERSION "0.1"
#endif /* _CONFIG_H_ */
#endif /* _CONFIG_H_ */

View file

@ -36,7 +36,7 @@
#endif
/** The total length of a message */
#define MSG_LEN(values) (4 * (values + 1))
#define MSG_LEN(values) (4 * (values + 1))
/** Initialize a message */
#define MSG_INIT(i) { \
@ -53,17 +53,11 @@
**/
struct msg
{
#if BYTE_ORDER == BIG_ENDIAN
unsigned version: 4; /**< Specifies the format of the remaining message (see MGS_VERSION) */
unsigned type : 2; /**< Data or control message (see MSG_TYPE_*) */
unsigned endian : 1; /**< Specifies the byteorder of the message (see MSG_ENDIAN_*) */
unsigned : 1; /**< Reserved padding bits */
#else
unsigned : 1; /**< Reserved padding bits */
unsigned endian : 1; /**< Specifies the byteorder of the message (see MSG_ENDIAN_*) */
unsigned type : 2; /**< Data or control message (see MSG_TYPE_*) */
unsigned version: 4; /**< Specifies the format of the remaining message (see MGS_VERSION) */
#endif
/** Number of valid dword values in msg::data[] */
uint8_t length;
/** The sequence number gets incremented by one for consecutive messages */

View file

@ -37,16 +37,16 @@ INTERNAL_IGN_SOURCE_FILE=sfun_gen_async_ctrl.c sfun_recv_async.c sfun_send_async
INTERNAL_LIBRARY2=-lOpalAsyncApiR2011b
INTERNAL_LIBRARY3=-lOpalAsyncApiCore
[ExtraPutFilesComp]
AsyncIP.mk=Ascii
include\Config.h=Ascii
include\Interface.h=Ascii
include\MsgFormat.h=Ascii
include\Sched.h=Ascii
include\Socket.h=Ascii
src\AsyncIP.c=Ascii
src\Interface.c=Ascii
src\Sched.c=Ascii
src\Socket.c=Ascii
s2ss.mk=Ascii
include\config.h=Ascii
include\interface.h=Ascii
include\msg_format.h=Ascii
include\sched.h=Ascii
include\socket.h=Ascii
src\s2ss.c=Ascii
src\interface.c=Ascii
src\sched.c=Ascii
src\socket.c=Ascii
[ExtraPutFilesComp_1_RT_LAB]
C:\OPAL-RT\RT-LAB\v10.5.9.356\common\lib\redhawk\libOpalAsyncApiCore.a=Binary
[General]

View file

@ -5,8 +5,8 @@
* @file
*/
#include "Config.h"
#include "Interface.h"
#include "config.h"
#include "interface.h"
int if_setup(const char *op, const char *iface, const char *addr)
{

View file

@ -1,4 +1,4 @@
/** AsyncIP
/** Main
*
* Code example of an asynchronous program. This program is started
* by the asynchronous controller and demonstrates how to send and
@ -38,10 +38,10 @@
#include "AsyncApi.h"
/* This is the message format */
#include "Config.h"
#include "MsgFormat.h"
#include "Socket.h"
#include "Interface.h"
#include "config.h"
#include "msg_format.h"
#include "socket.h"
#include "interface.h"
/* This is just for initializing the shared memory access to communicate
* with the RT-LAB model. It's easier to remember the arguments like this */

View file

@ -14,8 +14,8 @@
#define RTLAB
#include "OpalPrint.h"
#include "Config.h"
#include "Sched.h"
#include "config.h"
#include "sched.h"
#if defined(__QNXNTO__)
# include <process.h>

View file

@ -26,8 +26,8 @@
#include "OpalPrint.h"
#include "AsyncApi.h"
#include "Config.h"
#include "Socket.h"
#include "config.h"
#include "socket.h"
/* Globals variables */
struct sockaddr_in send_ad; /* Send address */

View file

@ -1,3 +1,4 @@
#include "utils.h"
static union fi {
float f;