Commit ae2eb78e authored by Maxime Perrotin's avatar Maxime Perrotin

Use Opengeode in Demo_ABB

parent 20021542
......@@ -8,7 +8,7 @@
@@-- @_Unprotected_PIs_@ : Unprotected Provided interfaces (from pi.tmplt)
@@-- @_Required_@ : Required interfaces (from ri.tmplt)
@_LOWER:Name_@ :
@@IF@@ @_LOWER:Language_@ = "sdl"
@@IF@@ @_Language_@ = SDL
# Call opengeode to generate the functional code
make -j -C ../@_LOWER:Name_@/SDL generate-code
@@ELSE@@
......
......@@ -15,6 +15,6 @@
@@-- @_Filename_Is_Present_@ : True if target function output already exists
@@-- @_Makefile_Is_Present_@ : True if target build script already exists
@@-- @_C_Middleware_@ : True if middleware is in C (e.g. PO-HI-C)
@@IF@@ @_Language_@ = "Ada"
@@IF@@ @_Language_@ = Ada
TRUE
@@END_IF@@
......@@ -14,12 +14,12 @@
@@IF@@ @_LOWER:Kind_@ = "cyclic_operation" or @_LOWER:Kind_@ = "sporadic_operation"
@@IF@@ @_Param_Names'Length_@ > 0
/* CIF Keep Specific Geode PARAMNAMES @_Param_Names_@ */
signal @_CAPITALIZE:Name_@ (@_REPLACE_ALL((-)/_):Param_Types_@)
signal @_Name_@ (@_REPLACE_ALL((-)/_):Param_Types_@)
@@ELSE@@
signal @_CAPITALIZE:Name_@
signal @_Name_@
@@END_IF@@
@@ELSE@@
procedure @_CAPITALIZE:Name_@;
procedure @_Name_@;
@@IF@@ @_EXIST:Param_Names_@
fpar
@@INLINE( )(,\n )(;\n external)@@
......
--------------------------------------------------------
--! File generated by asn2aadl v2.1.39: DO NOT EDIT !
--! File generated by asn2aadl v2.1.41: DO NOT EDIT !
--------------------------------------------------------
--! InputASN1FileChecksum:e4dd89bba248a6086ac359f24f27783b:/home/taste/tool-src/kazoo/test/Demo_ABB/DataView.asn:
--! InputASN1FileChecksum:fc58a72b84447d6bd771ef41e6b1cb1f:/home/taste/tool-src/kazoo/test/Demo_ABB/DataView.asn:
--! InputASN1FileChecksum:ee8a7e01f29874c0d50f437d5abb9599:/home/taste/tool-inst/share/taste-types/taste-types.asn:
--------------------------------------------------------
......@@ -48,11 +48,11 @@ PROPERTIES
Deployment::ASN1_Module_Name => "Lift-dataview";
Source_Language => (ASN1);
-- Size of a buffer to cover all forms of message representation:
-- Real message size is 8; suggested aligned message buffer is...
Source_Data_Size => 8 Bytes;
-- Real message size is 16; suggested aligned message buffer is...
Source_Data_Size => 16 Bytes;
-- name of the corresponding data type in the source file:
Type_Source_Name => "Cabin-button";
TASTE::Position_In_File => [ line => 41 ; column => 1 ; ];
TASTE::Position_In_File => [ line => 40 ; column => 1 ; ];
-- what kind of type is this?
TASTE::ASN1_Basic_Type =>aCHOICE;
END Cabin_button;
......@@ -67,8 +67,8 @@ DATA IMPLEMENTATION Cabin_button_Buffer_Max.impl
-- Buffer to hold a marshalled data of type Cabin_button
PROPERTIES
Data_Model::Data_Representation => array;
Data_Model::Dimension => (8); -- Size of the buffer
Source_Data_Size => 8 Bytes; -- Size of the buffer in bytes
Data_Model::Dimension => (16); -- Size of the buffer
Source_Data_Size => 16 Bytes; -- Size of the buffer in bytes
Data_Model::Base_Type => (classifier (DataView::Stream_Element_Buffer));
END Cabin_button_Buffer_Max.impl;
......@@ -82,7 +82,7 @@ SUBCOMPONENTS
Length : data Base_Types::Unsigned_32;
PROPERTIES
Data_Model::Data_Representation => Struct;
Source_Data_Size => 24 Bytes; -- Size of the buffer in bytes
Source_Data_Size => 32 Bytes; -- Size of the buffer in bytes
END Cabin_button_Buffer.impl;
DATA Floor_button
......@@ -93,11 +93,11 @@ PROPERTIES
Deployment::ASN1_Module_Name => "Lift-dataview";
Source_Language => (ASN1);
-- Size of a buffer to cover all forms of message representation:
-- Real message size is 8; suggested aligned message buffer is...
Source_Data_Size => 8 Bytes;
-- Real message size is 16; suggested aligned message buffer is...
Source_Data_Size => 16 Bytes;
-- name of the corresponding data type in the source file:
Type_Source_Name => "Floor-button";
TASTE::Position_In_File => [ line => 36 ; column => 1 ; ];
TASTE::Position_In_File => [ line => 35 ; column => 1 ; ];
-- what kind of type is this?
TASTE::ASN1_Basic_Type =>aSEQUENCE;
END Floor_button;
......@@ -112,8 +112,8 @@ DATA IMPLEMENTATION Floor_button_Buffer_Max.impl
-- Buffer to hold a marshalled data of type Floor_button
PROPERTIES
Data_Model::Data_Representation => array;
Data_Model::Dimension => (8); -- Size of the buffer
Source_Data_Size => 8 Bytes; -- Size of the buffer in bytes
Data_Model::Dimension => (16); -- Size of the buffer
Source_Data_Size => 16 Bytes; -- Size of the buffer in bytes
Data_Model::Base_Type => (classifier (DataView::Stream_Element_Buffer));
END Floor_button_Buffer_Max.impl;
......@@ -127,7 +127,7 @@ SUBCOMPONENTS
Length : data Base_Types::Unsigned_32;
PROPERTIES
Data_Model::Data_Representation => Struct;
Source_Data_Size => 24 Bytes; -- Size of the buffer in bytes
Source_Data_Size => 32 Bytes; -- Size of the buffer in bytes
END Floor_button_Buffer.impl;
DATA Floors
......@@ -138,13 +138,13 @@ PROPERTIES
Deployment::ASN1_Module_Name => "Lift-dataview";
Source_Language => (ASN1);
-- Size of a buffer to cover all forms of message representation:
-- Real message size is 4; suggested aligned message buffer is...
-- Real message size is 8; suggested aligned message buffer is...
Source_Data_Size => 8 Bytes;
-- name of the corresponding data type in the source file:
Type_Source_Name => "Floors";
TASTE::Position_In_File => [ line => 9 ; column => 1 ; ];
TASTE::Position_In_File => [ line => 8 ; column => 1 ; ];
-- what kind of type is this?
TASTE::ASN1_Basic_Type =>aENUMERATED;
TASTE::ASN1_Basic_Type =>aINTEGER;
END Floors;
DATA IMPLEMENTATION Floors.impl
......@@ -187,7 +187,7 @@ PROPERTIES
Source_Data_Size => 24 Bytes;
-- name of the corresponding data type in the source file:
Type_Source_Name => "Lift-control";
TASTE::Position_In_File => [ line => 20 ; column => 1 ; ];
TASTE::Position_In_File => [ line => 19 ; column => 1 ; ];
-- what kind of type is this?
TASTE::ASN1_Basic_Type =>aSEQUENCE;
END Lift_control;
......@@ -232,7 +232,7 @@ PROPERTIES
Source_Data_Size => 16 Bytes;
-- name of the corresponding data type in the source file:
Type_Source_Name => "Lift-sensor";
TASTE::Position_In_File => [ line => 27 ; column => 1 ; ];
TASTE::Position_In_File => [ line => 26 ; column => 1 ; ];
-- what kind of type is this?
TASTE::ASN1_Basic_Type =>aSEQUENCE;
END Lift_sensor;
......@@ -412,7 +412,7 @@ PROPERTIES
Source_Data_Size => 16 Bytes;
-- name of the corresponding data type in the source file:
Type_Source_Name => "Start-condition";
TASTE::Position_In_File => [ line => 46 ; column => 1 ; ];
TASTE::Position_In_File => [ line => 45 ; column => 1 ; ];
-- what kind of type is this?
TASTE::ASN1_Basic_Type =>aCHOICE;
END Start_condition;
......@@ -445,6 +445,51 @@ PROPERTIES
Source_Data_Size => 32 Bytes; -- Size of the buffer in bytes
END Start_condition_Buffer.impl;
DATA Status
PROPERTIES
-- name of the ASN.1 source file:
Source_Text => ("/home/taste/tool-src/kazoo/test/Demo_ABB/DataView.asn");
TASTE::Ada_Package_Name => "Lift_dataview";
Deployment::ASN1_Module_Name => "Lift-dataview";
Source_Language => (ASN1);
-- Size of a buffer to cover all forms of message representation:
-- Real message size is 24; suggested aligned message buffer is...
Source_Data_Size => 24 Bytes;
-- name of the corresponding data type in the source file:
Type_Source_Name => "Status";
TASTE::Position_In_File => [ line => 50 ; column => 1 ; ];
-- what kind of type is this?
TASTE::ASN1_Basic_Type =>aSEQUENCE;
END Status;
DATA IMPLEMENTATION Status.impl
END Status.impl;
DATA Status_Buffer_Max
END Status_Buffer_Max;
DATA IMPLEMENTATION Status_Buffer_Max.impl
-- Buffer to hold a marshalled data of type Status
PROPERTIES
Data_Model::Data_Representation => array;
Data_Model::Dimension => (24); -- Size of the buffer
Source_Data_Size => 24 Bytes; -- Size of the buffer in bytes
Data_Model::Base_Type => (classifier (DataView::Stream_Element_Buffer));
END Status_Buffer_Max.impl;
DATA Status_Buffer
END Status_Buffer;
DATA IMPLEMENTATION Status_Buffer.impl
-- Buffer to hold a marshalled data of type Status
SUBCOMPONENTS
Buffer : data Status_Buffer_Max.impl;
Length : data Base_Types::Unsigned_32;
PROPERTIES
Data_Model::Data_Representation => Struct;
Source_Data_Size => 40 Bytes; -- Size of the buffer in bytes
END Status_Buffer.impl;
DATA T_Boolean
PROPERTIES
-- name of the ASN.1 source file:
......@@ -729,6 +774,7 @@ SUBCOMPONENTS
OpenClose : DATA OpenClose.impl;
Position : DATA Position.impl;
Start_condition : DATA Start_condition.impl;
Status : DATA Status.impl;
T_Boolean : DATA T_Boolean.impl;
T_Int32 : DATA T_Int32.impl;
T_Int8 : DATA T_Int8.impl;
......
......@@ -5,15 +5,14 @@ UpDown ::= ENUMERATED { up (1), down (0) }
OnOff ::= ENUMERATED { on (1), off (0) }
OpenClose ::= ENUMERATED { door-open (1), door-close (0) }
Position ::= REAL (0.0 .. 100.0)
--Flag ::= BOOLEAN
Floors ::= ENUMERATED {
Floors ::= INTEGER {
floor-0 (10),
floor-1 (20),
floor-2 (30),
floor-3 (40),
floor-4 (50),
floor-5 (60)
}
} (10 | 20 | 30 | 40 | 50 | 60)
-- Types used for the interfacing with the Simulink model
......@@ -48,6 +47,11 @@ Start-condition ::= CHOICE {
nb-of-cycle INTEGER (50 .. 255)
}
Status ::= SEQUENCE {
lift Lift-sensor,
door OpenClose
}
END
......
......@@ -74,6 +74,6 @@ PROPERTIES
Taste::coordinates => "0 0 2970 2100";
Taste::version => "2.2";
Taste::interfaceView => "InterfaceView.aadl";
Taste::HWLibraries => ("../../../../tool-inst/share/ocarina/AADLv2/ocarina_components.aadl");
Taste::HWLibraries => ("/home/taste/tool-inst/share/ocarina/AADLv2/ocarina_components.aadl");
END deploymentview::DV;
......@@ -65,19 +65,19 @@ PROPERTIES
Compute_Execution_Time => 0 ms .. 0 ms;
END PI_Manual_Control.others;
SUBPROGRAM PI_Start
SUBPROGRAM PI_Start_Controller
FEATURES
start_param : IN PARAMETER DataView::Start_condition {
Taste::encoding => NATIVE;
};
PROPERTIES
Taste::Associated_Queue_Size => 1;
END PI_Start;
END PI_Start_Controller;
SUBPROGRAM IMPLEMENTATION PI_Start.others
SUBPROGRAM IMPLEMENTATION PI_Start_Controller.others
PROPERTIES
Compute_Execution_Time => 0 ms .. 0 ms;
END PI_Start.others;
END PI_Start_Controller.others;
SUBPROGRAM RI_Operate_lift
FEATURES
......@@ -92,35 +92,15 @@ END RI_Operate_lift;
SUBPROGRAM IMPLEMENTATION RI_Operate_lift.others
END RI_Operate_lift.others;
SUBPROGRAM RI_door_status
SUBPROGRAM RI_Housekeeping
FEATURES
status : IN PARAMETER DataView::OpenClose {
Taste::encoding => NATIVE;
housekeeping : IN PARAMETER DataView::Status {
Taste::encoding => UPER;
};
END RI_door_status;
END RI_Housekeeping;
SUBPROGRAM IMPLEMENTATION RI_door_status.others
END RI_door_status.others;
SUBPROGRAM RI_floor_detected
FEATURES
floor : IN PARAMETER DataView::Floors {
Taste::encoding => NATIVE;
};
END RI_floor_detected;
SUBPROGRAM IMPLEMENTATION RI_floor_detected.others
END RI_floor_detected.others;
SUBPROGRAM RI_position
FEATURES
pos : IN PARAMETER DataView::Position {
Taste::encoding => NATIVE;
};
END RI_position;
SUBPROGRAM IMPLEMENTATION RI_position.others
END RI_position.others;
SUBPROGRAM IMPLEMENTATION RI_Housekeeping.others
END RI_Housekeeping.others;
SYSTEM Controller
FEATURES
......@@ -152,12 +132,12 @@ FEATURES
Taste::Deadline => 0 ms;
Taste::InterfaceName => "Manual_Control";
};
PI_Start : PROVIDES SUBPROGRAM ACCESS interfaceview::IV::Controller::PI_Start.others {
PI_Start_Controller : PROVIDES SUBPROGRAM ACCESS interfaceview::IV::Controller::PI_Start_Controller.others {
Taste::coordinates => "1519 1467";
Taste::RCMoperationKind => sporadic;
Taste::RCMperiod => 0 ms;
Taste::Deadline => 0 ms;
Taste::InterfaceName => "Start";
Taste::InterfaceName => "Start_Controller";
};
RI_Operate_lift : REQUIRES SUBPROGRAM ACCESS interfaceview::IV::Lift_Model::PI_Operate_lift.others {
Taste::coordinates => "2027 859";
......@@ -165,34 +145,18 @@ FEATURES
Taste::InterfaceName => "Operate_lift";
Taste::labelInheritance => "true";
};
RI_door_status : REQUIRES SUBPROGRAM ACCESS interfaceview::IV::User::PI_door_status.others {
Taste::coordinates => "1519 1128";
Taste::RCMoperationKind => sporadic;
Taste::InterfaceName => "door_status";
Taste::labelInheritance => "true";
};
RI_floor_detected : REQUIRES SUBPROGRAM ACCESS interfaceview::IV::User::PI_floor_detected.others {
Taste::coordinates => "1519 1237";
Taste::RCMoperationKind => sporadic;
Taste::InterfaceName => "floor_detected";
Taste::labelInheritance => "true";
};
RI_position : REQUIRES SUBPROGRAM ACCESS interfaceview::IV::User::PI_position.others {
Taste::coordinates => "1519 1338";
Taste::RCMoperationKind => sporadic;
Taste::InterfaceName => "position";
RI_Housekeeping : REQUIRES SUBPROGRAM ACCESS interfaceview::IV::User::PI_Housekeeping.others {
Taste::coordinates => "1519 1247";
Taste::RCMoperationKind => any;
Taste::InterfaceName => "Housekeeping";
Taste::labelInheritance => "true";
};
PROPERTIES
Source_Language => (RTDS);
Source_Language => (SDL);
Taste::Active_Interfaces => enabled;
END Controller;
SYSTEM IMPLEMENTATION Controller.others
SUBCOMPONENTS
starting_floor : DATA DataView::Floors {
Taste::FS_Default_Value => "floor_0";
};
END Controller.others;
END interfaceview::IV::Controller;
......@@ -246,47 +210,19 @@ WITH interfaceview::IV::Controller;
WITH Taste;
WITH DataView;
WITH TASTE_IV_Properties;
SUBPROGRAM PI_door_status
SUBPROGRAM PI_Housekeeping
FEATURES
status : IN PARAMETER DataView::OpenClose {
Taste::encoding => NATIVE;
housekeeping : IN PARAMETER DataView::Status {
Taste::encoding => UPER;
};
PROPERTIES
Taste::Associated_Queue_Size => 1;
END PI_door_status;
END PI_Housekeeping;
SUBPROGRAM IMPLEMENTATION PI_door_status.others
SUBPROGRAM IMPLEMENTATION PI_Housekeeping.others
PROPERTIES
Compute_Execution_Time => 0 ms .. 0 ms;
END PI_door_status.others;
SUBPROGRAM PI_floor_detected
FEATURES
floor : IN PARAMETER DataView::Floors {
Taste::encoding => NATIVE;
};
PROPERTIES
Taste::Associated_Queue_Size => 1;
END PI_floor_detected;
SUBPROGRAM IMPLEMENTATION PI_floor_detected.others
PROPERTIES
Compute_Execution_Time => 0 ms .. 0 ms;
END PI_floor_detected.others;
SUBPROGRAM PI_position
FEATURES
pos : IN PARAMETER DataView::Position {
Taste::encoding => NATIVE;
};
PROPERTIES
Taste::Associated_Queue_Size => 1;
END PI_position;
SUBPROGRAM IMPLEMENTATION PI_position.others
PROPERTIES
Compute_Execution_Time => 0 ms .. 0 ms;
END PI_position.others;
END PI_Housekeeping.others;
SUBPROGRAM RI_Floor_Command
FEATURES
......@@ -318,38 +254,24 @@ END RI_Manual_Control;
SUBPROGRAM IMPLEMENTATION RI_Manual_Control.others
END RI_Manual_Control.others;
SUBPROGRAM RI_Start
SUBPROGRAM RI_Start_Controller
FEATURES
start_param : IN PARAMETER DataView::Start_condition {
Taste::encoding => NATIVE;
};
END RI_Start;
END RI_Start_Controller;
SUBPROGRAM IMPLEMENTATION RI_Start.others
END RI_Start.others;
SUBPROGRAM IMPLEMENTATION RI_Start_Controller.others
END RI_Start_Controller.others;
SYSTEM User
FEATURES
PI_door_status : PROVIDES SUBPROGRAM ACCESS interfaceview::IV::User::PI_door_status.others {
Taste::coordinates => "907 1128";
Taste::RCMoperationKind => sporadic;
Taste::RCMperiod => 0 ms;
Taste::Deadline => 0 ms;
Taste::InterfaceName => "door_status";
};
PI_floor_detected : PROVIDES SUBPROGRAM ACCESS interfaceview::IV::User::PI_floor_detected.others {
Taste::coordinates => "907 1237";
PI_Housekeeping : PROVIDES SUBPROGRAM ACCESS interfaceview::IV::User::PI_Housekeeping.others {
Taste::coordinates => "907 1251";
Taste::RCMoperationKind => sporadic;
Taste::RCMperiod => 0 ms;
Taste::Deadline => 0 ms;
Taste::InterfaceName => "floor_detected";
};
PI_position : PROVIDES SUBPROGRAM ACCESS interfaceview::IV::User::PI_position.others {
Taste::coordinates => "907 1338";
Taste::RCMoperationKind => sporadic;
Taste::RCMperiod => 0 ms;
Taste::Deadline => 0 ms;
Taste::InterfaceName => "position";
Taste::InterfaceName => "Housekeeping";
};
RI_Floor_Command : REQUIRES SUBPROGRAM ACCESS interfaceview::IV::Controller::PI_Floor_Command.others {
Taste::coordinates => "907 816";
......@@ -369,10 +291,10 @@ FEATURES
Taste::InterfaceName => "Manual_Control";
Taste::labelInheritance => "true";
};
RI_Start : REQUIRES SUBPROGRAM ACCESS interfaceview::IV::Controller::PI_Start.others {
RI_Start_Controller : REQUIRES SUBPROGRAM ACCESS interfaceview::IV::Controller::PI_Start_Controller.others {
Taste::coordinates => "907 1467";
Taste::RCMoperationKind => sporadic;
Taste::InterfaceName => "Start";
Taste::InterfaceName => "Start_Controller";
Taste::labelInheritance => "true";
};
PROPERTIES
......@@ -406,7 +328,7 @@ SUBCOMPONENTS
Taste::coordinates => "1519 671 2027 1599";
};
Lift_Model : SYSTEM interfaceview::IV::Lift_Model::Lift_Model.others {
Taste::coordinates => "2306 631 2835 1403";
Taste::coordinates => "2306 728 2835 931";
};
User : SYSTEM interfaceview::IV::User::User.others {
Taste::coordinates => "261 606 907 1587";
......@@ -421,20 +343,14 @@ CONNECTIONS
Controller_PI_Manual_Control_User_RI_Manual_Control : SUBPROGRAM ACCESS Controller.PI_Manual_Control -> User.RI_Manual_Control {
Taste::coordinates => "907 1017 1207 1017 1207 1017 1519 1017";
};
Controller_PI_Start_User_RI_Start : SUBPROGRAM ACCESS Controller.PI_Start -> User.RI_Start {
Controller_PI_Start_Controller_User_RI_Start_Controller : SUBPROGRAM ACCESS Controller.PI_Start_Controller -> User.RI_Start_Controller {
Taste::coordinates => "907 1467 1207 1467 1207 1467 1519 1467";
};
Lift_Model_PI_Operate_lift_Controller_RI_Operate_lift : SUBPROGRAM ACCESS Lift_Model.PI_Operate_lift -> Controller.RI_Operate_lift {
Taste::coordinates => "2027 859 2166 859 2166 859 2306 859";
};
User_PI_door_status_Controller_RI_door_status : SUBPROGRAM ACCESS User.PI_door_status -> Controller.RI_door_status {
Taste::coordinates => "1519 1128 1207 1128 1207 1128 907 1128";
};
User_PI_floor_detected_Controller_RI_floor_detected : SUBPROGRAM ACCESS User.PI_floor_detected -> Controller.RI_floor_detected {
Taste::coordinates => "1519 1237 1207 1237 1207 1237 907 1237";
};
User_PI_position_Controller_RI_position : SUBPROGRAM ACCESS User.PI_position -> Controller.RI_position {
Taste::coordinates => "1519 1338 1207 1338 1207 1338 907 1338";
User_PI_Housekeeping_Controller_RI_Housekeeping : SUBPROGRAM ACCESS User.PI_Housekeeping -> Controller.RI_Housekeeping {
Taste::coordinates => "1519 1247 1213 1247 1213 1251 907 1251";
};
END interfaceview.others;
......
......@@ -3,7 +3,7 @@ KAZOO=../../kazoo
all: c
c: test-parse-c # Polyorb_HI_C output
cp controller/controller/* output.pohic/controller/RTDS/src
cp controller/controller.pr output.pohic/controller/SDL/src
cp lift_model/* output.pohic/lift_model/SIMULINK/src
make -C output.pohic
......
Lift-dataview DEFINITIONS ::=
BEGIN
UpDown ::= ENUMERATED { up (1), down (0) }
OnOff ::= ENUMERATED { on (1), off (0) }
OpenClose ::= ENUMERATED { door-open (1), door-close (0) }
Position ::= REAL (0.0 .. 100.0)
Flag ::= BOOLEAN
Floors ::= ENUMERATED {
floor-0 (10),
floor-1 (20),
floor-2 (30),
floor-3 (40),
floor-4 (50),
floor-5 (60),
floor-above (70)
}
-- Types used for the interfacing with the Simulink model
Lift-control ::= SEQUENCE {
direction UpDown,
motor OnOff,
brake OnOff,
door OpenClose
}
Lift-sensor ::= SEQUENCE {
door-open Flag,
door-closed Flag,
floor-detected Flag,
pos-x Position
}
-- Types used for the user interaction
Floor-button ::= SEQUENCE {
floor Floors,
direction UpDown
}
Cabin-button ::= CHOICE {
emergency-stop Flag,
floor Floors
}
Start-condition ::= CHOICE {
forever BOOLEAN,
nb-of-cycle INTEGER (1..255)
}
END
This diff is collapsed.
RTDS_GEN_DIR=/home/assert/extra-space/tool-src/testSuites/Regression_AADLv2/Demo_ABB/controller/controller
RTDS_CLASSES_DIR=/home/assert/extra-space/tool-src/testSuites/Regression_AADLv2/Demo_ABB/controller/controller
RTDS_TEMPLATES_DIR=/home/assert/extra-space/tool-src/testSuites/Regression_AADLv2/Demo_ABB/controller/profile
RTDS_CC=gcc
RTDS_LNK=$(RTDS_CC)
RTDS_CC_INCLUDES=-I"." -I"${RTDS_TEMPLATES_DIR}" -I"${RTDS_HOME}/share/ccg/cscheduler" -I"${RTDS_HOME}/share/ccg/common" -I"$(RTDS_CLASSES_DIR)" -I"../../../common"
RTDS_CC_OPTIONS=-I"." -I"${RTDS_TEMPLATES_DIR}" -I"${RTDS_HOME}/share/ccg/cscheduler" -I"${RTDS_HOME}/share/ccg/common" -I"$(RTDS_CLASSES_DIR)" -DRTDS_SOCKET_IP_ADDRESS=127.0.1.1 -DRTDS_SOCKET_PORT=49250 -IRTDS-RTOS-adaptation -I ../../../common/
RTDS_LNK_OPTIONS=
RTDS_RM=rm -f
RTDS_OBJECTS = \
controller_p.o \
RTDS_controller_project_comp_functions.o \
RTDS_String.o \
RTDS_Proc.o \
RTDS_Scheduler.o
RTDS_ADDL_OBJECTS =
RTDS_EXT_OBJECTS =
RTDS_TARGET_BASE_NAME=controller
RTDS_TARGET_EXTENSION=.exe
all: $(RTDS_TARGET_BASE_NAME)$(RTDS_TARGET_EXTENSION)
$(RTDS_TARGET_BASE_NAME)$(RTDS_TARGET_EXTENSION): $(RTDS_OBJECTS) $(RTDS_ADDL_OBJECTS) $(RTDS_EXT_OBJECTS)
$(RTDS_LNK) $(RTDS_LNK_OPTIONS) -o "$@" $(RTDS_OBJECTS) $(RTDS_ADDL_OBJECTS) $(RTDS_EXT_OBJECTS)
controller_p.o: $(RTDS_GEN_DIR)/controller_p.c $(RTDS_GEN_DIR)/controller_p.h $(RTDS_GEN_DIR)/RTDS_controller_project_messages.h $(RTDS_GEN_DIR)/RTDS_gen.h $(RTDS_GEN_DIR)/controller_p_decl.h $(RTDS_GEN_DIR)/controller.h $(RTDS_GEN_DIR)/RTDS-RTOS-adaptation/RTDS_CommonTypes.h $(RTDS_GEN_DIR)/RTDS-RTOS-adaptation/RTDS_String.h $(RTDS_GEN_DIR)/RTDS-RTOS-adaptation/RTDS_Set.h $(RTDS_GEN_DIR)/RTDSdataView.h Makefile
$(RTDS_CC) $(RTDS_CC_OPTIONS) -c -o "$@" "$<"
RTDS_controller_project_comp_functions.o: $(RTDS_GEN_DIR)/RTDS_controller_project_comp_functions.c Makefile
$(RTDS_CC) $(RTDS_CC_OPTIONS) -c -o "$@" "$<"
RTDS_String.o: $(RTDS_GEN_DIR)/RTDS-RTOS-adaptation/RTDS_String.c Makefile
$(RTDS_CC) $(RTDS_CC_OPTIONS) -c -o "$@" "$<"
RTDS_Proc.o: $(RTDS_HOME)/share/ccg/cscheduler/RTDS_Proc.c Makefile
$(RTDS_CC) $(RTDS_CC_OPTIONS) -c -o "$@" "$<"
RTDS_Scheduler.o: $(RTDS_HOME)/share/ccg/cscheduler/RTDS_Scheduler.c Makefile
$(RTDS_CC) $(RTDS_CC_OPTIONS) -c -o "$@" "$<"
RTDS_clean:
$(RTDS_RM) $(RTDS_TARGET_BASE_NAME)$(RTDS_TARGET_EXTENSION)
$(RTDS_RM) "controller_p.o"
$(RTDS_RM) "RTDS_controller_project_comp_functions.o"
$(RTDS_RM) "RTDS_String.o"
$(RTDS_RM) "RTDS_Proc.o"
$(RTDS_RM) "RTDS_Scheduler.o"
RTDS_mrproper: RTDS_clean
$(RTDS_RM) "controller_p_decl.h"
$(RTDS_RM) "RTDSdataView.h"
$(RTDS_RM) "controller_p.c"
$(RTDS_RM) "RTDS_controller_project_messages.h"
$(RTDS_RM) "controller_p.h"
$(RTDS_RM) "RTDS_gen.h"
$(RTDS_RM) "controller.h"
$(RTDS_RM) "RTDS_controller_project_comp_functions.c"
$(RTDS_RM) RTDS_gen.ini
$(RTDS_RM) Makefile
#define RTDS_SETUP_CURRENT_CONTEXT
#define RTDS_FORGET_INSTANCE_INFO
typedef int RTDS_RtosQueueId;
typedef int RTDS_RtosTaskId;
typedef int RTDS_TimerState;
#define RTDS_GLOBAL_PROCESS_INFO_ADDITIONNAL_FIELDS
#define RTDS_MESSAGE_HEADER_ADDITIONNAL_FIELDS
#ifndef _RTDS_COMMON_H_
#define _RTDS_COMMON_H_
#include "RTDS_BasicTypes.h"
/*
* TYPE RTDS_SdlInstanceId:
* ---------------------
* Identifier for a process instance in the running system.
*/
typedef struct RTDS_SdlInstanceId
{
RTDS_RtosQueueId queueId; /* Queue id for the process or its scheduler if scheduled */
int instanceNumber; /* Numerical identifier for instance if in a scheduler */
} RTDS_SdlInstanceId;
/*
* TYPE RTDS_PID:
* --------------
* New type for process identifiers. This type should now be used instead of RTDS_QueueId
*/
typedef RTDS_SdlInstanceId * RTDS_PID;
/*
* TYPE RTDS_QueueId:
* ------------------
* Only for compatibility: old RTDS_QueueId type is defined as a RTDS_PID
* NB: THIS TYPE SHOULD NO MORE BE USED!
*/
#define RTDS_QueueId RTDS_PID
/*
* STRUCT RTDS_MESSAGE.HEADER:
* ---------------------------
* Type for a message descriptor
* Don't invert fields !!! This would mess up the gopher scripts used in:
* - getMessageInformation in wtxmodule.c
*/
typedef struct RTDS_MessageHeader
{
RTDS_MESSAGE_HEADER_ADDITIONNAL_FIELDS /* OSE requires the first field to be sigNo */
long messageNumber; /* The integer value for the message or the timer */
long timerUniqueId; /* If 0, normal message; otherwise unique id. for timer if message is a timer */
#ifdef RTDS_SIMULATOR
unsigned long messageUniqueId; /* Used by simulator to trace messages */
#endif
RTDS_SdlInstanceId * sender; /* The SDL instance id of the sender */
RTDS_SdlInstanceId * receiver; /* The SDL instance id of the receiver */
long dataLength; /* Length of data */
unsigned char * pData; /* Pointer to message data */
struct RTDS_MessageHeader * next; /* Next message if used as a message queue */
} RTDS_MessageHeader;
/*
* STRUCT RTDS_GLOBAL.PROCESS.INFO:
* -------------------------------
* Type for the list of processes in the system with their information