Commit 07f15576 authored by yoogx's avatar yoogx
Browse files

* Add place-holder for GRSPW Packet driver

	For openaadl/ocarina#144
parent 0865e62c
......@@ -14,7 +14,8 @@ public
with ocarina_drivers_rasta_serial;
with ocarina_drivers_rasta_spacewire;
with ocarina_drivers_rtems_ne2000;
with ocarina_drivers_grspw_packet;
with ocarina_drivers_star_dundee_spacewire_brick;
with ocarina_drivers_udp_exarm;
......@@ -202,6 +203,14 @@ public
Provided_Virtual_Bus_Class => (classifier (ocarina_buses::pohi.c));
end rasta_spacewire.pohic;
device implementation rasta_spacewire.grspw_pohic
properties
Deployment::Driver_Name => "spacewire_rasta";
Device_Driver => classifier (ocarina_drivers_grspw_packet::grspw_packet_driver.rasta);
Initialize_Entrypoint => classifier (ocarina_drivers_grspw_packet::spg_grspw_packet_init_rasta);
Provided_Virtual_Bus_Class => (classifier (ocarina_buses::pohi.c));
end rasta_spacewire.grspw_pohic;
device implementation rasta_spacewire.pohiada
properties
Deployment::Driver_Name => "spacewire_rasta";
......@@ -210,7 +219,6 @@ public
Provided_Virtual_Bus_Class => (classifier (ocarina_buses::pohi.c));
end rasta_spacewire.pohiada;
---------------------
-- SCOC3 SPACEWIRE --
---------------------
......
package ocarina_drivers_grspw_packet
public
with ocarina_buses;
with Deployment;
subprogram spg_grspw_packet_poller_rasta
properties
Source_Language => (C);
Source_Name => "__po_hi_c_driver_grspw_packet_rasta_poller";
Source_Text => ("grspw_api.c", "spwrouter_custom_config.c", "config.c", "grspw_pkt_lib.c");
end spg_grspw_packet_poller_rasta;
subprogram spg_grspw_packet_sender_rasta
properties
Source_Language => (C);
Source_Name => "__po_hi_c_driver_grspw_packet_rasta_sender";
Source_Text => ("grspw_api.c", "spwrouter_custom_config.c", "config.c", "grspw_pkt_lib.c");
end spg_grspw_packet_sender_rasta;
subprogram spg_grspw_packet_init_rasta
properties
Source_Language => (C);
Source_Name => "__po_hi_c_driver_grspw_packet_rasta_init";
Source_Text => ("grspw_api.c", "spwrouter_custom_config.c", "config.c", "grspw_pkt_lib.c");
end spg_grspw_packet_init_rasta;
thread grspw_packet_poller
end grspw_packet_poller;
thread implementation grspw_packet_poller.rasta
calls
mycall : {
pspg : subprogram spg_grspw_packet_poller_rasta;
};
properties
Period => 1 ms;
Dispatch_Protocol => Background;
end grspw_packet_poller.rasta;
abstract grspw_packet_driver
properties
Deployment::Version => "0.1beta";
Deployment::Help => "Write your ASN.1 configuration here";
Deployment::Configuration_Type => classifier (ocarina_drivers::configuration_type_spacewire);
end grspw_packet_driver;
abstract implementation grspw_packet_driver.rasta
subcomponents
receiver_rasta_grspw_packet : thread grspw_packet_poller.rasta;
sender : subprogram spg_grspw_packet_sender_rasta;
end grspw_packet_driver.rasta;
end ocarina_drivers_grspw_packet;
Supports Markdown
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