Commit 259f5bd7 authored by yoogx's avatar yoogx
Browse files

* Add various test scenarios for GRSPW Packet driver

	For openaadl/ocarina#144
parent 60122c12
#include <drivers/configuration/spacewire.h>
__po_hi_c_spacewire_conf_t pohidrv_device_a = {
.devname = "/dev/grspw0",
.nodeaddr = 30,
.corefreq = 0,
.clockdiv = 0,
.use_router = FALSE,
.remove_prot_id = FALSE,
.rxblock = FALSE,
.txblock = FALSE,
.exist = {
.corefreq = 0,
.clockdiv = 0,
.use_router = 0,
.remove_prot_id = 0,
.rxblock = 0,
.txblock = 0
}
};
__po_hi_c_spacewire_conf_t pohidrv_device_b = {
.devname = "/dev/grspw1",
.nodeaddr = 30,
.corefreq = 0,
.clockdiv = 0,
.use_router = FALSE,
.remove_prot_id = FALSE,
.rxblock = FALSE,
.txblock = FALSE,
.exist = {
.corefreq = 0,
.clockdiv = 0,
.use_router = 0,
.remove_prot_id = 0,
.rxblock = 0,
.txblock = 0
}
};
-- This is a scenario file describing the AADL
-- application producer_consumer
-- $Id: scenario.aadl 394 2007-05-31 18:59:00Z zalila $
system producer_consumer
properties
Ocarina_Config::Timeout_Property => 4000ms;
Ocarina_Config::Referencial_Files =>
("pr_a", "pr_a.ref",
"pr_b", "pr_b.ref");
Ocarina_Config::AADL_Files =>
("producer_consumer.aadl", "software.aadl",
"devices.aadl", "buses", "base_types", "exarm-ni-6071e-analog.aadl", "grspw.aadl", "rasta-serial.aadl", "sockets-rtems-ne2000.aadl", "exarm-ni-6071e-digital.aadl", "gruart.aadl", "rasta-spacewire.aadl", "tcp_protocol.aadl", "generic-keyboard.aadl", "leon-eth.aadl", "scoc3-spacewire.aadl", "udp-exarm.aadl", "generic_bus.aadl", "leon-serial.aadl", "sd-spw-usb.aadl", "generic_native.aadl", "native_uart.aadl", "serial-raw.aadl", "gr_cpci_x4cv.aadl", "rasta-1553.aadl", "sockets-raw.aadl","grspw_packet.aadl");
Ocarina_Config::Root_System_Name => "PC_Simple.loopback_spw";
Ocarina_Config::Generator => polyorb_hi_c;
Ocarina_Config::Needed_Property_Sets =>
(value (Ocarina_Config::Data_Model),
value (Ocarina_Config::Deployment),
value (Ocarina_Config::ARINC653_Properties),
value (Ocarina_Config::Cheddar_Properties));
Ocarina_Config::AADL_Version => AADLv2;
end producer_consumer;
system implementation producer_consumer.Impl
end producer_consumer.Impl;
-- This is a scenario file describing the AADL
-- application producer_consumer
-- $Id: scenario.aadl 394 2007-05-31 18:59:00Z zalila $
system producer_consumer
properties
Ocarina_Config::Timeout_Property => 4000ms;
Ocarina_Config::Referencial_Files =>
("pr_a", "pr_a.ref",
"pr_b", "pr_b.ref");
Ocarina_Config::AADL_Files =>
("producer_consumer.aadl", "software.aadl",
"devices.aadl", "buses", "base_types", "exarm-ni-6071e-analog.aadl", "grspw.aadl", "rasta-serial.aadl", "sockets-rtems-ne2000.aadl", "exarm-ni-6071e-digital.aadl", "gruart.aadl", "rasta-spacewire.aadl", "tcp_protocol.aadl", "generic-keyboard.aadl", "leon-eth.aadl", "scoc3-spacewire.aadl", "udp-exarm.aadl", "generic_bus.aadl", "leon-serial.aadl", "sd-spw-usb.aadl", "generic_native.aadl", "native_uart.aadl", "serial-raw.aadl", "gr_cpci_x4cv.aadl", "rasta-1553.aadl", "sockets-raw.aadl","grspw_packet.aadl");
Ocarina_Config::Root_System_Name => "PC_Simple.impl_spw";
Ocarina_Config::Generator => polyorb_hi_c;
Ocarina_Config::Needed_Property_Sets =>
(value (Ocarina_Config::Data_Model),
value (Ocarina_Config::Deployment),
value (Ocarina_Config::ARINC653_Properties),
value (Ocarina_Config::Cheddar_Properties));
Ocarina_Config::AADL_Version => AADLv2;
end producer_consumer;
system implementation producer_consumer.Impl
end producer_consumer.Impl;
-- This is a scenario file describing the AADL
-- application producer_consumer
-- $Id: scenario.aadl 394 2007-05-31 18:59:00Z zalila $
system producer_consumer
properties
Ocarina_Config::Timeout_Property => 4000ms;
Ocarina_Config::Referencial_Files =>
("pr_a", "pr_a.ref",
"pr_b", "pr_b.ref");
Ocarina_Config::AADL_Files =>
("producer_consumer.aadl", "software.aadl",
"devices.aadl", "buses", "base_types", "exarm-ni-6071e-analog.aadl", "grspw.aadl", "rasta-serial.aadl", "sockets-rtems-ne2000.aadl", "exarm-ni-6071e-digital.aadl", "gruart.aadl", "rasta-spacewire.aadl", "tcp_protocol.aadl", "generic-keyboard.aadl", "leon-eth.aadl", "scoc3-spacewire.aadl", "udp-exarm.aadl", "generic_bus.aadl", "leon-serial.aadl", "sd-spw-usb.aadl", "generic_native.aadl", "native_uart.aadl", "serial-raw.aadl", "gr_cpci_x4cv.aadl", "rasta-1553.aadl", "sockets-raw.aadl","grspw_packet.aadl");
Ocarina_Config::Root_System_Name => "PC_Simple.impl_spw2";
Ocarina_Config::Generator => polyorb_hi_c;
Ocarina_Config::Needed_Property_Sets =>
(value (Ocarina_Config::Data_Model),
value (Ocarina_Config::Deployment),
value (Ocarina_Config::ARINC653_Properties),
value (Ocarina_Config::Cheddar_Properties));
Ocarina_Config::AADL_Version => AADLv2;
end producer_consumer;
system implementation producer_consumer.Impl
end producer_consumer.Impl;
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